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:
parent
6021f4afe2
commit
0aa678acac
5 changed files with 116 additions and 0 deletions
11
share-a-bike/app/assistants/kiosk-assistant.js
Normal file
11
share-a-bike/app/assistants/kiosk-assistant.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
function KioskAssistant(argFromPusher) {
|
||||
}
|
||||
|
||||
KioskAssistant.prototype = {
|
||||
setup: function() {
|
||||
Ares.setupSceneAssistant(this);
|
||||
},
|
||||
cleanup: function() {
|
||||
Ares.cleanupSceneAssistant(this);
|
||||
}
|
||||
};
|
||||
96
share-a-bike/app/views/kiosk/kiosk-chrome.js
Normal file
96
share-a-bike/app/views/kiosk/kiosk-chrome.js
Normal 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
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
0
share-a-bike/app/views/kiosk/kiosk-scene.html
Normal file
0
share-a-bike/app/views/kiosk/kiosk-scene.html
Normal 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",
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
Loading…
Add table
Reference in a new issue