-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-layouts.html
349 lines (303 loc) · 16.3 KB
/
page-layouts.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
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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="./assets/css/default.css" />
<link rel="stylesheet" href="./assets/css/navbar.css" />
<link rel="stylesheet" href="./assets/css/interior.css" />
<link rel="stylesheet" href="./assets/css/left-nav.css" />
<link rel="stylesheet" href="./assets/css/entry-content.css" />
<link rel="stylesheet" href="./assets/css/page-layouts.css" />
<title>Project 1 User Interface - INFO-3171-(01)-2023 Fall - Brand Guides</title>
</head>
<body>
<header>
<div class="container-fluid">
<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top" id="header">
<div class="container">
<a class="navbar-brand" href="#">
<img src="./assets/images/logo.png" class="d-inline-block align-top logo transition" alt="Logo">
</a>
<button class="navbar-toggler hb-menu" type="button" data-toggle="collapse" data-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./brand-guides.html">Brand Guides</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./data-visualization.html">Data Visualization</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="./page-layouts.html">Page Layouts</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./ui-components.html">UI Components</a>
</li>
</ul>
</div>
</div>
</nav>
</div>
</header>
<main id="main-container">
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-4 col-xl-4">
<ul id="mini-tab">
<li><a href="#" class="mt-el" data-tab="tab1" data-show-first="true">Menu 1</a>
</li>
<li><a href="#" class="mt-el" data-tab="tab2">Menu 2</a></li>
<li><a href="#" class="mt-el" data-tab="tab3">Menu 3</a></li>
<li><a href="#" class="mt-el" data-tab="tab4">DUPLICATE THIS</a></li>
</ul>
</div>
<div class="col-sm-12 col-md-12 col-lg-8 col-xl-8">
<div id="content-holder">
<!-- PRELOADER START -->
<div class="" id="preloader">
<div class="text-center mt-5">
<div class="spinner-border text-primary" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
</div>
<!-- PRELOADER END -->
<!-- INTRO START -->
<div class="entry-content" id="tab1" data-show-first="true">
<h1>Introduction</h1>
<p>Lorem <a href="#">ipsum dolor comet senstricakter</a>, stdratocaster, genesis series 3
with metalizer and
waah waah that will blow up your head!!!</p>
<p>Lorem ipsum dolor comet senstricakter, stdratocaster, genesis series 3 with metalizer and
waah waah that will blow up your head!!!</p>
<h2>Introduction</h2>
<p>Lorem ipsum dolor comet senstricakter, stdratocaster, genesis series 3 with metalizer and
waah waah that will blow up
your head!!!</p>
<h3>Introduction</h3>
<p>Lorem ipsum dolor comet senstricakter, stdratocaster, genesis series 3 with metalizer and
waah waah that will blow up
your head!!!</p>
<h4>Introduction</h4>
<p>Lorem ipsum dolor comet senstricakter, stdratocaster, genesis series 3 with metalizer and
waah waah that will blow up
your head!!!</p>
<h5>Introduction</h5>
<p>Lorem ipsum dolor comet senstricakter, stdratocaster, genesis series 3 with metalizer and
waah waah that will blow up
your head!!!</p>
<h6>Introduction</h6>
<p>Lorem ipsum dolor comet senstricakter, stdratocaster, genesis series 3 with metalizer and
waah waah that will blow up
your head!!!</p>
<ul>
<li>Lorem ipsum dolor comet senstricakter, stdratocaster, genesis series 3 with
metalizer and waah waah that will blow up
your head!!!</li>
<li>Lorem ipsum dolor comet senstricakter, stdratocaster, genesis series 3 with
metalizer and waah waah that will blow
up
your head!!!</li>
<li>Lorem ipsum dolor comet senstricakter, stdratocaster, genesis series 3 with
metalizer and waah waah that will blow
up
your head!!!</li>
</ul>
<ol>
<li>Lorem ipsum dolor comet senstricakter, stdratocaster, genesis series 3 with
metalizer and waah waah that will
blow up
your head!!!</li>
<li>Lorem ipsum dolor comet senstricakter, stdratocaster, genesis series 3 with
metalizer and waah waah that will
blow
up
your head!!!</li>
<li>Lorem ipsum dolor comet senstricakter, stdratocaster, genesis series 3 with
metalizer and waah waah that will
blow
up
your head!!!</li>
</ol>
<pre>
<code>
<html>
<head>
<title>Example Page</title>
</head>
<body>
<h1>This is an example</h1>
<p>Here is some text.</p>
</body>
</html>
</code>
</pre>
</div>
<!-- INTRO END -->
<!-- TYPO START -->
<div class="entry-content" id="tab2">
<h1>Typography</h1>
<p>Lorem <a href="#">ipsum dolor comet senstricakter</a>, stdratocaster, genesis series 3
with metalizer and
waah waah that will blow up your head!!!</p>
<p>Lorem ipsum dolor comet senstricakter, stdratocaster, genesis series 3 with metalizer and
waah waah that will blow up your head!!!</p>
<h2>Introduction</h2>
<p>Lorem ipsum dolor comet senstricakter, stdratocaster, genesis series 3 with metalizer and
waah waah that will blow up
your head!!!</p>
<h3>Introduction</h3>
<p>Lorem ipsum dolor comet senstricakter, stdratocaster, genesis series 3 with metalizer and
waah waah that will blow up
your head!!!</p>
<h4>Introduction</h4>
<p>Lorem ipsum dolor comet senstricakter, stdratocaster, genesis series 3 with metalizer and
waah waah that will blow up
your head!!!</p>
<h5>Introduction</h5>
<p>Lorem ipsum dolor comet senstricakter, stdratocaster, genesis series 3 with metalizer and
waah waah that will blow up
your head!!!</p>
<h6>Introduction</h6>
<p>Lorem ipsum dolor comet senstricakter, stdratocaster, genesis series 3 with metalizer and
waah waah that will blow up
your head!!!</p>
<ul>
<li>Lorem ipsum dolor comet senstricakter, stdratocaster, genesis series 3 with
metalizer and waah waah that will blow up
your head!!!</li>
<li>Lorem ipsum dolor comet senstricakter, stdratocaster, genesis series 3 with
metalizer and waah waah that will blow
up
your head!!!</li>
<li>Lorem ipsum dolor comet senstricakter, stdratocaster, genesis series 3 with
metalizer and waah waah that will blow
up
your head!!!</li>
</ul>
<ol>
<li>Lorem ipsum dolor comet senstricakter, stdratocaster, genesis series 3 with
metalizer and waah waah that will
blow up
your head!!!</li>
<li>Lorem ipsum dolor comet senstricakter, stdratocaster, genesis series 3 with
metalizer and waah waah that will
blow
up
your head!!!</li>
<li>Lorem ipsum dolor comet senstricakter, stdratocaster, genesis series 3 with
metalizer and waah waah that will
blow
up
your head!!!</li>
</ol>
</div>
<!-- TYPO END -->
<!-- COLORS START -->
<div class="entry-content" id="tab3">
<h1>TItle</h1>
<p>dffsfsfd</p>
</div>
<!-- COLORS END -->
<!-- DUPLICATE THIS TO ADD MORE CONTENT -->
<div class="entry-content" id="tab4">
<h1>TItle Here</h1>
<p>LOrem...</p>
</div>
<!-- DUPLICATE THIS TO ADD MORE CONTENT -->
</div>
</div>
</div>
</div>
</main>
<footer>
<div class="container">
<div class="row">
<div class="col-12">
<p>Copyright 2023, Internet & Web Applications. INFO-3171-(01)-2023 Fall</p>
</p>
</div>
</div>
</div>
</footer>
<a href="#" id="totop"><i class="bi bi-arrow-up-short"></i></a>
<script type="text/javascript" src="./assets/js/slick.min.js"></script>
<script type="text/javascript" src="./assets/js/slider.js"></script>
<script type="text/javascript" src="./assets/js/toTop.js"></script>
<script>
document.addEventListener("DOMContentLoaded", function () {
var entryContents = document.querySelectorAll(".entry-content");
var preloader = document.getElementById("preloader");
var miniTabItems = document.querySelectorAll("#mini-tab .mt-el");
var contentHolder = document.getElementById("content-holder");
// Function to add the "disable-this" class to all .mt-el elements
function addDisableClass() {
miniTabItems.forEach(function (mtEl) {
mtEl.classList.add("disable-this");
});
}
// Function to remove the "disable-this" class from all .mt-el elements
function removeDisableClass() {
miniTabItems.forEach(function (mtEl) {
mtEl.classList.remove("disable-this");
});
}
// Handle clicking on .mt-el elements
miniTabItems.forEach(function (item) {
item.addEventListener("click", function () {
// Add the "disable-this" class to all .mt-el elements
addDisableClass();
// Hide all entry-content elements
entryContents.forEach(function (entryContent) {
entryContent.style.display = "none";
});
// Remove the .active class from all .mt-el elements
miniTabItems.forEach(function (mtEl) {
mtEl.classList.remove("active");
});
// Add the .active class to the clicked .mt-el
item.classList.add("active");
// Get the value of the data-tab attribute
var tabValue = item.getAttribute("data-tab");
// Show the preloader
preloader.style.display = "block";
// After 2 seconds, show the target content
setTimeout(function () {
preloader.style.display = "none";
// Remove the "disable-this" class from all .mt-el elements
removeDisableClass();
// Display the content with the matching ID
var showContent = document.getElementById(tabValue);
if (showContent) {
showContent.style.display = "block";
}
}, 2000);
});
});
// Initially, select the first .mt-el and trigger a click event
if (miniTabItems.length > 0) {
miniTabItems[0].click();
}
});
</script>
<style>
a.disabled-link {
pointer-events: none;
text-decoration: none;
color: gray;
cursor: not-allowed;
}
</style>
</body>
</html>