File tree Expand file tree Collapse file tree 2 files changed +23
-46
lines changed Expand file tree Collapse file tree 2 files changed +23
-46
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ BuildPage:
118
118
rest get Script from `/resources/ecs/life.ecs`
119
119
run Script with ShowdownModule as LifeModule
120
120
rest get Script from `/resources/ecs/technical.ecs`
121
- ! run Script with ShowdownModule as TechnicalModule
121
+ run Script with ShowdownModule as TechnicalModule
122
122
123
123
alias CurrentModule to HomeModule
124
124
send to HomeModule
@@ -220,13 +220,11 @@ BuildPage:
220
220
set the text of TechnicalButton to `Technical Overview`
221
221
on click TechnicalButton
222
222
begin
223
- stop
224
- ! location `/technical.html`
225
223
gosub to DeselectAllButtons
226
224
set style `background` of TechnicalButton to `darkgray`
227
225
send `pause` to CurrentModule
228
226
alias CurrentModule to TechnicalModule
229
- send to ContactModule
227
+ send to TechnicalModule
230
228
end
231
229
232
230
create ButtonItem in ButtonList
@@ -280,4 +278,5 @@ DeselectAllButtons:
280
278
set style `background` of AboutButton to ``
281
279
set style `background` of PhilosophyButton to ``
282
280
set style `background` of ContactButton to ``
281
+ set style `background` of TechnicalButton to ``
283
282
return
Original file line number Diff line number Diff line change 1
- ! EasyCoder Main
1
+ ! Technical
2
2
3
3
script Technical
4
4
5
- div Body
6
- div Main
7
- div Header
8
- div Document
9
- img Banner
10
- hr Rule
11
- module ShowdownModule
12
- variable Script
13
-
14
- create Body
15
- if mobile
16
- set the style of Body to `width:100%`
17
- else
18
- set the style of Body to `width:100%;max-width:1200px;margin:0 auto`
19
-
20
- create Header in Body
21
- if mobile
22
- set the style of Header to `text-align:center`
23
- else
24
- set the style of Header to `margin:0 2em;text-align:center`
25
-
26
- create Banner in Header
27
- if not mobile set the style of Banner to `width:50%;margin:0 auto`
28
- set attribute `src` of Banner to `resources/img/banner.png`
29
-
30
- create Rule in Body
31
-
32
- create Main in Body
33
- if not mobile
34
- begin
35
- set style `display` of Main to `flex`
36
- end
37
-
38
- create Document in Main
39
- set the style of Document to `flex:1`
40
-
41
- rest get Script from `/resources/ecs/showdown.ecs`
42
- run Script with Document as ShowdownModule
5
+ import module Showdown
6
+
7
+ variable Script
8
+ variable Message
9
+
10
+ rest get Script from `/resources/md/technical.md`
43
11
44
- rest get Script from `/resources/md/technical.md`
45
- send Script to ShowdownModule
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
46
22
47
- stop
23
+ Start:
24
+ send Script to Showdown
25
+ stop
You can’t perform that action at this time.
0 commit comments