-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (58 loc) · 1.76 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
<!--BackUp html-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<title>Skill-Tree</title>
<link rel="stylesheet" type="text/css" href="dist/semantic.min.css">
<link rel="stylesheet" href="css/style.css">
<script src="js/jquery-2.1.4.min.js"></script>
<script src="dist/semantic.js"></script>
<script src="js/d3.min.js"></script>
<script src="js/marked.js"></script>
<script src="js/skilltree.js"></script>
<script src="js/master.js"></script>
</head>
<script>
$( document ).ready(function() {
//skilltree("/TDOH/webservice/GetSkillTree");
//mastertree("/TDOH/webservice/GetUserTree?username=master");
master("master.json");
});
</script>
<body class="pushable">
<div class="pusher">
<div class="ui top inverted menu">
<div class="row">
<div class="header item">
<a href="#"><h2 class="white">TDOHacker</h2></a>
</div>
</div>
</div>
<div class="ui pushable">
<div class="ui right vertical sidebar menu uncover visible">
<div id="marked"></div>
</div>
<div class="attached pushable">
<div class="skill-tree"></div>
</div>
</div>
<div class="ui inverted segment">
<!--div class="ui fixed bottom pushable inverted footer segment"-->
<h3 class="ui center aligned dividing header">以這些大師為目標</h3>
<div class="masterList"></div>
</div>
</div>
<script>
// Get markdown file
fetch("http://map.tdohacker.org/basic.md").then((response) => {
if(response.ok) {
return response.text();
}
}).then((text) => {
document.querySelector('#marked').innerHTML = marked(text);
});
</script>
</body>
</html>