-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
99 lines (86 loc) · 3.17 KB
/
index.php
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
<?php
include "link.php";
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Isles Of Terra vCompanion</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript>
<script src="assets/js/mm3calc.js"></script>
<style> .navbar-dark{
color: white;
} </style>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script>
$(document).ready(function() {
$('#items-content').load("itemsCalculator.php");
$('#map-content').load("maps.php");
$('#notes-content').load("notes.php");
$('#keyboard-content').load("keyboard.php");
$('#map-content').hide();
$('#notes-content').hide();
$('#keyboard-content').hide();
$('#btnMap').on('click', function() {
$('#map-content').show();
$('#items-content').hide();
$('#notes-content').hide();
$('#keyboard-content').hide();
});
$('#btnItems').on('click', function() {
$('#map-content').hide();
$('#items-content').show();
$('#notes-content').hide();
$('#keyboard-content').hide();
});
$('#btnNotes').on('click', function() {
$('#map-content').hide();
$('#items-content').hide();
$('#notes-content').show();
});
$('#btnKeyboard').on('click', function() {
$('#map-content').hide();
$('#items-content').hide();
$('#notes-content').hide();
$('#keyboard-content').show();
});
});
</script>
</head>
<body>
<div id="page-wrapper">
<article id="main">
<header>
<h2 style="color:white">Might and Magic III - Isles Of Terra</h2>
<p style="color:white">Virtual Companion</p>
</header>
<section>
<div class="container align-center">
<h2></h2>
<ul class="nav nav-tabs ml-auto mr-auto">
<li><button id="btnItems" type="button" class="btn-danger">Item Calculator</button></li>
<li><button id="btnMap" type="button" class="btn-danger">Maps</button></li>
<li><button id="btnNotes" type="button" class="btn-danger">Notes</button></li>
<li><button id="btnKeyboard" type="button" class="btn-danger">Keyboard Shortcuts</button></li>
</ul>
<div id="items-content" style="width: 100%; height: auto;"></div>
<div id="map-content" style="width: 100%; height: auto;" ></div>
<div id="notes-content" style="width: 100%; height: auto;" ></div>
<div id="keyboard-content" style="width: 100%; height: auto;" ></div>
</div>
</section>
</article>
<!-- Footer -->
<footer id="footer">
<ul class="copyright">
<li>© <a href="http://dosgameshub.org">Dos Games Hub</a></li>
</ul>
</footer>
</div>
<!-- Scripts -->
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>