-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
125 lines (112 loc) · 3.78 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>侠客行</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-106738345-6"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-106738345-6');
</script>
<!-- gitalk -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css">
<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js"></script>
</head>
<body>
<div class="outerContainer">
<div id="story" class="container">
<div class="header">
<h1>侠客行</h1>
<h2 class="byline"></h2>
</div>
<pre id="map_lxsz">
【柳秀山庄】
藏书阁
│
男浴室 尚武堂 女浴室
│ │ │
西厢房─────柳秀山庄正厅────东厢房
│
岩桂花园
│
长廊
∧
当铺──山庄大门──票号
│
铁匠铺─集镇小道北─杂货铺
│
│ 药铺
│╱
(扬州)──杏子林──集镇小道
│ │╲
车马行 │ 酒铺
│
缓坡
〓
树林─未明谷─乱石阵
│
青石桥头
</pre>
</div>
</div>
<div id="gitalk-container" class="gitalk">
<script type="text/javascript">
var gitalk = new Gitalk({
clientID: '5720447d1fa0fcfde164',
clientSecret: 'b814026320bc2e9af22637b15d8226009e71b72a',
repo: 'xkx',
owner: 'Ancientwood',
admin: ['Ancientwood'],
id: location.pathname, // Ensure uniqueness and length less than 50
distractionFreeMode: false // Facebook-like distraction free mode
})
gitalk.render('gitalk-container')
</script>
</div>
<div class="foot">
<a href="#story">【侠】</a>
<a href="#gitalk-container" onclick="hideMap()">【驿】</a>
<a id="map" href="#" onclick="showMap()">【舆】</a>
<a id="theme-switch" title="Switch theme">【夜】</a>
<a id="rewind" title="Restart">【重】</a>
<a id="save" title="Save progress">【存】</a>
<a id="reload" title="Reload from save point">【读】</a>
</div>
<script src="ink.js"></script>
<script src="xkx.js"></script>
<script src="main.js"></script>
<script>
var start = false;
var show = false;
if(start == false){
var menus = document.getElementsByClassName('choice');
for (var i=0; i < menus.length; i++) {
menus[i].onclick = function(){
start = true;
}
};
}
function hideMap(){
var map = document.getElementById("map_lxsz");
map.style.display = "none";
show = false;
}
function showMap(){
if(start && !show){
var map = document.getElementById("map_lxsz");
var story = document.getElementById("story");
map.style.display = "block";
story.append(map);
show = true;
} else {
hideMap();
}
}
</script>
</body>
</html>