aleman 1.0.11 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index-buttons.html +1 -1
- package/index.html +1 -1
- package/menu/menu.js +6 -12
- package/package.json +1 -1
- /package/menu/{style.css → menu.css} +0 -0
package/index-buttons.html
CHANGED
package/index.html
CHANGED
package/menu/menu.js
CHANGED
|
@@ -2,24 +2,17 @@ export const createMenu = async () => {
|
|
|
2
2
|
createHydrate();
|
|
3
3
|
createMap();
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
createLink();
|
|
6
6
|
const {hydrateMenu} = await import('../lib/main.js');
|
|
7
7
|
|
|
8
8
|
hydrateMenu(hydrateMenu);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
const style = document.createElement('
|
|
13
|
-
const content = await import('https://esm.sh/aleman/menu/style.css', {
|
|
14
|
-
with: {
|
|
15
|
-
type: 'css',
|
|
16
|
-
},
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
for (const rule of content.default.cssRules) {
|
|
20
|
-
style.innerHTML += rule.cssText;
|
|
21
|
-
}
|
|
11
|
+
function createLink() {
|
|
12
|
+
const style = document.createElement('link');
|
|
22
13
|
|
|
14
|
+
style.rel = 'stylesheet';
|
|
15
|
+
style.href = 'https://esm.sh/aleman@1.0.12/menu/menu.css';
|
|
23
16
|
document.head.appendChild(style);
|
|
24
17
|
}
|
|
25
18
|
|
|
@@ -48,3 +41,4 @@ function createMap() {
|
|
|
48
41
|
`;
|
|
49
42
|
document.body.append(script);
|
|
50
43
|
}
|
|
44
|
+
|
package/package.json
CHANGED
|
File without changes
|