-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.html
104 lines (88 loc) · 2.12 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0">
<title>Split Me Demo</title>
<script src="https://unpkg.com/split-me/dist/split-me.js"></script>
</head>
<body>
<div class="title-container">
<h2>SplitMe - Universal Splitter</h2>
<p>
<a href="https://github.com/alesgenova/split-me" target="_blank">GitHub</a>
-
<a href="https://github.com/alesgenova/split-me/blob/master/index.html" target="_blank">Demo Source</a>
</p>
</div>
<div class="container">
<split-me id="splitter" n="3" sizes="0.25, 0.5, 0.25">
<div slot="0" class="fill red"></div>
<split-me slot="1" id="splitter" n="3" d="vertical">
<div slot="0" class="fill green"></div>
<split-me slot="1" id="splitter" n="3">
<div slot="0" class="fill teal"></div>
<div slot="1" class="fill orange"></div>
<div slot="2" class="fill dark-green"></div>
</split-me>
<div slot="2" class="fill light-green"></div>
</split-me>
<split-me slot="2" n="2" d="vertical">
<div slot="0" class="fill blue"></div>
<div slot="1" class="fill purple"></div>
</split-me>
</split-me>
</div>
</body>
<style>
html, body {
height: 98%;
}
.title-container {
position: absolute;
width: 100%;
background-color: rgba(255,255,255,0.25);
text-align: center;
font-family: sans-serif;
color: darkslategray;
top: 0;
left: 0;
z-index: 10;
}
.container {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
}
.fill {
height: 100%;
width: 100%;
}
.dark-green {
background-color: #009688;
}
.red {
background-color: #f44336;
}
.green {
background-color: #4CAF50;
}
.teal {
background-color: #00BCD4;
}
.orange {
background-color: #FF9800;
}
.blue {
background-color: #3F51B5;
}
.purple {
background-color: #9C27B0;
}
.light-green {
background-color: #CDDC39;
}
</style>
</html>