Permalink
Browse files

Add snake test page

  • Loading branch information...
1 parent d3d01d1 commit 6d7df2bbdfc735684182fb9bbae4e6003154592d @zackbloom zackbloom committed Oct 25, 2013
Showing with 32 additions and 1 deletion.
  1. +1 −1 .hsdoc
  2. +31 −0 test/snake.html
View
2 .hsdoc
@@ -1,3 +1,3 @@
title: "Offline"
source: "{coffee/*,sass/*}"
-assets: "{js/*,themes/*,offline.min.js,docs/welcome/*}"
+assets: "{js/*,themes/*,offline.min.js,docs/welcome/*,test/*}"
View
31 test/snake.html
@@ -0,0 +1,31 @@
+<head>
+<script src="../offline.min.js"></script>
+<script src="../js/snake.js"></script>
+
+<!--
+Themes:
+<link rel="stylesheet" href="./themes/offline-theme-default.css" />
+<link rel="stylesheet" href="./themes/offline-theme-default-indicator.css" />
+<link rel="stylesheet" href="./themes/offline-theme-slide.css" />
+<link rel="stylesheet" href="./themes/offline-theme-slide-indicator.css" />
+<link rel="stylesheet" href="./themes/offline-theme-chrome.css" />
+<link rel="stylesheet" href="./themes/offline-theme-chrome-indicator.css" />
+<link rel="stylesheet" href="./themes/offline-theme-hubspot.css" />
+-->
+
+<link rel="stylesheet" href="../themes/offline-theme-chrome.css" />
+
+<script>
+Offline.options = {
+ game: true
+}
+
+var run = function(){
+ if (Offline.state === 'up')
+ Offline.check();
+}
+setInterval(run, 5000);
+</script>
+</head>
+<body>
+</body>

0 comments on commit 6d7df2b

Please sign in to comment.