-
Notifications
You must be signed in to change notification settings - Fork 288
/
index.html
104 lines (85 loc) · 4.22 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>MagicaVoxel</title>
<meta name="description" content="MagicaVoxel Official Website">
<meta name="keywords" content="MagicaVoxel, Voxel, Voxel Editor">
<meta name="author" content="ephtracy">
<link href="css/bootstrap.min.css" rel="stylesheet">
<script type="text/javascript" src="js/jquery-1.10.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<link href="css/bootstrap-theme.min.css" rel="stylesheet">
<link href="css/mv.css" rel="stylesheet">
<link rel="shortcut icon" type="image/x-icon" href="favicon.png">
<script src="js/vertical-scroll.js"></script>
<script>
$(function() {
$('.mv_load_content').click(function() {
var c = $(this);
var content_src = c.attr('mv_content_ref');
$('#mv_content').load(content_src);
$('li').removeClass('active')
c.parent().addClass('active')
});
function qs(key) {
key = key.replace(/[*+?^$.\[\]{}()|\\\/]/g, "\\$&");
var match = location.search.match(new RegExp("[?&]"+key+"=([^&]+)(&|$)"));
return match && decodeURIComponent(match[1].replace(/\+/g, " "));
}
var page = qs('page');
if (page != undefined && page.length > 0) {
$('#' + page).click()
}
else {
$('li.active a').trigger('click')
}
var shiftWindow = function() { scrollBy(0, -40) };
window.addEventListener("hashchange", shiftWindow);
function load() { if (window.location.hash) shiftWindow(); }
});
</script>
</head>
<body>
<div class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#mv_nav">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">
E
</a>
</div>
<div class="collapse navbar-collapse" id="mv_nav">
<ul class="nav navbar-nav">
<li class="active"><a href="index.html?page=mv_main" id="mv_main" class="mv_load_content" mv_content_ref="mv_main.html">MagicaVoxel</a></li>
<li><a href="index.html?page=magicacsg" id="magicacsg" class="mv_load_content" mv_content_ref="magicacsg.html">MagicaCSG</a></li>
<li><a href="index.html?page=aerialod" id="aerialod" class="mv_load_content" mv_content_ref="aerialod.html">Aerialod</a></li>
<li><a href="index.html?page=mv_renderer" id="mv_renderer" class="mv_load_content" mv_content_ref="mv_renderer.html">Viewer</a></li>
<li><a href="index.html?page=mv_controls" id="mv_controls" class="mv_load_content" mv_content_ref="mv_controls.html">Shortcuts</a></li>
<li><a href="index.html?page=mv_commands" id="mv_commands" class="mv_load_content" mv_content_ref="mv_commands.html">Commands</a></li>
<li><a href="index.html?page=mv_resource" id="mv_resource" class="mv_load_content" mv_content_ref="mv_resource.html">Resources</a></li>
<li><a href="index.html?page=mv_contact" id="mv_contact" class="mv_load_content" mv_content_ref="mv_contact.html">Contact</a></li>
</ul>
</div>
</div>
</div>
<div id="wrap">
<div>
<div class="jumbotron">
<div class="container" id="mv_content">
</div>
</div>
</div>
</div>
<div class="footer">
<div class="container">
<p class="pull-right">Copyright © ephtracy 2011-2021</p>
</div>
</div>
</body>
</html>