-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdemo.html
36 lines (32 loc) · 1.04 KB
/
demo.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
<html>
<head>
<title>jQuery Spinning Numbers</title>
<link rel="stylesheet" href="css/spinning.css" type="text/css" media="screen" title="no title" charset="utf-8">
<style>
div.seperator { height:30px; clear:both; }
</style>
</head>
<body>
<h1>jQuery Spinning Numbers</h1>
<div id="credits_view">
<div id="credits">
</div>
</div>
<div class="seperator"></div>
<input type="button" value="Increase" id="increase_score">
<div class="seperator"></div>
<hr>
Like this little plugin? Check more stuff about web & mobile development at <a href="http://sarp.erdag.org">Sarp Erdag's Blog</a>.
<script src="js/jquery-1.4.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jqSpinning.js" type="text/javascript" charset="utf-8"></script>
<script>
$(document).ready(function() {
$("#credits").spinning({ initial_value:200 });
var scoreView = $('#credits').data("spinning");
$("#increase_score").click(function(){
scoreView.increment(10);
});
});
</script>
</body>
</html>