-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
95 lines (95 loc) · 3.43 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="株式会社カプコンが運営するオンラインゲーム『モンスターハンター フロンティアZ(MHF-Z)』の公式WEBサイト。">
<meta name="keywords" content="モンスターハンター,フロンティア,Z,mhf,monster hunter frontierZ,オンラインゲーム,動画,カプコン,CAPCOM">
<meta content="text/css" http-equiv="content-style-type">
<meta content="text/javascript" http-equiv="content-script-type">
<title>MHF-Zオンラインマニュアル</title>
<link href="css/common.css" rel="stylesheet" type="text/css">
<link href="css/top.css" rel="stylesheet" type="text/css">
<link href="css/left_column.css" rel="stylesheet" type="text/css">
<script>
/*
Comments here for for a theoretical permalink version
Though the original manual ran on httpd, this is static
You could make this work with window pushState and onpopstate listeners but I couldn't get it to work 100%
*/
//var currentPath = 'top.html';
async function include() {
let z = document.getElementsByTagName('*');
for (i = 0; i < z.length; i++) {
e = z[i];
path = e.getAttribute('includes');
if (path) {
//console.log(path);
try {
e.removeAttribute('includes')
let response = await fetch(path);
e.innerHTML = await response.text();
$(function() {
$('a.zoom').colorbox();
});
} catch (err) {
console.log('error loading menu');
}
}
}
}
function setArticle(path, back = false) {
/*
if (!back) {
window.history.pushState(currentPath, 'MHF-Zオンラインマニュアル', '/'+path);
}
*/
var ab = document.getElementById('articleBox');
ab.setAttribute('includes', path);
//currentPath = path;
include();
}
/*
window.onpopstate = function(e) {
console.log('window pop');
console.log(e);
if (e.state) {
setArticle(e.state, true);
}
};
*/
</script>
</head>
<body>
<div id="box">
<div id="head">
<h1><img src="img/head_ps4.jpg" alt="PlayStation®4版モンスターハンター フロンティアZ オンラインマニュアル" width="830" height="132"></h1>
<div id="search">
<!--form action="search.html" method="get"-->
<input type="text" name="wd" maxlength="40" class="w134">
<input name="imageField" type="image" src="img/search_btn.jpg" align="middle" alt="検索">
<!--/form-->
</div>
</div>
<div id="container">
<div class="articleBox" id="articleBox" includes="top.html"></div>
<div class="menuBox">
<div id="bnrArea" includes="bnr.html"></div>
<div id="menuArea" includes="menu.html"></div>
</div>
</div>
<div id="footer"><div id="logo_box"><div class="ft_bottom"><script src="js/copyright.js" type="text/javascript"></script></div></div></div>
</div>
</body>
<script>
/*
let params = new URLSearchParams(window.location.search);
if (params.get('page')) {
setArticle('page'+params.get('page'));
}
*/
include();
</script>
<script type="text/javascript" src="js/init.js"></script>
<script type="text/javascript" src="js/ini.js"></script>
</html>