|
8 | 8 | div Header
|
9 | 9 | div Sidebar
|
10 | 10 | div Document
|
| 11 | + div Notes |
11 | 12 | img Banner
|
12 | 13 | ul ButtonList
|
13 | 14 | li ButtonItem
|
|
18 | 19 | button PhilosophyButton
|
19 | 20 | button CodexButton
|
20 | 21 | hr Rule
|
| 22 | + a ShowNotes |
21 | 23 | module ShowdownModule
|
22 | 24 | module HomeModule
|
23 | 25 | module IntroModule
|
@@ -107,88 +109,98 @@ BuildPage:
|
107 | 109 |
|
108 | 110 | create ButtonItem in ButtonList
|
109 | 111 | create HomeButton in ButtonItem
|
110 |
| - set the style of HomeButton to ButtonStyle |
111 |
| - set style `background` of HomeButton to `darkgray` |
112 |
| - if not mobile set style `margin-top` of HomeButton to `1em` |
113 |
| - set the text of HomeButton to `Home` |
114 |
| - on click HomeButton |
115 |
| - begin |
116 |
| - gosub to DeselectAllButtons |
117 |
| - set style `background` of HomeButton to `darkgray` |
118 |
| - send `pause` to CurrentModule |
119 |
| - alias CurrentModule to HomeModule |
120 |
| - send to HomeModule |
121 |
| - end |
| 112 | + set the style of HomeButton to ButtonStyle |
| 113 | + set style `background` of HomeButton to `darkgray` |
| 114 | + if not mobile set style `margin-top` of HomeButton to `1em` |
| 115 | + set the text of HomeButton to `Home` |
| 116 | + on click HomeButton |
| 117 | + begin |
| 118 | + gosub to DeselectAllButtons |
| 119 | + set style `background` of HomeButton to `darkgray` |
| 120 | + send `pause` to CurrentModule |
| 121 | + alias CurrentModule to HomeModule |
| 122 | + send to HomeModule |
| 123 | + end |
122 | 124 |
|
123 | 125 | create ButtonItem in ButtonList
|
124 |
| - create IntroButton in ButtonItem |
125 |
| - set the style of IntroButton to ButtonStyle |
126 |
| - set style `margin-top` of IntroButton to `1em` |
127 |
| - set the text of IntroButton to `Introduction` |
128 |
| - on click IntroButton |
129 |
| - begin |
130 |
| - gosub to DeselectAllButtons |
131 |
| - set style `background` of IntroButton to `darkgray` |
132 |
| - send `pause` to CurrentModule |
133 |
| - alias CurrentModule to IntroModule |
134 |
| - send to IntroModule |
135 |
| - end |
| 126 | + create IntroButton in ButtonItem |
| 127 | + set the style of IntroButton to ButtonStyle |
| 128 | + set style `margin-top` of IntroButton to `1em` |
| 129 | + set the text of IntroButton to `Introduction` |
| 130 | + on click IntroButton |
| 131 | + begin |
| 132 | + gosub to DeselectAllButtons |
| 133 | + set style `background` of IntroButton to `darkgray` |
| 134 | + send `pause` to CurrentModule |
| 135 | + alias CurrentModule to IntroModule |
| 136 | + send to IntroModule |
| 137 | + end |
136 | 138 |
|
137 | 139 | create ButtonItem in ButtonList
|
138 |
| - create ExamplesButton in ButtonItem |
139 |
| - set the style of ExamplesButton to ButtonStyle |
140 |
| - set style `margin-top` of ExamplesButton to `0.25em` |
141 |
| - set the text of ExamplesButton to `Examples` |
142 |
| - on click ExamplesButton |
143 |
| - begin |
144 |
| - gosub to DeselectAllButtons |
145 |
| - set style `background` of ExamplesButton to `darkgray` |
146 |
| - send `pause` to CurrentModule |
147 |
| - alias CurrentModule to ExamplesModule |
148 |
| - send to ExamplesModule |
149 |
| - end |
| 140 | + create ExamplesButton in ButtonItem |
| 141 | + set the style of ExamplesButton to ButtonStyle |
| 142 | + set style `margin-top` of ExamplesButton to `0.25em` |
| 143 | + set the text of ExamplesButton to `Examples` |
| 144 | + on click ExamplesButton |
| 145 | + begin |
| 146 | + gosub to DeselectAllButtons |
| 147 | + set style `background` of ExamplesButton to `darkgray` |
| 148 | + send `pause` to CurrentModule |
| 149 | + alias CurrentModule to ExamplesModule |
| 150 | + send to ExamplesModule |
| 151 | + end |
150 | 152 |
|
151 | 153 | create ButtonItem in ButtonList
|
152 |
| - create AboutButton in ButtonItem |
153 |
| - set the style of AboutButton to ButtonStyle |
154 |
| - set style `margin-top` of AboutButton to `0.25em` |
155 |
| - set the text of AboutButton to `About EasyCoder` |
156 |
| - on click AboutButton |
157 |
| - begin |
158 |
| - gosub to DeselectAllButtons |
159 |
| - set style `background` of AboutButton to `darkgray` |
160 |
| - send `pause` to CurrentModule |
161 |
| - alias CurrentModule to AboutModule |
162 |
| - send to AboutModule |
163 |
| - end |
| 154 | + create AboutButton in ButtonItem |
| 155 | + set the style of AboutButton to ButtonStyle |
| 156 | + set style `margin-top` of AboutButton to `0.25em` |
| 157 | + set the text of AboutButton to `About EasyCoder` |
| 158 | + on click AboutButton |
| 159 | + begin |
| 160 | + gosub to DeselectAllButtons |
| 161 | + set style `background` of AboutButton to `darkgray` |
| 162 | + send `pause` to CurrentModule |
| 163 | + alias CurrentModule to AboutModule |
| 164 | + send to AboutModule |
| 165 | + end |
164 | 166 |
|
165 | 167 | create ButtonItem in ButtonList
|
166 |
| - create PhilosophyButton in ButtonItem |
167 |
| - set the style of PhilosophyButton to ButtonStyle |
168 |
| - set style `margin-top` of PhilosophyButton to `0.25em` |
169 |
| - set the text of PhilosophyButton to `Philosophy` |
170 |
| - on click PhilosophyButton |
171 |
| - begin |
172 |
| - gosub to DeselectAllButtons |
173 |
| - set style `background` of PhilosophyButton to `darkgray` |
174 |
| - send `pause` to CurrentModule |
175 |
| - alias CurrentModule to PhilosophyModule |
176 |
| - send to PhilosophyModule |
177 |
| - end |
| 168 | + create PhilosophyButton in ButtonItem |
| 169 | + set the style of PhilosophyButton to ButtonStyle |
| 170 | + set style `margin-top` of PhilosophyButton to `0.25em` |
| 171 | + set the text of PhilosophyButton to `Philosophy` |
| 172 | + on click PhilosophyButton |
| 173 | + begin |
| 174 | + gosub to DeselectAllButtons |
| 175 | + set style `background` of PhilosophyButton to `darkgray` |
| 176 | + send `pause` to CurrentModule |
| 177 | + alias CurrentModule to PhilosophyModule |
| 178 | + send to PhilosophyModule |
| 179 | + end |
178 | 180 |
|
179 | 181 | create ButtonItem in ButtonList
|
180 | 182 | create CodexButton in ButtonItem
|
181 |
| - set the style of CodexButton to ButtonStyle |
182 |
| - set style `margin-top` of CodexButton to `0.25em` |
183 |
| - set the text of CodexButton to `Codex` |
184 |
| - on click CodexButton |
185 |
| - begin |
186 |
| - load plugin `codemirror` |
187 |
| - rest get Script from `/resources/ecs/codex.ecs` |
188 |
| - send `pause` to CurrentModule |
189 |
| - set style `display` of Body to `none` |
190 |
| - run Script |
191 |
| - end |
| 183 | + set the style of CodexButton to ButtonStyle |
| 184 | + set style `margin-top` of CodexButton to `0.25em` |
| 185 | + set the text of CodexButton to `Codex` |
| 186 | + on click CodexButton |
| 187 | + begin |
| 188 | + load plugin `codemirror` |
| 189 | + rest get Script from `/resources/ecs/codex.ecs` |
| 190 | + send `pause` to CurrentModule |
| 191 | + set style `display` of Body to `none` |
| 192 | + run Script |
| 193 | + end |
| 194 | + |
| 195 | + create Notes in Main |
| 196 | + create ShowNotes in Notes |
| 197 | + set the content of ShowNotes to `Show Notes` |
| 198 | + on click ShowNotes |
| 199 | + begin |
| 200 | + attach Notes to `developer-notes` |
| 201 | + set style `display` of Notes to `block` |
| 202 | + end |
| 203 | + |
192 | 204 | stop
|
193 | 205 |
|
194 | 206 | DeselectAllButtons:
|
|
0 commit comments