diff options
author | François Frisch | 2012-03-17 11:21:22 -0700 |
---|---|---|
committer | François Frisch | 2012-03-17 11:21:22 -0700 |
commit | 1d0efc758bc9404eebbc8b8d592de9dbb329899e (patch) | |
tree | f9d21f8e03ffe919b8827b0aa2a4c4eb7b784c95 /node_modules/montage/examples/feed-reader | |
parent | 9b8a24a7360416d5750828c9580e33dd336ff882 (diff) | |
download | ninja-1d0efc758bc9404eebbc8b8d592de9dbb329899e.tar.gz |
Adding feed reader and map
Diffstat (limited to 'node_modules/montage/examples/feed-reader')
19 files changed, 404 insertions, 0 deletions
diff --git a/node_modules/montage/examples/feed-reader/images/07-map-marker.png b/node_modules/montage/examples/feed-reader/images/07-map-marker.png new file mode 100644 index 00000000..a5d99d69 --- /dev/null +++ b/node_modules/montage/examples/feed-reader/images/07-map-marker.png | |||
Binary files differ | |||
diff --git a/node_modules/montage/examples/feed-reader/images/10-medical.png b/node_modules/montage/examples/feed-reader/images/10-medical.png new file mode 100644 index 00000000..ab78c783 --- /dev/null +++ b/node_modules/montage/examples/feed-reader/images/10-medical.png | |||
Binary files differ | |||
diff --git a/node_modules/montage/examples/feed-reader/images/100-coffee.png b/node_modules/montage/examples/feed-reader/images/100-coffee.png new file mode 100644 index 00000000..4e9c517a --- /dev/null +++ b/node_modules/montage/examples/feed-reader/images/100-coffee.png | |||
Binary files differ | |||
diff --git a/node_modules/montage/examples/feed-reader/images/107-widescreen.png b/node_modules/montage/examples/feed-reader/images/107-widescreen.png new file mode 100644 index 00000000..2e5f1ba7 --- /dev/null +++ b/node_modules/montage/examples/feed-reader/images/107-widescreen.png | |||
Binary files differ | |||
diff --git a/node_modules/montage/examples/feed-reader/images/125-food.png b/node_modules/montage/examples/feed-reader/images/125-food.png new file mode 100644 index 00000000..81afd74a --- /dev/null +++ b/node_modules/montage/examples/feed-reader/images/125-food.png | |||
Binary files differ | |||
diff --git a/node_modules/montage/examples/feed-reader/images/142-wine-bottle.png b/node_modules/montage/examples/feed-reader/images/142-wine-bottle.png new file mode 100644 index 00000000..a7df9e97 --- /dev/null +++ b/node_modules/montage/examples/feed-reader/images/142-wine-bottle.png | |||
Binary files differ | |||
diff --git a/node_modules/montage/examples/feed-reader/images/34-coffee.png b/node_modules/montage/examples/feed-reader/images/34-coffee.png new file mode 100644 index 00000000..4c4bedad --- /dev/null +++ b/node_modules/montage/examples/feed-reader/images/34-coffee.png | |||
Binary files differ | |||
diff --git a/node_modules/montage/examples/feed-reader/images/35-shopping.png b/node_modules/montage/examples/feed-reader/images/35-shopping.png new file mode 100644 index 00000000..03689f99 --- /dev/null +++ b/node_modules/montage/examples/feed-reader/images/35-shopping.png | |||
Binary files differ | |||
diff --git a/node_modules/montage/examples/feed-reader/images/38-airplane.png b/node_modules/montage/examples/feed-reader/images/38-airplane.png new file mode 100644 index 00000000..dfcbbc78 --- /dev/null +++ b/node_modules/montage/examples/feed-reader/images/38-airplane.png | |||
Binary files differ | |||
diff --git a/node_modules/montage/examples/feed-reader/images/41-picture-frame.png b/node_modules/montage/examples/feed-reader/images/41-picture-frame.png new file mode 100644 index 00000000..6deee997 --- /dev/null +++ b/node_modules/montage/examples/feed-reader/images/41-picture-frame.png | |||
Binary files differ | |||
diff --git a/node_modules/montage/examples/feed-reader/images/48-fork-and-knife.png b/node_modules/montage/examples/feed-reader/images/48-fork-and-knife.png new file mode 100644 index 00000000..06d91088 --- /dev/null +++ b/node_modules/montage/examples/feed-reader/images/48-fork-and-knife.png | |||
Binary files differ | |||
diff --git a/node_modules/montage/examples/feed-reader/images/87-wine-glass.png b/node_modules/montage/examples/feed-reader/images/87-wine-glass.png new file mode 100644 index 00000000..b4d34474 --- /dev/null +++ b/node_modules/montage/examples/feed-reader/images/87-wine-glass.png | |||
Binary files differ | |||
diff --git a/node_modules/montage/examples/feed-reader/index.html b/node_modules/montage/examples/feed-reader/index.html new file mode 100644 index 00000000..3b5529b9 --- /dev/null +++ b/node_modules/montage/examples/feed-reader/index.html | |||
@@ -0,0 +1,81 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <!-- <copyright> | ||
3 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
4 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
5 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
6 | </copyright> --> | ||
7 | <html> | ||
8 | <head> | ||
9 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
10 | <title>Montage Feed Reader</title> | ||
11 | |||
12 | <script src="../../montage.js" data-package="."></script> | ||
13 | |||
14 | <script type="text/montage-serialization"> | ||
15 | { | ||
16 | "owner": { | ||
17 | "module": "montage/ui/loader.reel", | ||
18 | "name": "Loader" | ||
19 | } | ||
20 | } | ||
21 | </script> | ||
22 | |||
23 | <style type="text/css"> | ||
24 | |||
25 | html, body { | ||
26 | background-color: #eee; | ||
27 | font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; | ||
28 | font-size: 13px; | ||
29 | font-weight: normal; | ||
30 | line-height: 18px; | ||
31 | color: #404040; | ||
32 | |||
33 | } | ||
34 | |||
35 | #montage-bootstrapper { | ||
36 | display: none; | ||
37 | color: red; | ||
38 | } | ||
39 | |||
40 | .montage-bootstrapping #montage-bootstrapper { | ||
41 | display: block; | ||
42 | } | ||
43 | |||
44 | #montage-loader { | ||
45 | color: green; | ||
46 | display: none; | ||
47 | } | ||
48 | |||
49 | .montage-loading #montage-loader { | ||
50 | display: block; | ||
51 | } | ||
52 | |||
53 | .main { | ||
54 | display: block; | ||
55 | } | ||
56 | |||
57 | .montage-loaded .main { | ||
58 | display: block; | ||
59 | } | ||
60 | |||
61 | </style> | ||
62 | |||
63 | </head> | ||
64 | <body> | ||
65 | |||
66 | <p> | ||
67 | <center> | ||
68 | <img src="montage-logo.png" /> | ||
69 | </center> | ||
70 | </p> | ||
71 | |||
72 | <div id="montage-bootstrapper"> | ||
73 | <p>This is the bootstrapper content which will now be shown for at least 1500ms.</p> | ||
74 | </div> | ||
75 | <div id="montage-loader"> | ||
76 | <p>This is the loader content which will now be shown for at least 2000ms.</p> | ||
77 | </div> | ||
78 | |||
79 | |||
80 | </body> | ||
81 | </html> | ||
diff --git a/node_modules/montage/examples/feed-reader/main.reel/main.html b/node_modules/montage/examples/feed-reader/main.reel/main.html new file mode 100644 index 00000000..8ea9a79b --- /dev/null +++ b/node_modules/montage/examples/feed-reader/main.reel/main.html | |||
@@ -0,0 +1,184 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <html> | ||
3 | <head> | ||
4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
5 | <title>Feed Reader Example</title> | ||
6 | |||
7 | |||
8 | |||
9 | <script type="text/montage-serialization"> | ||
10 | { | ||
11 | |||
12 | "goButton": { | ||
13 | "module": "montage/ui/button.reel", | ||
14 | "name": "Button", | ||
15 | "properties": { | ||
16 | "element": { | ||
17 | "#": "btn-go" | ||
18 | }, | ||
19 | "identifier": "go" | ||
20 | }, | ||
21 | "listeners": [ | ||
22 | { | ||
23 | "type": "action", | ||
24 | "listener": {"@": "owner"} | ||
25 | } | ||
26 | ] | ||
27 | }, | ||
28 | |||
29 | "feedURL": { | ||
30 | "module": "montage/ui/textfield.reel", | ||
31 | "name": "Textfield", | ||
32 | "properties": { | ||
33 | "element": {"#": "feed-url"} | ||
34 | }, | ||
35 | "bindings": { | ||
36 | "value": { | ||
37 | "boundObject": {"@": "owner"}, | ||
38 | "boundObjectPropertyPath": "feedURL" | ||
39 | } | ||
40 | } | ||
41 | }, | ||
42 | |||
43 | "feedReader": { | ||
44 | "module": "montage/ui/feed-reader/feed-reader.reel", | ||
45 | "name": "FeedReader", | ||
46 | "properties": { | ||
47 | "element": {"#": "feed-reader"} | ||
48 | } | ||
49 | }, | ||
50 | |||
51 | "mapCenter": { | ||
52 | "module": "montage/ui/textfield.reel", | ||
53 | "name": "Textfield", | ||
54 | "properties": { | ||
55 | "element": {"#": "map-center"} | ||
56 | } | ||
57 | }, | ||
58 | |||
59 | "mapButton": { | ||
60 | "module": "montage/ui/button.reel", | ||
61 | "name": "Button", | ||
62 | "properties": { | ||
63 | "element": { | ||
64 | "#": "btn-map" | ||
65 | }, | ||
66 | "identifier": "mapButton" | ||
67 | }, | ||
68 | "listeners": [ | ||
69 | { | ||
70 | "type": "action", | ||
71 | "listener": {"@": "owner"} | ||
72 | } | ||
73 | ] | ||
74 | }, | ||
75 | |||
76 | "map": { | ||
77 | "prototype": "montage/ui/map.reel", | ||
78 | "properties": { | ||
79 | "element": {"#": "map"} | ||
80 | } | ||
81 | }, | ||
82 | |||