|
103 | 103 | put property `protocol` of Args into Protocol
|
104 | 104 | put property `domain` of Args into Domain
|
105 | 105 |
|
| 106 | + put `https://easycoder.github.io/iwsy` into CDN |
106 | 107 | ! Test if site is on a static host
|
107 | 108 | clear Static
|
108 |
| - rest get Item from Protocol cat Domain cat `/test` |
| 109 | + rest get Item from Protocol cat Domain cat `/rest.php/test` |
109 | 110 | or begin
|
110 | 111 | print `Static website`
|
111 | 112 | set Static
|
112 | 113 | clear IsHome
|
113 |
| - put empty into CDN |
114 | 114 | go to Start
|
115 | 115 | end
|
116 | 116 |
|
117 | 117 | if Domain is `iwannashowyou.com` set IsHome else clear IsHome
|
118 | 118 | if IsHome put Protocol cat Domain into CDN
|
119 |
| - else put `https://easycoder.github.io/iwsy` into CDN |
120 |
| - iwsy init CDN |
121 | 119 |
|
122 | 120 | ! If the debug flag is set use admin storage but continue with local CDN
|
123 | 121 | get Item from storage as `debug`
|
124 | 122 | if Item is `true` clear IsHome
|
125 | 123 |
|
126 | 124 | Start:
|
| 125 | + iwsy init CDN |
127 | 126 | put Static into storage as `.static`
|
128 | 127 | put IsHome into storage as `.ishome`
|
129 | 128 | put CDN into storage as `.cdn`
|
@@ -533,7 +532,7 @@ Start:
|
533 | 532 | put property `arg` of Args into Arg
|
534 | 533 | if Arg includes `.json`
|
535 | 534 | begin
|
536 |
| - rest get Presentation from `/` cat Resources cat `/users/` cat Arg cat `?v=` cat now |
| 535 | + rest get Presentation from Protocol cat Domain cat `/` cat Resources cat `/users/` cat Arg cat `?v=` cat now |
537 | 536 | gosub to NotifyModules
|
538 | 537 | iwsy script Presentation
|
539 | 538 | set style `display` of Player to `block`
|
@@ -907,12 +906,12 @@ SelectFile:
|
907 | 906 | if UserRecord go to SelectFromUser
|
908 | 907 | if IsHome go to SelectFromStorage
|
909 | 908 |
|
910 |
| - rest get Presentation from `/resources/scripts/` cat File cat `?v=` cat now |
| 909 | + rest get Presentation from Protocol cat Domain cat `/resources/scripts/` cat File cat `?v=` cat now |
911 | 910 | go to UseFile
|
912 | 911 |
|
913 | 912 | SelectFromUser:
|
914 | 913 | if UserRecord rest get Presentation from
|
915 |
| - `/resources/users/` cat UserHome cat `/scripts/` cat File cat `?v=` cat now |
| 914 | + Protocol cat Domain cat `/resources/users/` cat UserHome cat `/scripts/` cat File cat `?v=` cat now |
916 | 915 | go to UseFile
|
917 | 916 |
|
918 | 917 | SelectFromStorage:
|
|
0 commit comments