File tree Expand file tree Collapse file tree 4 files changed +40
-0
lines changed Expand file tree Collapse file tree 4 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 93
93
on click HowItWorks
94
94
begin
95
95
alert `How it works`
96
+ send `howitworks` to parent
96
97
end
97
98
98
99
stop
Original file line number Diff line number Diff line change
1
+ ! HowItWorks
2
+
3
+ script HowItWorks
4
+
5
+ import module Showdown
6
+
7
+ variable Script
8
+ variable Message
9
+
10
+ rest get Script from `/resources/md/howitworks.md`
11
+
12
+ on message
13
+ begin
14
+ put the message into Message
15
+ if Message is `restore` send `show` to parent
16
+ else if Message is `pause` begin end
17
+ else go to Start
18
+ end
19
+
20
+ set ready
21
+ stop
22
+
23
+ Start:
24
+ send Script to Showdown
25
+ stop
Original file line number Diff line number Diff line change 34
34
module LifeModule
35
35
module TechnicalModule
36
36
module WordPressModule
37
+ module HowItWorksModule
37
38
module CurrentModule
38
39
variable Script
39
40
variable ButtonStyle
62
63
send `resume` to CurrentModule
63
64
end
64
65
else if Message is `life` go to ShowLife
66
+ else if Message is `howitworks` go to ShowHowItWorks
65
67
end
66
68
67
69
BuildPage:
@@ -122,6 +124,8 @@ BuildPage:
122
124
run Script with ShowdownModule as TechnicalModule
123
125
rest get Script from `/resources/ecs/wordpress.ecs`
124
126
run Script with ShowdownModule as WordPressModule
127
+ rest get Script from `/resources/ecs/howitworks.ecs`
128
+ run Script with ShowdownModule as HowItWorksModule
125
129
126
130
alias CurrentModule to HomeModule
127
131
send to HomeModule
@@ -288,6 +292,13 @@ ShowLife:
288
292
send to LifeModule
289
293
stop
290
294
295
+ ShowHowItWorks:
296
+ gosub to DeselectAllButtons
297
+ send `pause` to CurrentModule
298
+ alias CurrentModule to HowItWorksModule
299
+ send to HowItWorksModule
300
+ stop
301
+
291
302
DeselectAllButtons:
292
303
set style `background` of HomeButton to ``
293
304
set style `background` of IntroButton to ``
Original file line number Diff line number Diff line change
1
+ # How It Works
2
+
3
+ This is a description of the interaction between the ~ ec~ and the Markdown scripts to power this website.
You can’t perform that action at this time.
0 commit comments