-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
126 lines (113 loc) · 4.03 KB
/
Copy pathindex.html
File metadata and controls
126 lines (113 loc) · 4.03 KB
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
126
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>MyGUI</title>
<link rel="stylesheet" href="css/text.css" type="text/css" />
<link rel="stylesheet" href="css/960.css" type="text/css" />
<link rel="stylesheet" href="css/tabs.css" type="text/css" />
<link rel="icon" href="images/mygui.ico" type="image/x-icon" />
<style>
body { margin: 30px; font-size: 10pt; }
code { white-space: nowrap; }
#releases-list { list-style: none; padding-left: 0; }
#releases-list li { margin-bottom: 12px; }
.rel-version { font-weight: bold; }
.rel-date { color: #888; font-size: 90%; }
.rel-body { margin: 4px 0 0; white-space: pre-wrap; font-size: 95%; }
</style>
</head>
<body class="container_12">
<div id="page" class="grid_10 prefix_1 suffix_1">
<div id="header">
<table width="100%">
<tr width="100%" align="center">
<td width="40%" align="center"><a href="index.html"><img src="images/MyGUI_Logo.png" width="220" border="0"></a></td>
<td width="60%" style="white-space: nowrap">
<a href="#look" style="text-decoration: none">
<img src="images/screenshots/DragAndDrop.webp" width="121" border="0">
<img src="images/screenshots/ColorPicker.webp" width="121" border="0">
<img src="images/screenshots/FontViewer.webp" width="121" border="0">
</a>
</td>
</tr>
</table>
</div>
<div id="tabs" class="tab-container">
<ul class="tab-bar">
<li class="tab active"><a href="#news">News</a></li>
<li class="tab"><a href="#about">About</a></li>
<li class="tab"><a href="#projects">Projects</a></li>
<li class="tab"><a href="#look">Look!</a></li>
<li class="tab"><a href="#license">License</a></li>
<li class="tab"><a href="#download">Download</a></li>
<li class="tab"><a href="#docs">Docs</a></li>
</ul>
<div id="news" class="tab-panel"></div>
<div id="about" class="tab-panel" style="display: none;"></div>
<div id="projects" class="tab-panel" style="display: none;"></div>
<div id="look" class="tab-panel" style="display: none;"></div>
<div id="license" class="tab-panel" style="display: none;"></div>
<div id="download" class="tab-panel" style="display: none;"></div>
<div id="docs" class="tab-panel" style="display: none;"></div>
</div>
<br />
<div id="logos" align="center">
<a href="http://www.thefarwilds.com"><img src="images/TheFarWilds.webp" /></a><br />
2007 – 2026
</div>
</div>
<script>
var cache = {};
function execScripts(el) {
[].forEach.call(el.querySelectorAll('script'), function(s) {
var ns = document.createElement('script');
if (s.src) ns.src = s.src;
else ns.textContent = s.textContent;
s.parentNode.replaceChild(ns, s);
});
}
function loadPanel(id, cb) {
var panel = document.getElementById(id);
if (cache[id]) {
panel.innerHTML = cache[id];
execScripts(panel);
if (cb) cb();
return;
}
panel.innerHTML = '<p>Loading…</p>';
fetch('pages/' + id + '.html')
.then(function(r) { return r.text(); })
.then(function(html) {
var tmp = document.createElement('div');
tmp.innerHTML = html;
var inner = tmp.firstElementChild.innerHTML;
cache[id] = inner;
panel.innerHTML = inner;
execScripts(panel);
if (cb) cb();
})['catch'](function() {
panel.innerHTML = '<p>Failed to load content.</p>';
if (cb) cb();
});
}
(function(){
var hash = window.location.hash || '#news';
function select(id) {
loadPanel(id, function() {
[].forEach.call(document.querySelectorAll('.tab-panel'), function(p) { p.style.display = 'none'; });
[].forEach.call(document.querySelectorAll('.tab-bar li'), function(li) { li.className = 'tab'; });
var panel = document.getElementById(id);
if (panel) panel.style.display = 'block';
var tab = document.querySelector('.tab-bar a[href="#' + id + '"]');
if (tab) tab.parentNode.className = 'tab active';
});
}
select(hash.slice(1));
window.addEventListener('hashchange', function() {
select(window.location.hash.slice(1));
});
})();
</script>
</body>
</html>