-
Notifications
You must be signed in to change notification settings - Fork 0
/
gauge.php
37 lines (32 loc) · 1005 Bytes
/
gauge.php
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>
<meta charset="UTF-8">
<title>Untitled Document</title>
<style type="text/css">
div { width: 50%; margin: 20px auto; text-align: center; }
#pageLoad, #clickEvent { font-size: 30px; }
#clickEvent:hover { cursor: pointer; }
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="jquery.animateNumbers.js"></script>
<script>
$(document).ready(function() {
$("#pageLoad").animateNumbers(4321, true, 2000);
$("#clickEvent").on("click", function() {
$(this).animateNumbers(1234, false);
});
});
</script>
</head>
<body>
<div>
<p>This number will animate on document ready:</p>
<div id="pageLoad">0</div>
</div>
<div>
<p>This number will animate on click:</p>
<div id="clickEvent">4321</div>
</div>
</body>
</html>