2024-11-07 10:17:54 +01:00
|
|
|
import { style, el, S } from './exports.js';
|
2023-08-26 09:36:55 +02:00
|
|
|
document.head.append(style.element);
|
2023-09-05 09:25:47 +02:00
|
|
|
import { fullNameComponent } from './components/fullNameComponent.js';
|
|
|
|
import { todosComponent } from './components/todosComponent.js';
|
2023-12-22 16:49:59 +01:00
|
|
|
import { CustomHTMLTestElement, CustomSlottingHTMLElement } from "./components/webComponent.js";
|
2023-12-16 16:14:00 +01:00
|
|
|
import { thirdParty } from "./components/3rd-party.js";
|
2023-09-09 21:15:43 +02:00
|
|
|
|
2024-11-07 10:17:54 +01:00
|
|
|
const toggle= S(false);
|
2023-09-05 09:25:47 +02:00
|
|
|
document.body.append(
|
|
|
|
el("h1", "Experiments:"),
|
|
|
|
el(fullNameComponent),
|
|
|
|
el(todosComponent),
|
2023-12-16 16:14:00 +01:00
|
|
|
el(CustomHTMLTestElement.tagName, { name: "attr" }),
|
2023-12-22 16:49:59 +01:00
|
|
|
el(thirdParty),
|
2024-11-07 10:17:54 +01:00
|
|
|
el(CustomSlottingHTMLElement.tagName, { onclick: ()=> toggle(!toggle()) }).append(
|
2023-12-22 16:49:59 +01:00
|
|
|
el("strong", { slot: "name", textContent: "Honzo" }),
|
2024-11-07 10:17:54 +01:00
|
|
|
S.el(toggle, is=> is
|
|
|
|
? el("span", "…default slot")
|
|
|
|
: el("span", "…custom slot")
|
|
|
|
)
|
2023-12-22 16:49:59 +01:00
|
|
|
)
|
2023-09-05 09:25:47 +02:00
|
|
|
);
|