-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.htm
More file actions
32 lines (32 loc) · 883 Bytes
/
demo.htm
File metadata and controls
32 lines (32 loc) · 883 Bytes
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
<html window-frame="transparent">
<head>
<title>MovableView</title>
<style>
.header, .footer {
padding: 10dip;
background: #ddd;
}
.content {
height: 115dip;
padding: 5dip;
}
</style>
<script src="movableView.tis" type="text/tiscript"></script>
<script src="movableView.js" type="text/javascript"></script>
<script type="text/tiscript">
// include "movableView.tis";
movableView(".header");
movableView(".footer", true);
</script>
<script type="text/javascript" type="module">
// import movableView from "movableView.js";
movableView(".header");
movableView(".footer", true);
</script>
</head>
<body>
<div class="header">Header</div>
<div class="content">Grab the header or footer to move (footer will not allow you to cross screen bounds)</div>
<div class="footer">Footer</div>
</body>
</html>