Skip to content

Commit fd15dbd

Browse files
committed
Add developer notes
1 parent 7556150 commit fd15dbd

File tree

2 files changed

+84
-72
lines changed

2 files changed

+84
-72
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
rest get Script from `/resources/ecs/main.ecs`
1515
run Script
1616
</pre>
17-
</body>
1817
<div id="developer-notes" style="display:none">
1918
<hr />
2019
<h2 id="ec-body">Notes</h2>
@@ -27,3 +26,4 @@ <h2 id="ec-body">Notes</h2>
2726
<p>And that&#8217;s all I have to say. I hope to be around for a few years yet, so do contact me if you would like to know anything. After that it&#8217;ll be out of my hands.</p>
2827
</div>
2928
</html>
29+
</body>

resources/ecs/main.ecs

Lines changed: 83 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
div Header
99
div Sidebar
1010
div Document
11+
div Notes
1112
img Banner
1213
ul ButtonList
1314
li ButtonItem
@@ -18,6 +19,7 @@
1819
button PhilosophyButton
1920
button CodexButton
2021
hr Rule
22+
a ShowNotes
2123
module ShowdownModule
2224
module HomeModule
2325
module IntroModule
@@ -107,88 +109,98 @@ BuildPage:
107109

108110
create ButtonItem in ButtonList
109111
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
122124

123125
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
136138

137139
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
150152

151153
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
164166

165167
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
178180

179181
create ButtonItem in ButtonList
180182
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+
192204
stop
193205

194206
DeselectAllButtons:

0 commit comments

Comments
 (0)