-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrest.html
More file actions
87 lines (78 loc) · 2.87 KB
/
rest.html
File metadata and controls
87 lines (78 loc) · 2.87 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="materialize/css/materialize.min.css" />
<link rel="stylesheet" href="style.css" />
<title>休息</title>
</head>
<body>
<!-- navbar -->
<nav class="nav-extended teal">
<div class="nav-wrapper">
<ul class="left" style="width: 100%;">
<li class="active"><a href="./index-stress.html">壓力測驗</a></li>
<li><a href="./index-stroop.html">Stroop</a></li>
<li class="right"><a onclick="resetLocalStorage()">reset</a></li>
</ul>
</div>
<div class="nav-content">
<ul class="tabs tabs-transparent">
<li class="tab"><a href="./index-stress.html">計分板</a></li>
<li class="tab"><a href="./color.html">顏色</a></li>
<li class="tab"><a href="./calc.html">心算</a></li>
<li class="tab right"><a id="btn-download">下載</a></li>
<li class="tab right"><a href="./setting-stress.html">設定</a></li>
<li class="tab right"><a href="#modal-register" class="modal-trigger">註冊</a></li>
</ul>
</div>
</nav>
<!-- content -->
<div class="container">
<!-- startBlock -->
<div id="startBlock" style="display: block;">
<div class="row">
<div class="col" style="width: 100%;">
<div class="card">
<div class="card-content center-align">
<h3 id="h3-show"></h3>
<button id="btn-start" class="waves-effect waves-light btn-large" onclick="rest()">開始</button>
</div>
</div>
</div>
</div>
</div>
<!-- Black Modal Structure -->
<div id="modal-black" class="modal black">
<div class="modal-content"></div>
</div>
<!-- Rest Modal Structure -->
<div id="modal-rest" class="modal black">
<div class="modal-content center-align" style="padding-top: 40vh;">
<h1 class="blue-text">休息一下</h1>
</div>
</div>
<script src="materialize/js/materialize.min.js"></script>
<script src="main.js"></script>
<script src="stress.js"></script>
<script>
showH3();
function rest() {
restModalInstance.open();
setTimeout(function () {
restModalInstance.close();
blackModalInstance.open();
setTimeout(function () {
// 前往下一題
let current_sequence = addLocalStorage("CURRENT_SEQUENCE");
let execFunc = SEQUENCE[current_sequence];
execFunc();
}, parseInt(localStorage.getItem("STRESS_STOP_TIME")) * 1000);
}, parseInt(localStorage.getItem("STRESS_REST_TIME")) * 1000);
}
</script>
</body>
</html>