Update index.html

This commit is contained in:
Jakub Růžička 2025-05-20 20:25:11 +02:00 committed by GitHub
parent 617b916ed0
commit afedcb8645
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,18 +15,33 @@
<link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="style.css">
<!-- CRITICAL FIX: Import Map for resolving bare module specifiers like "tslib" --> <!-- CRITICAL FIX: Expanded Import Map for resolving bare module specifiers -->
<script type="importmap"> <script type="importmap">
{ {
"imports": { "imports": {
"tslib": "https://cdn.jsdelivr.net/npm/tslib@2.6.2/tslib.es6.min.js", "tslib": "https://cdn.jsdelivr.net/npm/tslib@2.6.2/tslib.es6.min.js",
"@material/web/": "https://cdn.jsdelivr.net/npm/@material/web@1.4.1/" "@material/web/": "https://cdn.jsdelivr.net/npm/@material/web@1.4.1/",
"lit": "https://cdn.jsdelivr.net/npm/lit@3.1.2/index.js",
"lit/decorators.js": "https://cdn.jsdelivr.net/npm/lit@3.1.2/decorators.js",
"lit/directives/class-map.js": "https://cdn.jsdelivr.net/npm/lit@3.1.2/directives/class-map.js",
"lit/directives/when.js": "https://cdn.jsdelivr.net/npm/lit@3.1.2/directives/when.js",
"lit/html.js": "https://cdn.jsdelivr.net/npm/lit@3.1.2/html.js",
"lit/preact-render-to-string.js": "https://cdn.jsdelivr.net/npm/lit@3.1.2/preact-render-to-string.js",
"lit/reactive-element.js": "https://cdn.jsdelivr.net/npm/lit@3.1.2/reactive-element.js"
/* Add more lit paths if console errors show new ones.
Common ones often include:
"lit/directives/if-defined.js",
"lit/directives/style-map.js",
"lit-html": "https://cdn.jsdelivr.net/npm/lit-html@3.1.2/lit-html.js",
"lit-html/directives/class-map.js": "https://cdn.jsdelivr.net/npm/lit-html@3.1.2/directives/class-map.js",
"lit-html/directives/when.js": "https://cdn.jsdelivr.net/npm/lit-html@3.1.2/directives/when.js"
... (check lit.dev for full paths)
*/
} }
} }
</script> </script>
<!-- Material Web Components (MWC) - Using a more recent version --> <!-- Material Web Components (MWC) - This MUST come AFTER the importmap -->
<!-- This MUST come AFTER the importmap -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@material/web@1.4.1/all.js"></script> <script type="module" src="https://cdn.jsdelivr.net/npm/@material/web@1.4.1/all.js"></script>
<style> <style>