summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorlizhineng <[email protected]>2013-06-07 23:30:20 +0800
committerlizhineng <[email protected]>2013-06-07 23:30:20 +0800
commit006b98dfd0ae1fbc34ef4c135e4ab07a7b82b152 (patch)
tree86b42eba1c29afebec82040e9856bbe5302d8add /index.html
parentc080e07ee1a0004d732508f9ed011678a38eda5e (diff)
downloadword-search-game-006b98dfd0ae1fbc34ef4c135e4ab07a7b82b152.tar.gz
word-search-game-006b98dfd0ae1fbc34ef4c135e4ab07a7b82b152.zip
optimized the expressions and fixed some bugs
Diffstat (limited to 'index.html')
-rw-r--r--index.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/index.html b/index.html
index aefb2d6..446872f 100644
--- a/index.html
+++ b/index.html
@@ -7,16 +7,17 @@
</head>
<body>
<div class="wrap">
- <h1>Word search game</h1>
- <section id="gameArea"></section>
+ <h1 class="logo">Word search game</h1>
+ <section id="ws-area" class="fix"></section>
</div>
+ <a href="https://github.com/lizhineng/word-search-game"><img style="position: absolute; top: 0; right: 0; border: 0;" src="images/forkme_right_red.png" alt="Fork me on GitHub"></a>
<script src="js/utility.js"></script>
<script src="js/wordsearch.js"></script>
<script type="text/javascript">
- var gameAreaEl = document.getElementById('gameArea');
+ var gameAreaEl = document.getElementById('ws-area');
gameAreaEl.wordSeach({
'gridSize': 10,
- 'words': ['apple']
+ 'words': ['one', 'two', 'three', 'four', 'five']
});
</script>
</body>