2024-12-18 12:41:00 +00:00
|
|
|
<script type="module" src="https://md-block.verou.me/md-block.js"></script>
|
|
|
|
|
2024-12-17 17:36:02 +00:00
|
|
|
<script type="module">
|
2024-12-18 12:41:00 +00:00
|
|
|
import {BetterSelect} from "./src/BetterSelect.js"
|
2024-12-17 17:36:02 +00:00
|
|
|
|
|
|
|
customElements.define("better-select", BetterSelect)
|
|
|
|
</script>
|
|
|
|
|
2024-12-18 12:41:00 +00:00
|
|
|
<link rel="stylesheet" href="src/BetterSelect.css">
|
2024-12-17 17:36:02 +00:00
|
|
|
<style>
|
2024-12-18 12:41:00 +00:00
|
|
|
@import
|
|
|
|
url('https://cdn.jsdelivr.net/gh/darkwiiplayer/css@main/all.css')
|
|
|
|
layer(framework);
|
|
|
|
@import
|
|
|
|
url('https://cdn.jsdelivr.net/gh/darkwiiplayer/css@main/schemes/talia.css')
|
|
|
|
layer(theme);
|
|
|
|
|
|
|
|
better-select {
|
|
|
|
color: black;
|
|
|
|
background: white;
|
2024-12-17 17:36:02 +00:00
|
|
|
}
|
2024-12-18 12:41:00 +00:00
|
|
|
|
|
|
|
md-block:not([rendered]) { display: none }
|
2024-12-17 17:36:02 +00:00
|
|
|
</style>
|
|
|
|
|
2024-12-18 12:41:00 +00:00
|
|
|
<main class="content-width">
|
|
|
|
<h1>Better Select</h1>
|
|
|
|
|
|
|
|
<p>A better muli-option input box for HTML</p>
|
|
|
|
|
|
|
|
<better-select class="search">
|
|
|
|
<span slot="placeholder">Placeholder...</span>
|
|
|
|
<option value="first">First value</option>
|
|
|
|
<option value="second">Second value</option>
|
|
|
|
<option value="third">Third value</option>
|
|
|
|
</better-select>
|
|
|
|
|
|
|
|
<vertical-spacer triple></vertical-spacer>
|
|
|
|
|
|
|
|
<md-block src="readme.md">
|
|
|
|
</md-block>
|
|
|
|
</main>
|