Skip to content

Commit 56a4b99

Browse files
committed
Use CDN
1 parent 86ac932 commit 56a4b99

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

iwsy/resources/ecs/blocks.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@
3636
variable N
3737
variable M
3838
variable NBlocks
39-
variable IsHome
4039
variable CDN
4140

42-
get IsHome from storage as `.ishome`
4341
get CDN from storage as `.cdn`
4442

4543
put -1 into SelectedBlock
@@ -72,7 +70,7 @@ Restart:
7270
create Link in Cell
7371
create AddBlock in Link
7472
set the style of AddBlock to `width:1em;margin-top:0.1em`
75-
set attribute `src` of AddBlock to `/resources/icon/plus.png`
73+
set attribute `src` of AddBlock to CDN cat `/resources/icon/plus.png`
7674
on click AddBlock
7775
begin
7876
set Defaults to object
@@ -117,7 +115,7 @@ Restart:
117115
index ShowBlock to N
118116
create ShowBlock in Link
119117
set the style of ShowBlock to `width:1em;margin:0.1em 0.2em 0 0`
120-
set attribute `src` of ShowBlock to `/resources/icon/binoculars.png`
118+
set attribute `src` of ShowBlock to CDN cat `/resources/icon/binoculars.png`
121119
create EditButton in Cell
122120
set the style of EditButton to `flex:1`
123121
put element N of Blocks into Block
@@ -133,12 +131,12 @@ Restart:
133131
create Link in Cell
134132
create Up in Link
135133
set the style of Up to `width:1em;margin:0.2em 0 0 0.2em`
136-
set attribute `src` of Up to `/resources/icon/up.png`
134+
set attribute `src` of Up to CDN cat `/resources/icon/up.png`
137135
end
138136
create Link in Cell
139137
create DeleteBlock in Link
140138
set the style of DeleteBlock to `width:1em;margin:0.2em 0 0 0.2em`
141-
set attribute `src` of DeleteBlock to `/resources/icon/stop.png`
139+
set attribute `src` of DeleteBlock to CDN cat `/resources/icon/stop.png`
142140
create Editor in Row
143141
set the style of Editor to `margin:0.5em;border:1px solid black;padding:0.2em;display:none`
144142
add 1 to N

iwsy/resources/ecs/content.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
variable N
3030
variable NumItems
3131
variable Content
32+
variable CDN
33+
34+
get CDN from storage as `.cdn`
3235

3336
put -1 into SelectedItem
3437

@@ -66,7 +69,7 @@ Restart:
6669
create Link in Cell
6770
create AddItem in Link
6871
set the style of AddItem to `width:1em;margin-top:0.1em`
69-
set attribute `src` of AddItem to `/resources/icon/plus.png`
72+
set attribute `src` of AddItem to CDN cat `/resources/icon/plus.png`
7073
on click AddItem
7174
begin
7275
set Item to object
@@ -118,12 +121,12 @@ Restart:
118121
create Link in Cell
119122
create Up in Link
120123
set the style of Up to `width:1em;margin:0.2em 0 0 0.2em`
121-
set attribute `src` of Up to `/resources/icon/up.png`
124+
set attribute `src` of Up to CDN cat `/resources/icon/up.png`
122125
end
123126
create Link in Cell
124127
create DeleteItem in Link
125128
set the style of DeleteItem to `width:1em;margin:0.2em 0 0 0.2em`
126-
set attribute `src` of DeleteItem to `/resources/icon/stop.png`
129+
set attribute `src` of DeleteItem to CDN cat `/resources/icon/stop.png`
127130
create Editor in Row
128131
set the style of Editor to `margin:0.5em;border:1px solid black;padding:0.2em;display:none`
129132
add 1 to N

0 commit comments

Comments
 (0)