public/subjects/pimp-my-style/pimp-my-style.html

28 lines
653 B
HTML
Raw Permalink Normal View History

2020-06-15 21:33:28 +00:00
<!DOCTYPE html>
<html>
2020-06-15 21:33:28 +00:00
<head>
<title>Pimp my style</title>
2020-06-15 21:33:28 +00:00
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link id="fav" rel="shortcut icon" type="image/x-icon" href="data:image/x-icon;,">
<link rel="stylesheet" type="text/css" href="./pimp-my-style.data.css">
2020-06-15 21:33:28 +00:00
</head>
2020-06-15 21:33:28 +00:00
<body>
<script type="module">
import { pimp } from './pimp-my-style.js'
2020-06-15 21:33:28 +00:00
const body = document.querySelector('body')
2020-06-15 21:33:28 +00:00
const button = document.createElement('button')
button.className = 'button'
button.textContent = 'pimp my style'
body.append(button)
2020-06-15 21:33:28 +00:00
button.addEventListener('click', pimp)
2020-06-15 21:33:28 +00:00
</script>
</body>
</html>