-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
69 lines (68 loc) · 2.36 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>gabor generator</title>
<link rel="stylesheet" href="css/jquery-ui.min.css">
<script src="numeric.min.js"></script>
<script src="jquery-min.js" type="text/javascript"></script>
<script src="jquery-ui.min.js"></script>
<script src="gab.js"></script>
<script>
$(function() {
$( "#frequency-slider" ).slider({
range: "max",
min: 1,
max: 100,
value: 50,
step: 1,
slide: function( event, ui ) {
$( "#frequency" ).val( ui.value );
$('#gab-target').html('<img src="' + gaborgen(parseFloat($('#rotation').val()), parseFloat($('#frequency').val())) + '"/>'); // initialize
}
});
$( "#frequency" ).val( $( "#frequency-slider" ).slider( "value" ) );
});
$(function() {
$( "#rotation-slider" ).slider({
range: "max",
min: 1,
max: 100,
value: 50,
step: 1,
slide: function( event, ui ) {
$( "#rotation" ).val( ui.value );
$('#gab-target').html('<img src="' + gaborgen(parseFloat($('#rotation').val()), parseFloat($('#frequency').val())) + '"/>'); // initialize
}
});
$( "#rotation" ).val( $( "#rotation-slider" ).slider( "value" ) );
});
</script>
</head>
<body>
<div id="content" style="width:400px; margin-left:auto; margin-right:auto;">
<p>
<label for="rotation">rotation:</label>
<input type="text" id="rotation" readonly style="border:0; color:#f6931f; font-weight:bold;">
</p>
<div id="rotation-slider" align="center" style="width:400px; text-align: center;"></div>
<p>
<label for="frequency">frequency:</label>
<input type="text" id="frequency" readonly style="border:0; color:#f6931f; font-weight:bold;">
</p>
<div id="frequency-slider" align="center" style="width:400px; text-align: center;"></div>
<br/>
<br/>
<div id='gab-target', align="center", style="text-align: center;"></div>
</div>
<script>
$('#gab-target').html('<img src="' + gaborgen(50, 50) + '"/>');
</script>
<noscript>
<h1>Warning: Javascript seems to be disabled</h1>
<p>This website requires that Javascript be enabled on your browser.</p>
<p>Instructions for enabling Javascript in your browser can be found
<a href="http://support.google.com/bin/answer.py?hl=en&answer=23852">here</a><p>
</noscript>
</body>
</html>