-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
37 lines (33 loc) · 1.17 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
<!DOCTYPE html>
<html>
<head>
<link href="styles/counter.css" type="text/css" rel="stylesheet" />
<link href="styles/sample.css" type="text/css" rel="stylesheet" />
<script language="javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script language="javascript" src="scripts/counter.js"></script>
<script>
$('document').ready( function() { $('#spinButton').click();});
function spin() {
var value = $('#value').val();
var time = $('#time').val();
counter('#counterdiv').center().style('counterStyle').spin(value, time);
}
</script>
</head>
<body>
<table>
<tr>
<td><span>Animation Time (ms)</span></td>
<td><input type="text" id="time" value="1000"/></td>
</tr>
<tr>
<td><span>Dial Value</span></td>
<td><input type="text" id="value" value="1000"/></td>
</tr>
<tr>
<td><input type="button" id="spinButton" value="Spin Number" onclick="javascript:spin();return true;"/></td>
</tr>
</table>
<div id="counterdiv"> </div>
</body>
</html>