Skip to content

Use CDN #200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions iwsy/resources/ecs/blocks.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@
variable N
variable M
variable NBlocks
variable IsHome
variable CDN

get IsHome from storage as `.ishome`
get CDN from storage as `.cdn`

put -1 into SelectedBlock
Expand Down Expand Up @@ -72,7 +70,7 @@ Restart:
create Link in Cell
create AddBlock in Link
set the style of AddBlock to `width:1em;margin-top:0.1em`
set attribute `src` of AddBlock to `/resources/icon/plus.png`
set attribute `src` of AddBlock to CDN cat `/resources/icon/plus.png`
on click AddBlock
begin
set Defaults to object
Expand Down Expand Up @@ -117,7 +115,7 @@ Restart:
index ShowBlock to N
create ShowBlock in Link
set the style of ShowBlock to `width:1em;margin:0.1em 0.2em 0 0`
set attribute `src` of ShowBlock to `/resources/icon/binoculars.png`
set attribute `src` of ShowBlock to CDN cat `/resources/icon/binoculars.png`
create EditButton in Cell
set the style of EditButton to `flex:1`
put element N of Blocks into Block
Expand All @@ -133,12 +131,12 @@ Restart:
create Link in Cell
create Up in Link
set the style of Up to `width:1em;margin:0.2em 0 0 0.2em`
set attribute `src` of Up to `/resources/icon/up.png`
set attribute `src` of Up to CDN cat `/resources/icon/up.png`
end
create Link in Cell
create DeleteBlock in Link
set the style of DeleteBlock to `width:1em;margin:0.2em 0 0 0.2em`
set attribute `src` of DeleteBlock to `/resources/icon/stop.png`
set attribute `src` of DeleteBlock to CDN cat `/resources/icon/stop.png`
create Editor in Row
set the style of Editor to `margin:0.5em;border:1px solid black;padding:0.2em;display:none`
add 1 to N
Expand Down
9 changes: 6 additions & 3 deletions iwsy/resources/ecs/content.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
variable N
variable NumItems
variable Content
variable CDN

get CDN from storage as `.cdn`

put -1 into SelectedItem

Expand Down Expand Up @@ -66,7 +69,7 @@ Restart:
create Link in Cell
create AddItem in Link
set the style of AddItem to `width:1em;margin-top:0.1em`
set attribute `src` of AddItem to `/resources/icon/plus.png`
set attribute `src` of AddItem to CDN cat `/resources/icon/plus.png`
on click AddItem
begin
set Item to object
Expand Down Expand Up @@ -118,12 +121,12 @@ Restart:
create Link in Cell
create Up in Link
set the style of Up to `width:1em;margin:0.2em 0 0 0.2em`
set attribute `src` of Up to `/resources/icon/up.png`
set attribute `src` of Up to CDN cat `/resources/icon/up.png`
end
create Link in Cell
create DeleteItem in Link
set the style of DeleteItem to `width:1em;margin:0.2em 0 0 0.2em`
set attribute `src` of DeleteItem to `/resources/icon/stop.png`
set attribute `src` of DeleteItem to CDN cat `/resources/icon/stop.png`
create Editor in Row
set the style of Editor to `margin:0.5em;border:1px solid black;padding:0.2em;display:none`
add 1 to N
Expand Down