-
Notifications
You must be signed in to change notification settings - Fork 2
/
example.html
executable file
·38 lines (32 loc) · 1.07 KB
/
example.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Super Select</title>
<link rel="stylesheet" href="example.css">
</head>
<body>
<div class="container">
<header>
<h1>Super Select</h1>
<p>A replacement for selects/datalists on web applications</p>
</header>
<div class="content">
<span class="react-root"></span>
</div>
</div>
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/[email protected]/babel.min.js"></script>
<script type="text/javascript" src="dist/SuperSelect.js"></script>
<script type="text/javascript">
(function () {
SuperSelect = SuperSelect.default;
const example = document.createElement("script");
example.type = "text/babel";
example.src = "example.jsx";
document.body.appendChild(example);
}());
</script>
</body>
</html>