diff --git a/trunk/share-a-bike/app/assistants/kiosk-assistant.js b/trunk/share-a-bike/app/assistants/kiosk-assistant.js new file mode 100644 index 0000000..c39c70f --- /dev/null +++ b/trunk/share-a-bike/app/assistants/kiosk-assistant.js @@ -0,0 +1,11 @@ +function KioskAssistant(argFromPusher) { +} + +KioskAssistant.prototype = { + setup: function() { + Ares.setupSceneAssistant(this); + }, + cleanup: function() { + Ares.cleanupSceneAssistant(this); + } +}; \ No newline at end of file diff --git a/trunk/share-a-bike/app/views/kiosk/kiosk-chrome.js b/trunk/share-a-bike/app/views/kiosk/kiosk-chrome.js new file mode 100644 index 0000000..6d44af2 --- /dev/null +++ b/trunk/share-a-bike/app/views/kiosk/kiosk-chrome.js @@ -0,0 +1,96 @@ +opus.Gizmo({ + name: "kiosk", + dropTarget: true, + type: "Palm.Mojo.Panel", + h: "100%", + styles: { + zIndex: 2 + }, + chrome: [ + { + name: "pageHeader2", + title: "17th & Grant", + subtitle: "", + type: "Palm.Mojo.PageHeader", + l: 0, + t: 0 + }, + { + name: "scroller1", + scrollPosition: { + left: 0, + top: 0 + }, + type: "Palm.Mojo.Scroller", + l: 0, + t: 0, + h: "100%", + styles: { + cursor: "move", + overflow: "hidden" + }, + controls: [ + { + name: "group1", + dropTarget: true, + label: "Location", + type: "Palm.Mojo.Group", + l: 0, + t: 0, + h: "100", + controls: [ + { + name: "row1", + dropTarget: true, + focusHighlight: false, + tapHighlight: false, + type: "Palm.Mojo.Row", + l: 0, + t: 0, + h: "100%", + controls: [ + { + name: "label2", + kind: "title", + label: "1700 Grant St", + type: "Palm.Mojo.Label", + l: "4", + t: 0, + h: "28" + }, + { + name: "label3", + kind: "title", + label: "Denver, CO 80000", + type: "Palm.Mojo.Label", + l: "4", + t: 28, + h: "28" + } + ] + } + ] + }, + { + name: "group2", + dropTarget: true, + label: "Availability", + type: "Palm.Mojo.Group", + l: 0, + t: 95, + controls: [ + { + name: "row2", + dropTarget: true, + focusHighlight: false, + tapHighlight: false, + type: "Palm.Mojo.Row", + l: 0, + t: 0 + } + ] + } + ] + } + ] +}); \ No newline at end of file diff --git a/trunk/share-a-bike/app/views/kiosk/kiosk-scene.html b/trunk/share-a-bike/app/views/kiosk/kiosk-scene.html new file mode 100644 index 0000000..e69de29 diff --git a/trunk/share-a-bike/appinfo.json b/trunk/share-a-bike/appinfo.json index 035dd1a..ad62b5f 100644 --- a/trunk/share-a-bike/appinfo.json +++ b/trunk/share-a-bike/appinfo.json @@ -5,6 +5,7 @@ "type": "web", "main": "index.html", "title": "Share-a-Bike", + "theme": "light", "icon": "icon.png" , "smallicon": "images/icon-32.png", "copyright": "© Copyright 2010 Mike Shoup", diff --git a/trunk/share-a-bike/sources.json b/trunk/share-a-bike/sources.json index 6347a3d..cb4949d 100644 --- a/trunk/share-a-bike/sources.json +++ b/trunk/share-a-bike/sources.json @@ -17,5 +17,13 @@ { "source": "app/views/mapScene/mapScene-chrome.js", "scenes": "mapScene" + }, + { + "source": "app/assistants/kiosk-assistant.js", + "scenes": "kiosk" + }, + { + "source": "app/views/kiosk/kiosk-chrome.js", + "scenes": "kiosk" } ] \ No newline at end of file