-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.js
More file actions
57 lines (50 loc) · 1.85 KB
/
init.js
File metadata and controls
57 lines (50 loc) · 1.85 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
header = `
<h1>
<a href="/" style="text-decoration: none; color: inherit;">
<img src="/figure/icon.png" alt="Article SAVE Logo" style="height: 50px; vertical-align: middle; margin-right: 10px;">Article SAVE
</a>
</h1>
`;
footer = `
<p>
© 2026 <a href="https://github.com/elecbug">elecbug</a> in <a href="https://github.com/kmu-save">KMU SAVE</a>. All rights reserved.
</p>
`;
nav = `
<p style="margin-top: 0px;margin-bottom: 10px; text-align: center; font-weight: bold; font-size: 1.2em;">
MENU
</p>
<div class="nav-separator"></div>
<div>
<table style="width: 100%; border-collapse: collapse; margin-top: 10px;">
<tr>
<td><button class="menu-button" id="home-button">Home</button></td>
</tr>
<tr>
<td><button class="menu-button" id="submission-procedure-button">Submission Procedure</button></td>
</tr>
<tr>
<td><button class="menu-button" id="article-college-button"><b>Article</b> - College</button></td>
</tr>
<tr>
<td><button class="menu-button" id="article-computer-button"><b>Article</b> - Computer</button></td>
</tr>
</table>
</div>
`;
document.getElementById('header').innerHTML = header;
document.getElementById('footer').innerHTML = footer;
document.getElementById('nav').innerHTML = nav;
// Navigation button event listeners
document.getElementById('home-button').addEventListener('click', function() {
window.location.href = '/';
});
document.getElementById('submission-procedure-button').addEventListener('click', function() {
window.location.href = '/submission-procedure';
});
document.getElementById('article-college-button').addEventListener('click', function() {
window.location.href = '/article/college/overview';
});
document.getElementById('article-computer-button').addEventListener('click', function() {
window.location.href = '/article/computer/overview';
});