2020-05-08 23:59:22 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>Ad-hoc test</title>
|
2020-05-31 18:56:02 +02:00
|
|
|
<style>
|
|
|
|
.container {
|
|
|
|
height: 300px;
|
|
|
|
width: 380px;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
</style>
|
2020-05-08 23:59:22 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>Ad-hoc test</h1>
|
2020-05-31 18:56:02 +02:00
|
|
|
<div class="container"></div>
|
2020-05-08 23:59:22 +02:00
|
|
|
<script type="module">
|
2020-05-12 06:25:07 +02:00
|
|
|
import * as liteEmojiPicker from '../dist/es/index.js'
|
2020-05-08 23:59:22 +02:00
|
|
|
|
|
|
|
(async () => {
|
2020-05-13 05:25:46 +02:00
|
|
|
const database = new liteEmojiPicker.Database()
|
2020-05-09 00:49:05 +02:00
|
|
|
window.liteEmojiPicker = liteEmojiPicker
|
2020-05-17 02:20:00 +02:00
|
|
|
window.database = database
|
2020-05-12 06:25:07 +02:00
|
|
|
|
|
|
|
customElements.define('lite-emoji-picker', liteEmojiPicker.Picker)
|
|
|
|
const picker = document.createElement('lite-emoji-picker')
|
2020-05-31 18:56:02 +02:00
|
|
|
document.querySelector('.container').appendChild(picker)
|
2020-05-08 23:59:22 +02:00
|
|
|
})()
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|