|
7 | 7 |
|
8 | 8 | <head> |
9 | 9 | <meta charset=utf-8> |
10 | | - |
| 10 | + |
11 | 11 | <title> |
12 | 12 | stackblitz |
13 | 13 | </title> |
14 | | - |
| 14 | + |
15 | 15 | <base href='https://ext-code.com/utils/misc/stackblitz/'> |
16 | 16 | <link rel=canonical href='https://ext-code.com/utils/misc/stackblitz/stackblitz.html'> |
17 | 17 |
|
18 | 18 | <link rel='shortcut icon' type='image/x-icon' href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAcCAMAAABBJv+bAAAAQlBMVEVHcEwyODg0ODkzNzgxNzc0ODk0ODkzODgzODgzNzgyNzgzODg0ODkzODgyNzgzODgzODgzODk0ODk0ODkyNzg0ODmObyvDAAAAFXRSTlMABvaSDbPHe15GL5u9hRxvO6rn2VJXM6DpAAAAxElEQVQoz71TyRbDIAh0Ie6J2fz/Xy3Y2pDktZ5aTiODCAMK0QxAPoFsgNk0JrMEQmEwyU5ndt4K2khQEzLhdNeQTznCWREegNEOOe18fRO8i6ooz+gRw1k9gMkyo/E9zY5yKMX+ihbLq8mjFB5N4UepYLGRmdM7OnLlpYtJXWQQkFCIpHcpfBVpCxeRV/KuodHzmfaNxuTmlpxmoEzc5bs0rnGdQQZeybWxRX6Vxf5rJJ116CxTZxX5Isf7Ive+wadP9AAuFg97y3bd7gAAAABJRU5ErkJggg=='> |
19 | 19 | <meta name=viewport content='width=device-width, initial-scale=1'> |
20 | | - |
| 20 | + |
21 | 21 | <script type='application/ld+json'> |
22 | 22 | { |
23 | 23 | "@context" : "https://schema.org", |
|
32 | 32 | "softwareVersion" : "1.0.0", |
33 | 33 | "offers" : {"@type":"Offer","price":"0","priceCurrency":"GBP"} |
34 | 34 | } |
35 | | - </script> |
36 | | - |
37 | | - |
38 | | - <script src='https://libs.ext-code.com/js/dom/component/component.js'></script> |
39 | | - |
| 35 | + </script> |
| 36 | + |
| 37 | + |
| 38 | + <script src='https://libs.ext-code.com/js/dom/component/v3.0/component.js'></script> |
| 39 | + |
40 | 40 | <script init> |
41 | 41 | console.clear(); |
42 | 42 | console.log('stackblitz-v2.0.html'); |
|
57 | 57 | var hdr; |
58 | 58 |
|
59 | 59 |
|
60 | | - |
| 60 | + |
61 | 61 | async function init(){ |
62 | 62 | debug('init',version); |
63 | | - |
| 63 | + |
64 | 64 | menu = menumod(); |
65 | 65 |
|
66 | 66 | hdr = mod['misc-hdr']; |
|
76 | 76 |
|
77 | 77 |
|
78 | 78 | }//init |
79 | | - |
80 | | - |
| 79 | + |
| 80 | + |
81 | 81 | (async()=>{ |
82 | 82 |
|
83 | 83 | mod.stack.add; |
84 | 84 |
|
85 | 85 | ({ext} = await import('https://libs.ext-code.com/js/io/ext-loader/ext-loader.m.js')); |
86 | | - |
| 86 | + |
87 | 87 | var promise = ext.load.libs( |
88 | 88 | 'js/dom/$.js', |
89 | 89 | 'js/core/datatype.js', |
|
92 | 92 | 'js/debug/debug.js', |
93 | 93 | ); |
94 | 94 | [$,datatype,menumod,keydown,debug] = await promise; |
95 | | - |
| 95 | + |
96 | 96 | mod.stack.complete; |
97 | | - |
| 97 | + |
98 | 98 | })(); |
99 | 99 |
|
100 | 100 |
|
101 | 101 | </script> |
102 | | - |
103 | | - |
| 102 | + |
| 103 | + |
104 | 104 | <style> |
105 | | - |
106 | | - html |
| 105 | + |
| 106 | + html |
107 | 107 | {height:100%} |
108 | | - |
109 | | - body |
| 108 | + |
| 109 | + body |
110 | 110 | {font-family:arial;/*margin:20px;*/height:calc(100% - 16px);display:flex;flex-direction:column;} |
111 | | - |
112 | | - .hdr |
| 111 | + |
| 112 | + .hdr |
113 | 113 | {position:relative;display:flex;justify-content:space-between;align-items:center;/*padding-bottom:10px;border-bottom:1px solid lightblue;margin-bottom:20px;*/ |
114 | 114 | margin-top:0;font-family:arial; |
115 | 115 | } |
116 | | - |
117 | | - .hdr-icon |
| 116 | + |
| 117 | + .hdr-icon |
118 | 118 | {display:inline-block;text-align:center; |
119 | 119 | background : whitesmoke; |
120 | 120 | border-radius : 5px; |
|
124 | 124 | margin-right : 10px; |
125 | 125 | min-width : 50px; |
126 | 126 | } |
127 | | - |
128 | | - .hdr-icon-img |
| 127 | + |
| 128 | + .hdr-icon-img |
129 | 129 | {} |
130 | | - |
| 130 | + |
131 | 131 | .hdr-icon-label |
132 | 132 | {margin:2px 0 0;} |
133 | | - |
134 | | - .hdr-title |
| 133 | + |
| 134 | + .hdr-title |
135 | 135 | {/*text-align:center;position:absolute;left:0;right:0;top:5px;z-index:-1;*/ |
136 | 136 | margin:0;} |
137 | | - |
| 137 | + |
138 | 138 | .hdr-date |
139 | 139 | {float:right;} |
140 | | - |
141 | | - .ftr |
| 140 | + |
| 141 | + .ftr |
142 | 142 | {background-color:rgb(238, 232, 170);height:50px;margin-top:70px;} |
143 | | - |
144 | | - #center |
| 143 | + |
| 144 | + #center |
145 | 145 | {width:100%;max-width:1000px;margin:auto;flex:1;} |
146 | | - |
| 146 | + |
147 | 147 | .heading |
148 | 148 | {border-left:5px solid rgba(238,232,170,1);background:rgba(239,247,250,1);padding:20px 20px;} |
149 | | - |
150 | | - a |
151 | | - {color:blue} |
| 149 | + |
| 150 | + a |
| 151 | + {color:blue} |
152 | 152 | a:visited |
153 | 153 | {color:blue} |
154 | | - |
| 154 | + |
155 | 155 | embed |
156 | 156 | {height:100%} |
157 | | - |
| 157 | + |
158 | 158 | </style> |
159 | 159 |
|
160 | 160 | </head> |
161 | | - |
162 | | - |
| 161 | + |
| 162 | + |
163 | 163 | <body> |
164 | 164 |
|
165 | 165 |
|
166 | 166 | <misc-hdr component=grp> |
167 | 167 | <img class=title src='images/stackblitz.png' style='top:-15px;height:60px' alt=stackblitz> |
168 | 168 | <time slot=date datetime=2025-10-31>31 Oct 2025</time> |
169 | 169 | </misc-hdr> |
170 | | - |
171 | | - |
| 170 | + |
| 171 | + |
172 | 172 | <div id=embed></div> |
173 | | - |
174 | | - |
| 173 | + |
| 174 | + |
175 | 175 | </body> |
176 | 176 |
|
177 | 177 |
|
178 | 178 | <script> |
179 | | - |
| 179 | + |
180 | 180 |
|
181 | 181 | function initdom(){ |
182 | | - |
183 | | - |
| 182 | + |
| 183 | + |
184 | 184 | hdr.initdom(); |
185 | 185 |
|
186 | 186 |
|
187 | 187 | }//initdom |
188 | 188 |
|
189 | 189 |
|
190 | 190 | </script> |
191 | | - |
192 | | - |
| 191 | + |
| 192 | + |
193 | 193 |
|
194 | 194 | <script type=module> |
195 | | - |
196 | | - |
| 195 | + |
| 196 | + |
197 | 197 | /* |
198 | 198 | var hdr = $('.hdr'); |
199 | 199 | hdr.status = false; |
|
203 | 203 | hdr.onmouseleave = e=>hdr.hide(); |
204 | 204 | */ |
205 | 205 |
|
206 | | - |
| 206 | + |
207 | 207 | /* |
208 | 208 | https://developer.stackblitz.com/platform/api/javascript-sdk |
209 | 209 | https://developer.stackblitz.com/platform/api/javascript-sdk-options |
210 | 210 | https://webcontainers.io/api |
211 | 211 | */ |
212 | 212 |
|
213 | | -/* |
| 213 | +/* |
214 | 214 | files : { |
215 | 215 | 'settings.json':` |
216 | 216 | { |
|
225 | 225 | "editor.occurrencesHighlight": false, |
226 | 226 | |
227 | 227 | "editor.guides.indentation" : false, |
228 | | -
|
| 228 | + |
229 | 229 | |
230 | 230 | "workbench.colorCustomizations": { |
231 | 231 | "editorGutter.background": "#4A90E2", |
232 | 232 | "editor.lineHighlightBackground": "#F0F8FF", // Light blue, adjust as needed |
233 | 233 | "editor.lineHighlightBorder": "" // Removes the border |
234 | 234 | } |
235 | 235 | |
236 | | - } |
| 236 | + } |
237 | 237 | ` |
238 | | - |
| 238 | + |
239 | 239 | } |
240 | 240 | */ |
241 | 241 |
|
|
249 | 249 | template : 'node', |
250 | 250 | files:{}, |
251 | 251 | }; |
252 | | - |
| 252 | + |
253 | 253 |
|
254 | 254 | var vm = await sdk.embedProject('embed',project,{ |
255 | 255 | forceEmbedLayout : true, |
|
262 | 262 | terminalHeight : '50', |
263 | 263 | view : 'default' |
264 | 264 | }); |
265 | | - |
266 | | - |
| 265 | + |
| 266 | + |
267 | 267 | </script> |
268 | | - |
| 268 | + |
269 | 269 | </html> |
270 | 270 |
|
271 | 271 |
|
0 commit comments