-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.html
More file actions
55 lines (52 loc) · 1.09 KB
/
index.html
File metadata and controls
55 lines (52 loc) · 1.09 KB
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
<html style="background:#dbdbdb">
<head>
<title>TouchSplitter Demo</title>
<link href="src/touchsplitter.css" rel="stylesheet"/>
<style>
html,body {
width:100%;
height:100%;
}
body { margin:0; }
.split-me>div{
background: #444;
}
.split-me>div:first-child{
background: #555;
}
.split-me>div:last-child{
background: #666;
}
.split-me-container {
position: absolute;
top: 3em;
left: 1em;
right: 1em;
bottom: 1em;
border-radius: 6px;
overflow: hidden;
}
.splitter-bar {
background: #333;
}
</style>
</head>
<body>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="src/jquery.touchsplitter.js"></script>
<h1>Basic Demo</h1>
<div class="split-me-container">
<div class="split-me">
<div>
<div>Left Side</div>
<div>Left Side Bottom</div>
</div>
<div> Right Side </div>
</div>
</div>
<script>
splitter = $('.split-me').touchSplit({leftMin:300, rightMin:300, thickness: "10px", dock:"left"})
splitter.getFirst().touchSplit({thickness: "20px", orientation:"vertical"})
</script>
</body>
</html>