-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathblockbrake.html
executable file
·53 lines (49 loc) · 2.58 KB
/
blockbrake.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
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>ブロック崩し記事一覧</title>
<meta name="description" content="MIS.W ブロック崩し講座">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="icon" href="./images/misw_logo.ico">
<link rel="stylesheet" type="text/css" href="./css/reset.css">
<link rel="stylesheet" type="text/css" href="./css/main.css">
<link rel="stylesheet" type="text/css" href="./css/darkmode.css">
<script>
let currentClass = localStorage.mode || "light-mode";
function toggleDarkLight() {
const body = document.getElementById("body");
body.classList.remove(currentClass);
currentClass = (currentClass == "dark-mode" ? "light-mode" : "dark-mode");
body.classList.add(currentClass);
save();
}
document.addEventListener("DOMContentLoaded", function() {
const body = document.getElementById("body");
body.classList.add(currentClass);
save();
setTimeout(function() {
body.classList.add("body-transition");
}, 500);
});
function save(){
localStorage.setItem("mode",currentClass);
}
</script>
</head>
<body id="body">
<h1>ブロック崩し記事一覧</h1>
<button type="button" name="dark_light" onclick="toggleDarkLight()" title="Toggle dark/light mode">☀</button>
<div class="Container">
<div>
<li><a href="https://misw.github.io/markdown/pdf/ブロック崩し/part0.pdf" target="_blank">part0</a></li>
<li><a href="https://misw.github.io/markdown/pdf/ブロック崩し/part1.pdf" target="_blank">part1</a></li>
<li><a href="https://misw.github.io/markdown/pdf/ブロック崩し/part2.pdf" target="_blank">part2</a></li>
<li><a href="https://misw.github.io/markdown/pdf/ブロック崩し/part3.pdf" target="_blank">part3</a></li>
<li><a href="https://misw.github.io/markdown/pdf/ブロック崩し/part4.pdf" target="_blank">part4</a></li>
<li><a href="https://misw.github.io/markdown/pdf/ブロック崩し/part5.pdf" target="_blank">part5</a></li>
<li><a href="https://misw.github.io/markdown/pdf/ブロック崩し/part6.pdf" target="_blank">part6</a></li>
</div>
</div>
</body>
</html>