Skip to content

Commit

Permalink
chore: adds standalone.html for manual testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kleinfreund committed Nov 24, 2023
1 parent fc7cf10 commit 038a219
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions standalone.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />

<title>color picker demo</title>

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/yet-another-color-picker@latest/dist/ColorPicker.css">
</head>

<body>
<color-picker></color-picker>

<script type="importmap">
{
"imports": {
"lit-html": "https://cdn.jsdelivr.net/npm/lit-html@%5E3.1.0"
}
}
</script>
<script type="module">
import 'https://cdn.jsdelivr.net/npm/yet-another-color-picker@latest/dist/ColorPicker.js'

const colorPicker = document.querySelector('color-picker')
colorPicker.addEventListener('color-change', function (event) {
console.log(event.detail)
})
</script>
</body>

</html>

0 comments on commit 038a219

Please sign in to comment.