-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser_guide.html
More file actions
197 lines (172 loc) · 6.04 KB
/
user_guide.html
File metadata and controls
197 lines (172 loc) · 6.04 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<!-- user_guide.html -->
<!-- base.html (static-friendly) -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SHIFT</title>
<script src="https://code.jquery.com/jquery-3.7.1.min.js" crossorigin="anonymous"></script>
<!--Bootstrap CSS CDN File-->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
<!--Common Styles-->
<div id="styles-placeholder"></div>
<!-- Page specific styles can go here -->
<style>
.tabs {
display: flex;
justify-content: center;
margin-bottom: 30px;
}
.tabs button {
background: none;
border: 2px solid #06447e; /* Match base.html color */
color: #06447e;
font-weight: 600;
padding: 10px 20px;
cursor: pointer;
margin: 0 5px;
border-radius: 5px;
}
.tabs button.active {
background-color: #06447e;
color: #fff !important;
}
.content-container {
padding: 0 20px !important; /* Adjust the value as needed for desired padding */
max-width: 1200px !important; /* Optional: to restrict the width for better readability */
margin: 20px auto !important; /* Center the container */
}
.container-guide {
display: none; /* Hide containers by default */
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
padding: 20px;
max-width: 1200px;
margin: auto;
}
.container-guide.active {
display: grid; /* Show active container */
}
.card {
background-color: #fff;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
padding: 20px;
border-radius: 10px;
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
text-align: center;
}
.card button {
/* background-color: #06447e; Match base color */
/* color: #fff !important; */
background:none;
color: #06447e;
border: 2px solid #06447e;
padding: 10px;
border-radius: 5px;
font-weight: 600;
cursor: pointer;
margin-top: auto;
white-space: normal;
word-wrap: break-word;
max-width: 120px;
align-self: center;
}
.card button:hover {
background-color: #6093c2 !important;
}
</style>
</head>
<body>
<!--Header-->
<div id="header-placeholder"></div>
<!--Navbar-->
<div id="navbar-placeholder"></div>
<!-- Main content will be inserted here -->
<main>
<section>
<div class="content-container">
<h2 style="text-align: center;">User Guide </h2>
<p style="text-align: center;">Pick the SHIFT module to get detailed instructions.</p>
</div>
<div class="tabs">
<button class="active" onclick="showTab('watch')">Watch</button>
<!-- <button onclick="showTab('ring')">Ring</button> -->
<button onclick="showTab('annotation')">Annotation</button>
</div>
</section>
<div class="container-guide active" id="watch">
<div class="card">
<h3>Set Up</h3>
<p>How to set up the watch?</p>
<a href="https://drive.google.com/file/d/1FYZFyPhaLCrL6VWTMKgciwcFneFC_h-h/view?usp=sharing" target="_blank" style="text-decoration: underline; color: #06447e;">PDF</a>
<br>
<a href="https://drive.google.com/file/d/1-q3xXfuYJxGHae46kDDQVeqOXb2bmLPl/view?usp=sharing" target="_blank">
<button>View</button>
</a>
</div>
<div class="card">
<h3>Wearing</h3>
<p>How to wear the watch?</p>
<!-- <button>View</button> -->
<a href="https://drive.google.com/file/d/1sbCDiJj9KRR4djbhogrb5dHMfw7YNQwg/view?usp=sharing" target="_blank">
<button>View</button>
</a>
</div>
<div class="card">
<h3>Uploading</h3>
<p>How to upload the data from the watch?</p>
<a href="https://drive.google.com/file/d/1YC_7skmSgj35FA34njVCN9KRMNSUF3uE/view?usp=sharing" target="_blank">
<button>View</button>
</a>
</div>
</div>
<div class="container-guide" id="annotation">
<div class="card">
<h3>Web Application</h3>
<p>How to annotate the potential Moments of Stress?</p>
<a href="https://drive.google.com/file/d/1Ju4xNNXwhRr6pnFPoo7TW9naZkNZz9fd/view?usp=sharing" target="_blank" style="text-decoration: underline; color: #06447e;">PDF</a>
<br>
<a href="https://drive.google.com/file/d/1jciSxeYNRUKwjtKf7DLzjgIr_ekkjBJL/view?usp=sharing" target="_blank">
<button>View</button>
</a>
</div>
<!-- <div class="card">
<h3>Demo</h3>
<p>Interactive Demo of Web Annotation</p>
<a href="https://shift-review-map.appspot.com/redirect_to_demo" target="_blank">
<button>View</button>
</a>
</div>
<div class="card">
<h3>FAQ</h3>
<p> Frequently Asked Question</p>
<button>View</button>
</div> -->
</div>
</main>
<!--Footer-->
<div id="footer-placeholder"></div>
<!-- JavaScript -->
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
<script src="./static/js/main.js"></script>
<script>
function showTab(tabId) {
document.querySelectorAll('.container-guide').forEach(container => {
container.classList.remove('active');
});
document.getElementById(tabId).classList.add('active');
document.querySelectorAll('.tabs button').forEach(button => {
button.classList.remove('active');
});
// event.target.classList.add('active');
const clickedButton = event.currentTarget;
clickedButton.classList.add('active');
}
</script>
</body>
</html>