-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·45 lines (45 loc) · 1.16 KB
/
index.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
43
44
45
<html>
<head>
<meta charset="utf-8" />
<style>
.content {
display: flex;
height: 100vh;
}
.sidebar {
width: 300px;
padding: 10px;
margin: 10px;
background: #e8e8e8;
}
.sidebar > ul li {
cursor: pointer;
}
</style>
</head>
<body>
<div class="content">
<div class="sidebar">
<ul onclick="loadDemo(event)">
<li data-link="wc-loader.html">loader</li>
<li data-link="wc-toggle.html">toggle</li>
<li data-link="wc-multiselect.html">Multiselect</li>
<li data-link="zcui-job-application-form.html">zcui job application form</li>
<li data-link="zcui-wc-search-widget.html">zcui search widget</li>
<li data-link="zcui-wc-date-time-picker.html">zcui date time picker</li>
</ul>
</div>
<iframe
id="demo-content"
src="./demos/wc-toggle.html"
style="width:100%; height:100%; margin-top: 10px; border: 0;">
</iframe>
</div>
<script>
const loadDemo = (event) => {
let url = event.target.getAttribute('data-link');
document.getElementById('demo-content').setAttribute('src', `./demos/${url}`);
}
</script>
</body>
</html>