|
2 | 2 |
|
3 | 3 | script Main
|
4 | 4 |
|
5 |
| -! div Tracer |
6 |
| - div Body |
7 |
| - div Main |
8 |
| - div Header |
9 |
| - div Sidebar |
10 |
| - div Document |
11 |
| - div Notes |
12 |
| - img Banner |
13 |
| - ul ButtonList |
14 |
| - li ButtonItem |
15 |
| - button HomeButton |
16 |
| - button IntroButton |
17 |
| - button ExamplesButton |
18 |
| - button AboutButton |
19 |
| - button PhilosophyButton |
20 |
| - button CodexButton |
21 |
| - hr Rule |
22 |
| - a ShowNotes |
23 |
| - module ShowdownModule |
24 |
| - module HomeModule |
25 |
| - module IntroModule |
26 |
| - module ExamplesModule |
27 |
| - module AboutModule |
28 |
| - module PhilosophyModule |
29 |
| - module CurrentModule |
30 |
| - variable Script |
31 |
| - variable ButtonStyle |
32 |
| - variable Message |
33 |
| - |
34 |
| -! create Tracer |
35 |
| -! set attribute `id` of Tracer to `easycoder-tracer` |
36 |
| - create Body |
37 |
| - if mobile |
| 5 | +! div Tracer |
| 6 | + div Body |
| 7 | + div Main |
| 8 | + div Header |
| 9 | + div Sidebar |
| 10 | + div Document |
| 11 | + div Notes |
| 12 | + img Banner |
| 13 | + ul ButtonList |
| 14 | + li ButtonItem |
| 15 | + button HomeButton |
| 16 | + button IntroButton |
| 17 | + button ExamplesButton |
| 18 | + button AboutButton |
| 19 | + button PhilosophyButton |
| 20 | + button CodexButton |
| 21 | + hr Rule |
| 22 | + a ShowNotes |
| 23 | + module ShowdownModule |
| 24 | + module HomeModule |
| 25 | + module IntroModule |
| 26 | + module ExamplesModule |
| 27 | + module AboutModule |
| 28 | + module PhilosophyModule |
| 29 | + module CurrentModule |
| 30 | + variable Script |
| 31 | + variable ButtonStyle |
| 32 | + variable Message |
| 33 | + |
| 34 | +! create Tracer |
| 35 | +! set attribute `id` of Tracer to `easycoder-tracer` |
| 36 | + create Body |
| 37 | + if mobile |
38 | 38 | set the style of Body to `width:100%`
|
39 | 39 | else
|
40 | 40 | set the style of Body to `width:100%;max-width:1200px;margin:0 auto`
|
41 |
| - |
42 |
| - on message |
43 |
| - begin |
44 |
| - put the message into Message |
45 |
| - if Message is `hide` |
46 |
| - begin |
47 |
| - send `pause` to CurrentModule |
48 |
| - set style `display` of Body to `none` |
49 |
| - end |
50 |
| - else if Message is `restore` |
51 |
| - begin |
52 |
| - set style `display` of Body to `block` |
53 |
| - send `resume` to CurrentModule |
54 |
| - end |
55 |
| - end |
| 41 | + |
| 42 | + on message |
| 43 | + begin |
| 44 | + put the message into Message |
| 45 | + if Message is `hide` |
| 46 | + begin |
| 47 | + send `pause` to CurrentModule |
| 48 | + set style `display` of Body to `none` |
| 49 | + end |
| 50 | + else if Message is `restore` |
| 51 | + begin |
| 52 | + set style `display` of Body to `block` |
| 53 | + send `resume` to CurrentModule |
| 54 | + end |
| 55 | + end |
56 | 56 |
|
57 | 57 | BuildPage:
|
58 |
| - create Header in Body |
59 |
| - if mobile |
60 |
| - set the style of Header to `text-align:center` |
| 58 | + create Header in Body |
| 59 | + if mobile |
| 60 | + set the style of Header to `text-align:center` |
61 | 61 | else
|
62 | 62 | set the style of Header to `margin:0 2em;text-align:center`
|
63 |
| - |
64 |
| - create Banner in Header |
65 |
| - if not mobile set the style of Banner to `width:50%;margin:0 auto` |
66 |
| - set attribute `src` of Banner to `resources/img/banner.png` |
67 |
| - |
68 |
| - create Rule in Body |
69 |
| - |
70 |
| - create Main in Body |
71 |
| - if not mobile |
72 |
| - begin |
73 |
| - set style `display` of Main to `flex` |
74 |
| - end |
75 |
| - |
76 |
| - if mobile |
77 |
| - begin |
78 |
| - create Document in Main |
79 |
| - create Sidebar in Main |
80 |
| - end |
81 |
| - else |
82 |
| - begin |
83 |
| - create Sidebar in Main |
84 |
| - set the style of Sidebar to `width:250px;margin-right:2em` |
85 |
| - create Document in Main |
86 |
| - set the style of Document to `flex:1` |
87 |
| - end |
| 63 | + |
| 64 | + create Banner in Header |
| 65 | + if not mobile set the style of Banner to `width:50%;margin:0 auto` |
| 66 | + set attribute `src` of Banner to `resources/img/banner.png` |
| 67 | + |
| 68 | + create Rule in Body |
| 69 | + |
| 70 | + create Main in Body |
| 71 | + if not mobile |
| 72 | + begin |
| 73 | + set style `display` of Main to `flex` |
| 74 | + end |
| 75 | + |
| 76 | + if mobile |
| 77 | + begin |
| 78 | + create Document in Main |
| 79 | + create Sidebar in Main |
| 80 | + end |
| 81 | + else |
| 82 | + begin |
| 83 | + create Sidebar in Main |
| 84 | + set the style of Sidebar to `width:250px;margin-right:2em` |
| 85 | + create Document in Main |
| 86 | + set the style of Document to `flex:1` |
| 87 | + end |
88 | 88 |
|
89 |
| - rest get Script from `/resources/ecs/showdown.ecs` |
90 |
| - run Script with Document as ShowdownModule |
91 |
| - rest get Script from `/resources/ecs/home.ecs` |
92 |
| - run Script with ShowdownModule as HomeModule |
93 |
| - rest get Script from `/resources/ecs/intro.ecs` |
94 |
| - run Script with ShowdownModule as IntroModule |
95 |
| - rest get Script from `/resources/ecs/examples.ecs` |
96 |
| - run Script with ShowdownModule as ExamplesModule |
97 |
| - rest get Script from `/resources/ecs/about.ecs` |
98 |
| - run Script with ShowdownModule as AboutModule |
99 |
| - rest get Script from `/resources/ecs/philosophy.ecs` |
100 |
| - run Script with ShowdownModule as PhilosophyModule |
| 89 | + rest get Script from `/resources/ecs/showdown.ecs` |
| 90 | + run Script with Document as ShowdownModule |
| 91 | + rest get Script from `/resources/ecs/home.ecs` |
| 92 | + run Script with ShowdownModule as HomeModule |
| 93 | + rest get Script from `/resources/ecs/intro.ecs` |
| 94 | + run Script with ShowdownModule as IntroModule |
| 95 | + rest get Script from `/resources/ecs/examples.ecs` |
| 96 | + run Script with ShowdownModule as ExamplesModule |
| 97 | + rest get Script from `/resources/ecs/about.ecs` |
| 98 | + run Script with ShowdownModule as AboutModule |
| 99 | + rest get Script from `/resources/ecs/philosophy.ecs` |
| 100 | + run Script with ShowdownModule as PhilosophyModule |
101 | 101 |
|
102 |
| - alias CurrentModule to HomeModule |
103 |
| - send to HomeModule |
| 102 | + alias CurrentModule to HomeModule |
| 103 | + send to HomeModule |
104 | 104 |
|
105 |
| - create ButtonList in Sidebar |
106 |
| - set the style of ButtonList to `margin-left:0px;padding-left:0px;list-style-type:none` |
107 |
| - |
108 |
| - put `width:100%;height:2em;margin-bottom:0.5em;font-size:110%` into ButtonStyle |
| 105 | + create ButtonList in Sidebar |
| 106 | + set the style of ButtonList to `margin-left:0px;padding-left:0px;list-style-type:none` |
| 107 | + |
| 108 | + put `width:100%;height:2em;margin-bottom:0.5em;font-size:110%` into ButtonStyle |
109 | 109 |
|
110 | 110 | create ButtonItem in ButtonList
|
111 | 111 | create HomeButton in ButtonItem
|
|
0 commit comments