-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·101 lines (87 loc) · 3.58 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>JQuery Audible Accordion</title>
<link type="text/css" href="css/dark-hive/jquery-ui-1.8.14.custom.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.14.custom.min.js"></script>
<script type="text/javascript">
$(function(){
// Accordion
$("#accordion").accordion(
{
header: "h3",
collapsible: true,
event: 'mouseover'
}
);
$('.ui-accordion').bind('accordionchangestart', function(event, ui) {
if (Math.random() > 0.4) {
$("#a1")[0].play();
} else {
$("#a2")[0].play();
}
});
});
</script>
<style type="text/css">
body{
font-family: "Helvetica", sans-serif;
margin: 50px;
background-color: black;
color: white;
font-size: 14px;
line-height: 19px;
font-weight: normal;
width: 500px;
}
a, a:visited {
color: gray;
}
.demoHeaders { margin-top: 2em; }
.ui-widget-content {
font-size: 14px;
}
</style>
</head>
<body>
<h1>JQuery Audible Accordion!</h1>
<p>
if accordion makes no sound - it is broken and should be fixed. roll over the example accordion bellow and listen. maybe someday i will convert this experiment to standalone jquery plugin. let's get <a href="http://www.google.com/search?&q=accordion+shredding&tbm=vid">shredding</a>!
</p>
<p>made by <a href="http://pukomuko.lt">pukomuko</a>, check <a href="http://pukomuko.tumblr.com">my tumblr</a>.</p>
<!-- Accordion -->
<h2 class="demoHeaders">Accordion</h2>
<div id="accordion">
<div>
<h3><a href="#">Hohner</a></h3>
<div>Accordionists in heavy metal make their most extensive appearances in the folk metal sub-genre, and are otherwise generally rare. Full-time accordionists in folk metal seem even rarer, but they are still utilized for studio work, as flexible keyboardists are usually more accessible for live performances.</div>
</div>
<div>
<h3><a href="#">Gabbanelli</a></h3>
<div>Notably, the Finnish symphonic folk-metal band Turisas has always had a full-time accordionist, employing classical and polka-style sensibilities alongside a violinist.</div>
</div>
<div>
<h3><a href="#">Weltmeister</a></h3>
<div>Another Finnish metal band, Korpiklaani, invokes a type of Finnish polka called humppa, and also has a full-time accordionist.</div>
</div>
<div>
<h3><a href="#">Roland</a></h3>
<div>Sarah Kiener, the former hurdy-gurdy player for the Swiss melodic-death/folk metal band Eluveitie, played a Helvetic accordion known as a zugerörgeli, which could be a distant relative (in one way or another) to the Swiss schwyzerörgeli, as both are indigenous to and very rare outside of Switzerland.</div>
</div>
</div>
<audio id="a1" src="a1.wav" preload="auto" autobuffer="true"/>
<audio id="a2" src="a2.wav" preload="auto" autobuffer="true"/>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-111622-7']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>