summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@clearboxsystems.com.au>2013-09-05 14:35:10 +1000
committerCarlo Zancanaro <carlo@clearboxsystems.com.au>2013-09-05 14:35:10 +1000
commit04459f540bd462d979b02cb946087ce02b9bbb55 (patch)
tree317a6e1e8b1e46fd667d675058368e9ebd48be7c /index.html
parent73ff39dbdd23179728a510b30ba65a3d242b84f0 (diff)
Add a timer and restart, and lots of code cleanupHEADmaster
Diffstat (limited to 'index.html')
-rw-r--r--index.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/index.html b/index.html
index d19303c..39812e9 100644
--- a/index.html
+++ b/index.html
@@ -7,6 +7,9 @@
</head>
<body>
<h1>History Bible Game</h1>
+ <div id="go-button">
+ <button>Start</button>
+ </div>
<div class="container">
<ul class="bible-game sortable" id="source">
<li data-index="0">Genesis</li>
@@ -34,9 +37,12 @@
<script src="jquery.min.js"></script>
<script src="jquery-ui.min.js"></script>
<script src="game.js"></script>
- <script>
+ <script>
$(function() {
+ $("#go-button button").click(function() {
+ $(this).text("Restart");
startGame("#source", "#target", "#message");
+ });
});
</script>
</body>