-
Notifications
You must be signed in to change notification settings - Fork 0
/
depress.html
110 lines (105 loc) · 3.83 KB
/
depress.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Intro</title>
<link rel="stylesheet" href="/styles/index.css" />
<link rel="stylesheet" href="/styles/normalize.css" />
<link rel="stylesheet" href="/styles/style.css" />
<script src="page.js"></script>
<script
src="https://kit.fontawesome.com/7b9a1721c6.js"
crossorigin="anonymous"
></script>
</head>
<body>
<div id="header">
<h1 id="title">OUR WORLD IN DEPRESSION</h1>
<p id="copyright">copyrighted by Tramcam Team</p>
</div>
<div class="container">
<div class="background"></div>
<div class="main">
<div class="row sidebar">
<div class="col tab-header">
<button
id="page-change-btn-5"
class="btn_nav page-change"
onclick="changeToPreviousPage3(true)"
>
<i class="fa-solid fa-chevron-left"></i>
Previous
</button>
<button
class="tab-button button-1 active"
onclick="showTab('hoc-duong')"
>
<h4 id="button-text button-text-1">1</h4>
</button>
<button class="tab-button button-2" onclick="showTab('gia-dinh')">
<h4 id="button-text button-text-2">2</h4>
</button>
<button class="tab-button button-3" onclick="showTab('tinh-yeu')">
<h4 id="button-text button-text-3">3</h4>
</button>
<button class="tab-button button-4" onclick="showTab('ban-than')">
<h4 id="button-text button-text-4">4</h4>
</button>
<button class="tab-button button-5" onclick="showTab('cong-viec')">
<h4 id="button-text button-text-5">5</h4>
</button>
</div>
<div class="col main-content edu-content">
<div class="tab-panel">
<div id="hoc-duong" class="tab-content" style="display: block">
<iframe
src="education.html"
allowfullscreen
scrolling="no"
></iframe>
</div>
<div id="gia-dinh" class="tab-content">
<iframe
src="family.html"
allowfullscreen
scrolling="no"
></iframe>
</div>
<div id="tinh-yeu" class="tab-content">
<iframe src="love.html" allowfullscreen scrolling="no"></iframe>
</div>
<div id="ban-than" class="tab-content">
<iframe src="self.html" allowfullscreen scrolling="no"></iframe>
</div>
<div id="cong-viec" class="tab-content">
<iframe src="work.html" allowfullscreen scrolling="no"></iframe>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
function showTab(tabId) {
const tabButtons = document.querySelectorAll(".tab-button");
const tabContents = document.querySelectorAll(".tab-content");
// Hide all tab content
tabContents.forEach((tabContent) => {
tabContent.style.display = "none";
});
// Show the tab content associated with the clicked button
document.getElementById(tabId).style.display = "block";
// Make the clicked button active and deactivate all other buttons
tabButtons.forEach((tabButton) => {
if (tabButton.getAttribute("onclick").includes(tabId)) {
tabButton.classList.add("active");
} else {
tabButton.classList.remove("active");
}
});
}
</script>
</body>
</html>