forked from egret-labs/egret-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.html
41 lines (34 loc) · 1.03 KB
/
main.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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no,target-densitydpi=200"/>
<title>Egret 测试列表</title>
<link rel="stylesheet" type="text/css" href="clibs/style-min.css"/>
</head>
<body>
<div style="position: absolute; left: 0px; top: 0px; right:0px;">
<ul id="items_ul">
</ul>
</div>
<div style="position:fixed;right: 10px;top: 5px;z-index: 999;text-align: right;">
<button id="btn">清理</button>
</div>
<script src="clibs/Utils.js"></script>
<script src="examples.js"></script>
<script>
btn.onclick = function () {
var href = window.location.href;
if (href.indexOf("#") >= 0) {
href = href.substring(0, href.indexOf("#"));
}
if (href.indexOf("?") >= 0) {
href = href.substring(0, href.indexOf("?"));
}
window.location.href = href + "?r=" + Math.random();
};
ex();
</script>
</body>
</html>