-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
91 lines (90 loc) · 3.21 KB
/
index.html
File metadata and controls
91 lines (90 loc) · 3.21 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
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="https://pipi-88.github.io/WoS_Calculators/docs/index.html">
<title>ぴぴの計算機集</title>
<meta name="description" content="ぴーぴぴが作成した、ホワサバ用の各種計算機ページへのリンクをまとめています。">
</head>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
line-height: 1.6;
}
h1 {
color: #333;
}
nav ul {
list-style-type: none;
padding: 0;
}
nav li {
margin: 5px 0;
}
nav a {
text-decoration: none;
color: #0066cc;
}
nav a:hover {
text-decoration: underline;
}
button {
padding: 10px 15px;
font-size: 16px;
cursor: pointer;
}
#dataCheckResult {
white-space: pre-wrap;
background-color: #f4f4f4;
padding: 10px;
border: 1px solid #ddd;
margin-top: 10px;
}
</style>
<body>
<h1>計算機のリンク一覧</h1>
<h2>※現在移植作業中です。</h2>
<a>MinecraftのMOD作成と並行しているので、しばらくかかるかもしれません。</a>
<p>
以下のリンクから各種計算機のページへ移動できます。<br>
予告せずにパスを変更する可能性がありますので、ブックマークする際はこのページをブックマークしてください。
</p>
<nav>
<ul>
<li><a href="sample/Test.html">テストページ</a></li>
<li><a href="train/page.html">訓練関連の計算機</a></li>
<li><a href="crystal_lab/page.html">毎週の練成実験室</a></li>
<!-- ここに新しい計算機のリンクを追加していく -->
</ul>
</nav>
<hr>
<div>
<p>
localStorageに入力データを保存しています。
詳しくは <a href="DataStorage.html">こちら</a> をご覧ください。<br>
また、こちらでlocalStorageの中身を確認することができます。
</p>
<button onClick="checkAllData()">中身の確認</button>
<hr>
<p id="dataCheckResult"></p>
<hr>
</div>
</body>
<script>
const out = document.getElementById("dataCheckResult");
function checkAllData() {
if(typeof(Storage) === "undefined") {
out.innerText = "このブラウザはlocalStorageに対応していません。";
return;
}
out.innerText = "";
for(let i = 0; i < localStorage.length; i++) {
const key = localStorage.key(i);
const value = localStorage.getItem(key);
out.innerText += `${key} : ${value}\n`;
}
}
</script>
</html>