Permalink
Browse files

Automated commit at 2014-02-25 21:35:31 UTC by middleman-deploy 0.2.2

  • Loading branch information...
1 parent 0fcf2e3 commit b14726111c61787115d6e14cd48518d73cbc3de3 @johnrees committed Feb 25, 2014
Showing with 690 additions and 164 deletions.
  1. +36 −31 2012.html
  2. +36 −31 2012/01.html
  3. +36 −31 2012/01/01.html
  4. +25 −19 2012/01/01/example-article.html
  5. +41 −0 hud.html
  6. +29 −25 index.html
  7. +420 −0 javascripts/virtualjoystick.js
  8. +9 −0 stylesheets/application.css
  9. +26 −0 stylesheets/hud.css
  10. +32 −27 tags/example.html
View
@@ -1,50 +1,55 @@
-<!doctype html>
+<!DOCTYPE html>
<html>
<head>
- <meta charset="utf-8" />
- <meta http-equiv='X-UA-Compatible' content='IE=edge;chrome=1' />
- <title>Blog Title</title>
+ <meta charset='utf-8'>
+ <meta content='IE=edge;chrome=1' http-equiv='X-UA-Compatible'>
+ <base href='http://0.0.0.0:4567/'>
+ <title>
+ OFFRobot
+ </title>
+ <link href='stylesheets/application.css' rel='stylesheet' type='text/css'>
<link rel="alternate" type="application/atom+xml" title="Atom Feed" href="/feed.xml" />
</head>
<body>
-
- <div id="main" role="main">
+ <header>
+ <span class='title'>OFFRobot</span>
+ <a href="/hud.html">HUD</a>
+ </header>
+ <div id='main' role='main'>
<h1>Archive for
-
- 2012
-
-</h1>
-
-
-<ul>
-
- <li><a href="/2012/01/01/example-article.html">Example Article</a> <span>Jan 1</span></li>
-
-</ul>
-
-
+
+ 2012
+
+ </h1>
+
+
+ <ul>
+
+ <li><a href="/2012/01/01/example-article.html">Example Article</a> <span>Jan 1</span></li>
+
+ </ul>
</div>
-
<aside>
<h2>Recent Articles</h2>
<ol>
-
- <li><a href="/2012/01/01/example-article.html">Example Article</a> <span>Jan 1</span></li>
-
+ <li>
+ <a href="/2012/01/01/example-article.html">Example Article</a>
+ <span>Jan 1</span>
+ </li>
</ol>
-
<h2>Tags</h2>
<ol>
-
- <li><a href="/tags/example.html">example</a> (1)</a></li>
-
+ <li>
+ <a href="/tags/example.html">example</a>
+ (1)
+ </li>
</ol>
-
<h2>By Year</h2>
<ol>
-
- <li><a href="/2012.html">2012</a> (1)</a></li>
-
+ <li>
+ <a href="/2012.html">2012</a>
+ (1)
+ </li>
</ol>
</aside>
</body>
View
@@ -1,50 +1,55 @@
-<!doctype html>
+<!DOCTYPE html>
<html>
<head>
- <meta charset="utf-8" />
- <meta http-equiv='X-UA-Compatible' content='IE=edge;chrome=1' />
- <title>Blog Title</title>
+ <meta charset='utf-8'>
+ <meta content='IE=edge;chrome=1' http-equiv='X-UA-Compatible'>
+ <base href='http://0.0.0.0:4567/'>
+ <title>
+ OFFRobot
+ </title>
+ <link href='stylesheets/application.css' rel='stylesheet' type='text/css'>
<link rel="alternate" type="application/atom+xml" title="Atom Feed" href="/feed.xml" />
</head>
<body>
-
- <div id="main" role="main">
+ <header>
+ <span class='title'>OFFRobot</span>
+ <a href="hud.html">HUD</a>
+ </header>
+ <div id='main' role='main'>
<h1>Archive for
-
- Jan 2012
-
-</h1>
-
-
-<ul>
-
- <li><a href="/2012/01/01/example-article.html">Example Article</a> <span>Jan 1</span></li>
-
-</ul>
-
-
+
+ Jan 2012
+
+ </h1>
+
+
+ <ul>
+
+ <li><a href="/2012/01/01/example-article.html">Example Article</a> <span>Jan 1</span></li>
+
+ </ul>
</div>
-
<aside>
<h2>Recent Articles</h2>
<ol>
-
- <li><a href="/2012/01/01/example-article.html">Example Article</a> <span>Jan 1</span></li>
-
+ <li>
+ <a href="/2012/01/01/example-article.html">Example Article</a>
+ <span>Jan 1</span>
+ </li>
</ol>
-
<h2>Tags</h2>
<ol>
-
- <li><a href="/tags/example.html">example</a> (1)</a></li>
-
+ <li>
+ <a href="/tags/example.html">example</a>
+ (1)
+ </li>
</ol>
-
<h2>By Year</h2>
<ol>
-
- <li><a href="/2012.html">2012</a> (1)</a></li>
-
+ <li>
+ <a href="/2012.html">2012</a>
+ (1)
+ </li>
</ol>
</aside>
</body>
View
@@ -1,50 +1,55 @@
-<!doctype html>
+<!DOCTYPE html>
<html>
<head>
- <meta charset="utf-8" />
- <meta http-equiv='X-UA-Compatible' content='IE=edge;chrome=1' />
- <title>Blog Title</title>
+ <meta charset='utf-8'>
+ <meta content='IE=edge;chrome=1' http-equiv='X-UA-Compatible'>
+ <base href='http://0.0.0.0:4567/'>
+ <title>
+ OFFRobot
+ </title>
+ <link href='stylesheets/application.css' rel='stylesheet' type='text/css'>
<link rel="alternate" type="application/atom+xml" title="Atom Feed" href="/feed.xml" />
</head>
<body>
-
- <div id="main" role="main">
+ <header>
+ <span class='title'>OFFRobot</span>
+ <a href="hud.html">HUD</a>
+ </header>
+ <div id='main' role='main'>
<h1>Archive for
-
- Jan 1 2012
-
-</h1>
-
-
-<ul>
-
- <li><a href="/2012/01/01/example-article.html">Example Article</a> <span>Jan 1</span></li>
-
-</ul>
-
-
+
+ Jan 1 2012
+
+ </h1>
+
+
+ <ul>
+
+ <li><a href="/2012/01/01/example-article.html">Example Article</a> <span>Jan 1</span></li>
+
+ </ul>
</div>
-
<aside>
<h2>Recent Articles</h2>
<ol>
-
- <li><a href="/2012/01/01/example-article.html">Example Article</a> <span>Jan 1</span></li>
-
+ <li>
+ <a href="/2012/01/01/example-article.html">Example Article</a>
+ <span>Jan 1</span>
+ </li>
</ol>
-
<h2>Tags</h2>
<ol>
-
- <li><a href="/tags/example.html">example</a> (1)</a></li>
-
+ <li>
+ <a href="/tags/example.html">example</a>
+ (1)
+ </li>
</ol>
-
<h2>By Year</h2>
<ol>
-
- <li><a href="/2012.html">2012</a> (1)</a></li>
-
+ <li>
+ <a href="/2012.html">2012</a>
+ (1)
+ </li>
</ol>
</aside>
</body>
@@ -1,38 +1,44 @@
-<!doctype html>
+<!DOCTYPE html>
<html>
<head>
- <meta charset="utf-8" />
- <meta http-equiv='X-UA-Compatible' content='IE=edge;chrome=1' />
- <title>Blog Title - Example Article</title>
+ <meta charset='utf-8'>
+ <meta content='IE=edge;chrome=1' http-equiv='X-UA-Compatible'>
+ <base href='http://0.0.0.0:4567/'>
+ <title>
+ OFFRobot - Example Article
+ </title>
+ <link href='stylesheets/application.css' rel='stylesheet' type='text/css'>
<link rel="alternate" type="application/atom+xml" title="Atom Feed" href="/feed.xml" />
</head>
<body>
-
- <div id="main" role="main">
+ <header>
+ <span class='title'>OFFRobot</span>
+ <a href="/hud.html">HUD</a>
+ </header>
+ <div id='main' role='main'>
<p>This is an example article. You probably want to delete it and write your own articles!</p>
-
</div>
-
<aside>
<h2>Recent Articles</h2>
<ol>
-
- <li><a href="/2012/01/01/example-article.html">Example Article</a> <span>Jan 1</span></li>
-
+ <li>
+ <a href="/2012/01/01/example-article.html">Example Article</a>
+ <span>Jan 1</span>
+ </li>
</ol>
-
<h2>Tags</h2>
<ol>
-
- <li><a href="/tags/example.html">example</a> (1)</a></li>
-
+ <li>
+ <a href="/tags/example.html">example</a>
+ (1)
+ </li>
</ol>
-
<h2>By Year</h2>
<ol>
-
- <li><a href="/2012.html">2012</a> (1)</a></li>
-
+ <li>
+ <a href="/2012.html">2012</a>
+ (1)
+ </li>
</ol>
</aside>
</body>
View
@@ -0,0 +1,41 @@
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
+ <link rel="stylesheet" type="text/css" href="stylesheets/hud.css">
+ </head>
+ <body>
+ <div id="container"></div>
+ <div id="info">
+ <span id="result"></span>
+ </div>
+ <script src="javascripts/virtualjoystick.js"></script>
+
+ <script>
+ console.log("touchscreen is", VirtualJoystick.touchScreenAvailable() ? "available" : "not available");
+
+ var joystick = new VirtualJoystick({
+ container : document.getElementById('container'),
+ mouseSupport : true,
+ });
+ joystick.addEventListener('touchStart', function(){
+ console.log('down')
+ })
+ joystick.addEventListener('touchEnd', function(){
+ console.log('up')
+ })
+
+ setInterval(function(){
+ var outputEl = document.getElementById('result');
+ outputEl.innerHTML = ''
+ // + ' dx:'+joystick.deltaX()
+ // + ' dy:'+joystick.deltaY()
+ + (joystick.right() ? ' right' : '')
+ + (joystick.up() ? ' up' : '')
+ + (joystick.left() ? ' left' : '')
+ + (joystick.down() ? ' down' : '')
+ }, 1/30 * 1000);
+ </script>
+
+ </body>
+</html>
Oops, something went wrong.

0 comments on commit b147261

Please sign in to comment.