1
0
Fork 0
mirror of https://github.com/shouptech/share-a-bike.git synced 2026-02-03 12:29:42 +00:00

Laid framework for kiosk scene

This commit is contained in:
mikeshoup@gmail.com 2010-12-19 04:20:11 +00:00
parent b76cbb49fa
commit b09a88fddd
5 changed files with 116 additions and 0 deletions

View file

@ -0,0 +1,11 @@
function KioskAssistant(argFromPusher) {
}
KioskAssistant.prototype = {
setup: function() {
Ares.setupSceneAssistant(this);
},
cleanup: function() {
Ares.cleanupSceneAssistant(this);
}
};

View file

@ -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
}
]
}
]
}
]
});

View file

@ -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",

View file

@ -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"
}
]