Skip to content

Commit 90b075b

Browse files
committed
Restore Technical module
1 parent 72e9d98 commit 90b075b

File tree

2 files changed

+23
-46
lines changed

2 files changed

+23
-46
lines changed

resources/ecs/main.ecs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ BuildPage:
118118
rest get Script from `/resources/ecs/life.ecs`
119119
run Script with ShowdownModule as LifeModule
120120
rest get Script from `/resources/ecs/technical.ecs`
121-
! run Script with ShowdownModule as TechnicalModule
121+
run Script with ShowdownModule as TechnicalModule
122122

123123
alias CurrentModule to HomeModule
124124
send to HomeModule
@@ -220,13 +220,11 @@ BuildPage:
220220
set the text of TechnicalButton to `Technical Overview`
221221
on click TechnicalButton
222222
begin
223-
stop
224-
! location `/technical.html`
225223
gosub to DeselectAllButtons
226224
set style `background` of TechnicalButton to `darkgray`
227225
send `pause` to CurrentModule
228226
alias CurrentModule to TechnicalModule
229-
send to ContactModule
227+
send to TechnicalModule
230228
end
231229

232230
create ButtonItem in ButtonList
@@ -280,4 +278,5 @@ DeselectAllButtons:
280278
set style `background` of AboutButton to ``
281279
set style `background` of PhilosophyButton to ``
282280
set style `background` of ContactButton to ``
281+
set style `background` of TechnicalButton to ``
283282
return

resources/ecs/technical.ecs

Lines changed: 20 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,25 @@
1-
! EasyCoder Main
1+
! Technical
22

33
script Technical
44

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`
4311

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
4622

47-
stop
23+
Start:
24+
send Script to Showdown
25+
stop

0 commit comments

Comments
 (0)