Update index.html

This commit is contained in:
Jakub Růžička 2025-05-20 20:34:14 +02:00 committed by GitHub
parent c2937f9ad0
commit 0ed427d32a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,25 +16,27 @@
<link rel="stylesheet" href="style.css">
<!-- CRITICAL FIX: Expanded Import Map for resolving bare module specifiers -->
<!-- Switched ALL CDN links to unpkg.com for better path resolution -->
<script type="importmap">
{
"imports": {
"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/",
"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",
"@lit/reactive-element/": "https://cdn.jsdelivr.net/npm/@lit/reactive-element@3.1.2/"
"tslib": "https://unpkg.com/tslib@2.6.2/tslib.es6.min.js",
"@material/web/": "https://unpkg.com/@material/web@1.4.1/",
"lit": "https://unpkg.com/lit@3.1.2/index.js",
"lit/decorators.js": "https://unpkg.com/lit@3.1.2/decorators.js",
"lit/directives/class-map.js": "https://unpkg.com/lit@3.1.2/directives/class-map.js",
"lit/directives/when.js": "https://unpkg.com/lit@3.1.2/directives/when.js",
"lit/html.js": "https://unpkg.com/lit@3.1.2/html.js",
"lit/preact-render-to-string.js": "https://unpkg.com/lit@3.1.2/preact-render-to-string.js",
"lit/reactive-element.js": "https://unpkg.com/lit@3.1.2/reactive-element.js",
"@lit/reactive-element/": "https://unpkg.com/@lit/reactive-element@3.1.2/"
}
}
</script>
<!-- Material Web Components (MWC) - This MUST come AFTER the importmap -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@material/web@1.4.1/all.js"></script>
<!-- Switched to unpkg.com -->
<script type="module" src="https://unpkg.com/@material/web@1.4.1/all.js"></script>
<style>
body {