-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
67 lines (62 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
<!DOCTYPE HTML>
<html>
<head>
<link rel="Stylesheet" type="text/css" href="/cgwiki/static/css/style.css">
<link rel="Stylesheet" type="text/css" href="/cgwiki/static/css/tango.css">
<link rel="shortcut icon" href="/cgwiki/favicon.ico" type="image/x-icon">
<link rel="icon" href="/cgwiki/favicon.ico" type="image/x-icon">
<link rel="alternate" type="application/atom+xml" href="atom.xml" title="Atom feed">
<title>CG-Wiki</title>
<meta name="keywords" content="simonhe,wiki,CG,pipline"/>
<meta name="description" content="Everything about CG"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div id="container">
<div class="title">CG-Wiki</div>
<div class="index">
<div class="category">
<h2 id="test1">归类1
</h2>
<div class="category_pages">
<ul>
<li class="pagelist item_arrow">
<a href="./test1/tst1.html">测试页面1</a>
</li>
</ul>
</div> <!-- end category_pages -->
</div> <!-- end category -->
<div class="clearfix"></div>
<div class="category">
<h2 id="test2">归类2
</h2>
<div class="category_pages">
<ul>
<li class="pagelist item_arrow">
<a href="./test2/tst2.html">测试页面2</a>
</li>
</ul>
</div> <!-- end category_pages -->
</div> <!-- end category -->
<div class="clearfix"></div>
</div>
</div>
<div id="footer">
<span>
<p>Copyright © 2017 Simon_He</p>
</span>
</div>
<script>
var list_wrappers = document.getElementsByClassName('list_wrapper')
for (var i = 0, len = list_wrappers.length; i < len; i++) {
var list_wrapper = list_wrappers[i];
var coll_name = list_wrapper.getElementsByClassName('coll_name')[0];
var coll_list = list_wrapper.getElementsByClassName('coll_list')[0];
var width = coll_name.clientWidth + 3;
// http://stackoverflow.com/a/10118190/1276501
coll_list.setAttribute("style","margin-left: " + width + "px");
coll_list.style.marginLeft = width + "px";
}
</script>
</body>
</html>