Allan Davis avatar Allan Davis committed 97c5d43

Created Basic prototype for TrackerPoker2

Comments (0)

Files changed (3)

code/TrackerPokerProto/Gemfile

+# A sample Gemfile
+source "https://rubygems.org"
+
+# gem "rails"
+gem 'sinatra'

code/TrackerPokerProto/proto.rb

+require 'sinatra'
+
+get '/' do
+  erb :index
+end

code/TrackerPokerProto/views/index.erb

+<!DOCTYPE html>
+<html>
+    <head>
+    <meta name="viewport"
+            content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/>
+    <meta name="apple-mobile-web-app-capable" content="yes" />
+    <title>Tracker Poker</title>
+ 
+    <!-- stylesheet will go here -->
+ 
+    <!-- dojo/javascript will go here -->
+    <script src="http://ajax.googleapis.com/ajax/libs/dojo/1.8.0/dojo/dojo.js"
+    data-dojo-config="async:true"></script>
+    <script >
+          // Load the widget parser and mobile base
+      require(["dojox/mobile/parser", "dojox/mobile/deviceTheme","dojox/mobile/compat", "dojox/mobile"],
+          function(parser, deviceTheme) {
+       
+              // Parse the page for widgets!
+              parser.parse();
+       
+          }
+      );
+    </script>
+    </head>
+    <body>
+ 
+    <!-- application will go here -->
+      <!-- the view or "page"; select it as the "home" screen -->
+<div id="home" data-dojo-type="dojox.mobile.View" data-dojo-props="selected: true">
+ 
+    <!-- a sample heading -->
+    <h1 data-dojo-type="dojox.mobile.Heading">Tracker Poker</h1>
+ 
+    <!-- a rounded rectangle list container -->
+    <ul data-dojo-type="dojox.mobile.EdgeToEdgeList">
+ 
+        <!-- list item with an icon containing a switch -->
+        <li data-dojo-type="dojox.mobile.ListItem" 
+            data-dojo-props="moveTo: 'board'">
+            Play locally
+            
+        </li>
+        <li data-dojo-type="dojox.mobile.ListItem"
+              data-dojo-props="moveTo: 'room'">
+            Play with distributed team
+        </li>
+        
+    </ul>
+</div>
+<div id="board" data-dojo-type="dojox.mobile.View">
+    <h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props="back:'Home', moveTo:'home'">
+            Score for Story
+    </h1>
+    <ul data-dojo-type="dojox.mobile.EdgeToEdgeList">
+        <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props="moveTo:'card'">
+            0
+        </li>
+        <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props="moveTo:'card'">
+            1
+        </li>
+        <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props="moveTo:'card'">
+            2
+        </li>
+        <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props="moveTo:'card'">
+            3
+        </li>
+        <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props="moveTo:'card'">
+            5
+        </li>
+        <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props="moveTo:'card'">
+            8
+        </li>
+        <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props="moveTo:'card'">
+            13
+        </li>
+        <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props="moveTo:'card'">
+            20
+        </li>
+        <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props="moveTo:'card'">
+            40
+        </li>
+        <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props="moveTo:'card'">
+            100
+        </li>
+        <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props="moveTo:'card'">
+            Infinity
+        </li>
+        <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props="moveTo:'card'">
+            Unknown
+        </li>
+        <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props="moveTo:'card'">
+            Break
+        </li>
+    </ul>
+</div>
+ 
+<div id="room" data-dojo-type="dojox.mobile.View">
+    <h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props="back:'Home', moveTo:'home'">
+            Room
+    </h1>
+    <ul data-dojo-type="dojox.mobile.EdgeToEdgeList">
+        <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props="moveTo:'login'">
+            Not logged in
+        </li>
+        <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props="moveTo:'scan'">
+            Enter or Scan Room
+        </li>
+        <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props="moveTo:'board'">
+            Join Game
+        </li>
+    </ul>
+</div>
+<div id="card" data-dojo-type="dojox.mobile.View">
+    <h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props="back:'Story', moveTo:'board'">
+            Card
+    </h1>
+    
+</div>
+    </body>
+</html>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.