-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
61 lines (57 loc) · 1.37 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="frameable-style.css" />
<title>Frameable Demo</title>
<script type="text/javascript" src="frameable.js"></script>
<style>
html,
body {
margin: 0;
padding: 0;
}
body {
height: 100vh;
}
</style>
</head>
<body>
<div id="main"></div>
<script>
document.addEventListener("DOMContentLoaded", () => {
let resizerConfig = {
thickness: 3,
highlightThickness: 0,
};
let framesConfig = [
{
position: "left",
size: 0.15,
url: "page.html",
data: "left",
},
{
position: "right",
children: [
{
position: "top",
size: 0.8,
url: "page.html",
data: "top right",
},
{
position: "bottom",
url: "page.html",
data: "bottom right",
},
],
},
];
Frameable.initialise("main", framesConfig, resizerConfig);
// Frameable.initialise("main", framesConfig);
});
</script>
</body>
</html>