|
1 | 1 | {
|
2 |
| - "title": "JSON:Presenter", |
3 |
| - "description": "A demo presentation that outlines some features of JSON:Presenter", |
4 |
| - "aspectW": 16, |
5 |
| - "aspectH": 9, |
| 2 | + "title": "JSON::Presenter", |
| 3 | + "description": "A demo presentation that outlines some features of JSON::Presenter", |
| 4 | + "aspectW": 160, |
| 5 | + "aspectH": 89, |
6 | 6 | "container": {
|
7 | 7 | "border": "1px solid black",
|
8 | 8 | "background": "black"
|
|
14 | 14 | "fontStyle": "normal",
|
15 | 15 | "fontColor": "white",
|
16 | 16 | "textAlign": "left",
|
17 |
| - "blockLeft" : 0, |
18 |
| - "blockTop" : 0, |
| 17 | + "textMarginLeft": 0, |
| 18 | + "textMarginTop": 0, |
| 19 | + "blockLeft": 0, |
| 20 | + "blockTop": 0, |
19 | 21 | "blockWidth": 1000,
|
20 |
| - "blockBackground" : "none", |
| 22 | + "blockBackground": "none", |
21 | 23 | "blockBorder": "none",
|
22 |
| - "blockPaddingLeft": 20, |
23 |
| - "blockPaddingTop": 0 |
| 24 | + "blockBorderRadius": 0 |
24 | 25 | },
|
25 | 26 | "blocks": {
|
26 | 27 | "title": {
|
27 |
| - "type": "text", |
28 |
| - "spec": { |
29 |
| - "blockTop": 300, |
30 |
| - "blockHeight": 300, |
31 |
| - "textAlign": "center", |
32 |
| - "fontSize": 200, |
33 |
| - "fontWeight": "bold", |
34 |
| - "fontColor": "#800000" |
35 |
| - } |
| 28 | + "blockTop": 300, |
| 29 | + "blockHeight": 300, |
| 30 | + "textAlign": "center", |
| 31 | + "fontSize": 200, |
| 32 | + "fontWeight": "bold", |
| 33 | + "fontColor": "#800000" |
36 | 34 | },
|
37 | 35 | "title 2": {
|
38 |
| - "type": "text", |
39 |
| - "spec": { |
40 |
| - "blockTop": 50, |
41 |
| - "blockHeight": 150, |
42 |
| - "textAlign": "center", |
43 |
| - "fontSize": 100, |
44 |
| - "fontWeight": "bold", |
45 |
| - "fontColor": "#00dddd" |
46 |
| - } |
| 36 | + "blockTop": 50, |
| 37 | + "blockHeight": 150, |
| 38 | + "textAlign": "center", |
| 39 | + "fontSize": 100, |
| 40 | + "fontWeight": "bold", |
| 41 | + "fontColor": "#dddd00" |
47 | 42 | },
|
48 | 43 | "body": {
|
49 |
| - "type": "text", |
50 |
| - "spec": { |
51 |
| - "blockTop": 200, |
52 |
| - "blockHeight": 800, |
53 |
| - "blockPaddingLeft": 80, |
54 |
| - "blockPaddingTop": 40, |
55 |
| - "fontFamily": "Helvetica,sans-serif", |
56 |
| - "fontColor": "#00ffff" |
57 |
| - } |
| 44 | + "blockLeft": 80, |
| 45 | + "blockTop": 240, |
| 46 | + "blockWidth": 840, |
| 47 | + "blockHeight": 800, |
| 48 | + "fontFamily": "Helvetica,sans-serif", |
| 49 | + "fontColor": "#dddddd" |
| 50 | + }, |
| 51 | + "body right": { |
| 52 | + "blockLeft": 500, |
| 53 | + "blockTop": 200, |
| 54 | + "blockWidth": 420, |
| 55 | + "blockHeight": 800, |
| 56 | + "fontFamily": "Helvetica,sans-serif", |
| 57 | + "fontColor": "#dddddd" |
| 58 | + }, |
| 59 | + "left image": { |
| 60 | + "blockLeft": 80, |
| 61 | + "blockTop": 200, |
| 62 | + "blockWidth": 370, |
| 63 | + "blockHeight": 700, |
| 64 | + "blockBorder": "1px solid black", |
| 65 | + "blockBorderRadius": "1em" |
58 | 66 | }
|
59 | 67 | },
|
60 | 68 | "content": {
|
61 |
| - "presenter title": "JSON:Presenter", |
62 |
| - "slide 1": [ |
63 |
| - "JSON:Presenter<sup>©</sup> is a presentation format using JSON scripts and an engine that runs those scripts in a browser to create presentations. These may be similar to those created using PowerPoint or they can be considerably more elaborate, with extensive animation and even sound. In some cases they can take the place of video yet still offer a dynamic experience.", |
64 |
| - |
65 |
| - "Presentations can run from any host, including static; all you need is one CDN-hosted JavaScript file and you're good to go.", |
66 |
| - |
67 |
| - "The JSON:Presenter<sup>©</sup> engine is pure JavaScript. It can be used with any JavaScript framework, or with none." |
68 |
| - ] |
| 69 | + "presenter title": { |
| 70 | + "type": "text", |
| 71 | + "content": "JSON::Presenter" |
| 72 | + }, |
| 73 | + "slide 1": { |
| 74 | + "type": "text", |
| 75 | + "content": [ |
| 76 | + "JSON::Presenter is a presentation format using JSON scripts, and an engine that runs those scripts in a browser to create presentations. These may be similar to those created using PowerPoint or they can be considerably more elaborate, with extensive animation and even sound. In some cases they can take the place of video yet still offer a dynamic experience.", |
| 77 | + |
| 78 | + "Presentations can run from any host, including static; all you need is one CDN-hosted JavaScript file and you're good to go.", |
| 79 | + |
| 80 | + "The JSON::Presenter engine is pure JavaScript. It can be used with any JavaScript framework, or with none." |
| 81 | + ] |
| 82 | + }, |
| 83 | + "slide 2": { |
| 84 | + "type": "text", |
| 85 | + "content": [ |
| 86 | + "JSON::Presenter offers a range of block types and transitions that make it easy to create slick, effective presentations.", |
| 87 | + |
| 88 | + "This short demo illustrates some of the features of the system." |
| 89 | + ] |
| 90 | + }, |
| 91 | + "slide 3": { |
| 92 | + "type": "text", |
| 93 | + "content": [ |
| 94 | + "Text and image blocks can be manipulated in a variety of different ways.", |
| 95 | + |
| 96 | + "Any block can be resized or moved; text can be substituted or have its size or color change; images can be assigned to blocks. Any block can be faded or transformed using animations.", |
| 97 | + |
| 98 | + "The JSON::Presenter scripting language uses simple data JSON structures and is easy to read or write." |
| 99 | + ] |
| 100 | + }, |
| 101 | + "flowers": { |
| 102 | + "type": "image", |
| 103 | + "url": "img/flowers.jpg" |
| 104 | + }, |
| 105 | + "moon": { |
| 106 | + "type": "image", |
| 107 | + "url": "img/moon.jpg" |
| 108 | + } |
69 | 109 | },
|
70 | 110 | "steps": [
|
71 | 111 | {
|
72 |
| - "comment": "-------------------- Create the title and body blocks", |
73 |
| - "action": "create", |
74 |
| - "blocks": [ |
75 |
| - "title", |
76 |
| - "body" |
77 |
| - ] |
| 112 | + "comment": "------------------------------- Pause before we start", |
| 113 | + "action": "pause", |
| 114 | + "duration": 2 |
78 | 115 | },
|
79 | 116 | {
|
80 | 117 | "comment": "---------------------------------- Set up the content",
|
|
87 | 124 | {
|
88 | 125 | "block": "body",
|
89 | 126 | "content": "slide 1"
|
| 127 | + }, |
| 128 | + { |
| 129 | + "block": "left image", |
| 130 | + "content": "flowers" |
90 | 131 | }
|
91 | 132 | ]
|
92 | 133 | },
|
93 | 134 | {
|
94 |
| - "comment": "----------------------------- A pause before we start", |
95 |
| - "action": "hold", |
96 |
| - "duration": 2 |
97 |
| - }, |
98 |
| - { |
99 |
| - "comment": "-------------------------------- Show the intro title", |
| 135 | + "comment": "----------------------------- Fade up the intro title", |
100 | 136 | "action": "fade up",
|
101 | 137 | "blocks": "title",
|
102 |
| - "duration": 3, |
103 |
| - "wait": true |
| 138 | + "duration": 3 |
104 | 139 | },
|
105 | 140 | {
|
106 | 141 | "comment": "-------------------------------------- Wait 4 seconds",
|
|
119 | 154 | "block": "title",
|
120 | 155 | "target": "title 2",
|
121 | 156 | "duration": 1,
|
122 |
| - "wait": true |
| 157 | + "continue": true |
| 158 | + }, |
| 159 | + { |
| 160 | + "comment": "----------------------------- Pause for half a second", |
| 161 | + "action": "pause", |
| 162 | + "duration": 0.5 |
123 | 163 | },
|
124 | 164 | {
|
125 | 165 | "comment": "-------------------------------- Show the first slide",
|
126 | 166 | "action": "fade up",
|
127 | 167 | "blocks": "body",
|
128 |
| - "duration": 1, |
129 |
| - "wait": true |
| 168 | + "duration": 1 |
| 169 | + }, |
| 170 | + { |
| 171 | + "comment": "------------------------------------- Wait 10 seconds", |
| 172 | + "action": "hold", |
| 173 | + "duration": 10 |
| 174 | + }, |
| 175 | + { |
| 176 | + "comment": "-------------------------------- Change the body text", |
| 177 | + "action": "crossfade", |
| 178 | + "block": "body", |
| 179 | + "target": "slide 2", |
| 180 | + "duration": 1 |
| 181 | + }, |
| 182 | + { |
| 183 | + "comment": "------------------------------------- Wait 5 seconds", |
| 184 | + "action": "hold", |
| 185 | + "duration": 5 |
| 186 | + }, |
| 187 | + { |
| 188 | + "comment": "-------------------------- Move the body to the right", |
| 189 | + "action": "transition", |
| 190 | + "type": [ |
| 191 | + "block position", |
| 192 | + "block size" |
| 193 | + ], |
| 194 | + "block": "body", |
| 195 | + "target": "body right", |
| 196 | + "duration": 1 |
| 197 | + }, |
| 198 | + { |
| 199 | + "comment": "----------------------------- Fade up the image block", |
| 200 | + "action": "fade up", |
| 201 | + "blocks": "left image", |
| 202 | + "duration": 2 |
| 203 | + }, |
| 204 | + { |
| 205 | + "comment": "-------------------------------------- Wait 8 seconds", |
| 206 | + "action": "hold", |
| 207 | + "duration": 8 |
| 208 | + }, |
| 209 | + { |
| 210 | + "comment": "--------------------------------- Crossfade the image", |
| 211 | + "action": "crossfade", |
| 212 | + "block": "left image", |
| 213 | + "target": "moon", |
| 214 | + "duration": 1 |
| 215 | + }, |
| 216 | + { |
| 217 | + "comment": "-------------------------------------- Wait 2 seconds", |
| 218 | + "action": "hold", |
| 219 | + "duration": 2 |
| 220 | + }, |
| 221 | + { |
| 222 | + "comment": "-------------------------------- Change the body text", |
| 223 | + "action": "set content", |
| 224 | + "block": "body", |
| 225 | + "content": "slide 3" |
130 | 226 | },
|
131 | 227 | {
|
132 | 228 | "comment": "------------------------------------- Wait 10 seconds",
|
|
138 | 234 | "action": "fade down",
|
139 | 235 | "blocks": [
|
140 | 236 | "title",
|
141 |
| - "body" |
| 237 | + "body", |
| 238 | + "left image" |
142 | 239 | ],
|
143 |
| - "duration": 3, |
144 |
| - "wait": true |
| 240 | + "duration": 3 |
145 | 241 | }
|
146 | 242 | ]
|
147 | 243 | }
|
0 commit comments