-
Notifications
You must be signed in to change notification settings - Fork 29
/
test.html
42 lines (36 loc) · 893 Bytes
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<head>
<style>
:root {
/* --feedbackfin-primary-color: #007aff; */
/* --feedbackfin-primary-color-text: #fff; */
}
body {
font-family: system-ui;
display: grid;
place-items: flex-end;
height: 200vh;
}
* {
box-sizing: border-box;
}
</style>
</head>
<body>
<button onclick="toggleTheme()" style="position: fixed; top: 8px; left: 8px">
Toggle theme
</button>
<button data-feedbackfin-button>Feedback</button>
<script src="./dist/index.umd.js"></script>
<script>
// import "./dist/index.modern.js";
function toggleTheme() {
document.body.setAttribute(
"data-theme",
document.body.getAttribute("data-theme") === "dark" ? "light" : "dark"
);
}
// document
// .querySelector("button")
// .addEventListener("click", feedbackfin.open);
</script>
</body>