|
8 | 8 | <meta charset="UTF-8">
|
9 | 9 | <link rel="icon" type="image/x-icon" href="favicon.ico">
|
10 | 10 | <meta name="viewport" content="width=device-width,initial-scale=1">
|
11 |
| - |
12 |
| - <script> |
13 |
| - /*! coi-serviceworker v0.1.7 - Guido Zuidhof and contributors, licensed under MIT */ |
14 |
| - /*! mini-coi - Andrea Giammarchi and contributors, licensed under MIT */ |
15 |
| - (({ document: d, navigator: { serviceWorker: s } }) => { |
16 |
| - if (d) { |
17 |
| - const { currentScript: c } = d; |
18 |
| - s.register(c.src, { scope: c.getAttribute('scope') || '.' }).then(r => { |
19 |
| - r.addEventListener('updatefound', () => location.reload()); |
20 |
| - if (r.active && !s.controller) location.reload(); |
21 |
| - }); |
22 |
| - } |
23 |
| - else { |
24 |
| - addEventListener('install', () => skipWaiting()); |
25 |
| - addEventListener('activate', e => e.waitUntil(clients.claim())); |
26 |
| - addEventListener('fetch', e => { |
27 |
| - const { request: r } = e; |
28 |
| - if (r.cache === 'only-if-cached' && r.mode !== 'same-origin') return; |
29 |
| - e.respondWith(fetch(r).then(r => { |
30 |
| - const { body, status, statusText } = r; |
31 |
| - if (!status || status > 399) return r; |
32 |
| - const h = new Headers(r.headers); |
33 |
| - h.set('Cross-Origin-Opener-Policy', 'same-origin'); |
34 |
| - h.set('Cross-Origin-Embedder-Policy', 'require-corp'); |
35 |
| - h.set('Cross-Origin-Resource-Policy', 'cross-origin'); |
36 |
| - return new Response(body, { status, statusText, headers: h }); |
37 |
| - })); |
38 |
| - }); |
39 |
| - } |
40 |
| - })(self); |
41 |
| - </script> |
| 11 | + <script src="mini-coi.js"></script> |
42 | 12 |
|
43 | 13 | <!-- Import PyScript - see kitchensink.js for activation -->
|
44 | 14 | <script type="module" src="https://pyscript.net/releases/2024.10.2/core.js"></script>
|
|
48 | 18 | <script src=" https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js" ></script>
|
49 | 19 | <script src=" https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery-ui.min.js" ></script>
|
50 | 20 | <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.13.2/themes/base/jquery-ui.css"/>
|
51 |
| - |
| 21 | + |
52 | 22 | <!-- Codemirror Interactive Editor -->
|
53 | 23 | <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.35.0/codemirror.js"></script>
|
54 | 24 | <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/mode/python/python.min.js"></script>
|
55 | 25 | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/codemirror.min.css" >
|
56 | 26 |
|
57 | 27 | <!-- Import for drawing arrows -->
|
58 | 28 | <script defer src="leader-line.min.js"></script>
|
59 |
| - |
| 29 | + |
60 | 30 | <!-- Import Styles for the kitchensink demo -->
|
61 | 31 | <link rel="stylesheet" href="kitchensink.css">
|
62 | 32 | </head>
|
|
0 commit comments