-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslider_broken.html
42 lines (37 loc) · 994 Bytes
/
slider_broken.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Slider - Default functionality</title>
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/jquery-ui/jquery-ui.js"></script>
<link rel="stylesheet" href="bower_components/jquery-ui/themes/smoothness/jquery-ui.css">
<script>
$(function() {
$( "#slider1" ).slider();
});
</script>
</head>
<body>
<h1>Header Text</h1>
<div id="slider1"></div>
<p>paragraph text</p>
<script> $(function() {
var mutate = $( "#mute" );
var slider = $( "<div id='slider'></div>" ).insertAfter( mutate ).slider({
min: 0.0,
max: 100.0,
range: "mutate",
value: mutate.val(),
slide: function( event, ui ) {
mutate.value = ui.value;
}
});
$( "#mute" ).change(function() {
slider.slider( "value", this.val() );
});
});
</script>
<input id="mute" type="text"></input>
</body>
</html>