-
Notifications
You must be signed in to change notification settings - Fork 2
/
English Index.html
313 lines (288 loc) · 9.71 KB
/
English Index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="/pictures/Logo.PNG">
<title>Malaysia's Arts and Cultures</title>
<link rel="icon" href="https://ytsng2010.github.io/ASKProject2023/
/favicon.png">
<link rel="apple-touch-icon" sizes="180x180" href="favicon.ico/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon.ico/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon.ico/favicon-16x16.png">
<link rel="manifest" href="favicon.ico/site.webmanifest">
<link rel="shortcut icon" type="image/png" href="favicon.ico" />
<script>
function openNav() {
document.getElementById("mySidenav").style.width = "250px";
}
function closeNav() {
document.getElementById("mySidenav").style.width = "0";
}
</script>
<style>
.sidenav {
height: 100%;
width: 0;
position: fixed;
z-index: 1;
top: 0;
left: 0;
background-color: #111;
overflow-x: hidden;
transition: 0.5s;
padding-top: 60px;
}
.sidenav a {
padding: 8px 8px 8px 32px;
text-decoration: none;
font-size: 25px;
color: #818181;
display: block;
transition: 0.3s;
}
.sidenav a:hover {
color: #f1f1f1;
}
.sidenav .closebtn {
position: absolute;
top: 0;
right: 25px;
font-size: 36px;
margin-left: 50px;
}
body {
font-family: "Lato", sans-serif;
margin: 0;
background: linear-gradient(55deg, rgba(180, 233, 255, 1), rgba(255, 160, 122, 0.5), rgba(216, 220, 255, 1));
}
.navbar {
overflow: hidden;
background-color: #333;
position: fixed;
top: 0;
width: 100%;
}
.navbar a {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
.navbar a:hover {
background: #ddd;
color: black;
}
.main {
padding-top: 50px;
margin-top: 30px;
line-height: 1.15;
}
</style>
<script>
function getLocation() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
} else {
alert("Geolocation is not supported by this browser.");
}
}
function showPosition(position) {
alert("Latitude: " + position.coords.latitude +
"\nLongitude: " + position.coords.longitude);
}
</script>
</head>
<body onload="getLocation()">
<div id="mySidenav" class="sidenav" style="text-align:center;">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<a><h3 style="color:red;">Malaysia's Arts and Cultures</h3></a>
<a href="English Index.html"><h3>Home Page</h3></a>
<a href="Games.html">Games</a>
<a href="Performances.html">Performances</a>
<a href="Food.html">Food</a>
<a href="Buildings.html">Buildings</a>
<a href="Clothes.html">Clothes</a>
</div>
<div class="navbar">
<span style="font-size:35px;cursor:pointer;background-color:grey;float:left;" onclick="openNav()">☰</span>
<a href="Introduction of Project Members.html">Introduction of Project Members</a>
<a href="Comment.html">Comment</a>
<a href="index.html">Change Language</a>
<script type="text/javascript">
function init() {
var lookfor = document.getElementById("q").value;
var elementsToSearch = document.querySelectorAll("p, h1, h2, h3, h4, h5, li");
elementsToSearch.forEach(function (element) {
var content = element.innerHTML;
var modifiedContent = content.replace(new RegExp(lookfor, 'gi'), function (match) {
return '<span class="highlight">' + match + '</span>';
});
element.innerHTML = modifiedContent;
});
}
</script>
<style type="text/css">
.highlight {
background-color: yellow;
}
</style>
<br><input type="text" id="q" />
<button onclick="init()">Search</button>
</div>
<div class="main" style="font-size:18px;">
<marquee style="background-color:red;font-size:25px;" scrolldelay=35 truespeed="truespeed">WELCOME TO LEARN ABOUT MALAYSIA'S ARTS AND CULTURES!</marquee>
<h2 style="color:red;text-align:center;">Malaysia's Arts and Cultures</h2>
<p style="padding-left: 15px;">Malaysia is a multi-racial country that lives in peace. The three main races in Malaysia are the Malays,
Chineses and Indians.
<br>
<br>
Malay is the largest race, making up 54% of Malaysia's population. The Malays are Muslims,
speak Malay and practice Malay culture. Chinese represent 25% of the Malaysian population. Most Chinese are Buddhist, Taoist or Christian, speak Mandarin, Hokkien, Hakka,
Cantonese or Teochew. Indians make up 7.5% of the population. Most are Hindu, speak Tamil, Malayalam, or Hindi.
<br>
<br>
          The largest race in Sarawak is Iban which has a total population of 1,300,000 in Malaysia. There are 170,000 Bidayuh people that
live in the southwest of Sarawak. The largest tribe in Sabah is the Kadazandusun, which has approximately 1,700,000 people in Malaysia.
A total of 140,000 Orang Asli (indigenious people) also live in Malaysia. In addition, there are also Sikhs, Serani or Eurasians and other bumiputera races.
<br>
<br>
        Each race and religion represents a unique culture. Those cultures also represents a special type of art that has been passed down through generations. Let's know more about the arts and cultures
of Malaysia together in this website.
</p>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.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>
<style>
.carousel-caption {
position: absolute;
top: 50%;
transform: translateY(-50%);
bottom: initial;
z-index: 10;
color: #fff;
text-align: center;
width: 100%;
padding: 0 70px;
}
.carousel-inner {
height: 100vh;
}
.carousel-item img {
width: 100%;
height: 100%;
object-fit: cover;
}
</style>
</head>
<body>
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="Games.html" data-slide-to="0" class="active"></li>
<li data-target="Performances.html" data-slide-to="1"></li>
<li data-target="Food.html" data-slide-to="2"></li>
<li data-target="Buildings.html" data-slide-to="3"></li>
<li data-target="Clothes.html" data-slide-to="4"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
<a href="Games.html">
<img src="pictures/Permainan.png" alt="Slide 1">
<div class="carousel-caption">
<h3>Permainan</h3>
<p>Malaysia has many traditional games such as......</p>
</div>
</div>
<div class="carousel-item">
<a href="Performances.html">
<img src="pictures/Persembahan.png" alt="Slide 2">
<div class="carousel-caption">
<h3>Persembahan</h3>
<p>Malaysia has many traditional performances such as......</p>
</div>
</div>
<div class="carousel-item">
<a href="Food.html">
<img src="pictures/Makanan.png" alt="Slide 3">
<div class="carousel-caption">
<h3>Food</h3>
<p>Malaysia has many delicious foods such as......</p>
</div>
</div>
<div class="carousel-item">
<a href="Buildings.html">
<img src="pictures/Bangunan.jpg" alt="Slide 4">
<div class="carousel-caption">
<h3>Buildings</h3>
<p>Malaysia has many building such as......</p>
</div>
</div>
<div class="carousel-item">
<a href="Clothes.html">
<img src="pictures/samfoo.jfif" alt="Slide 5">
<div class="carousel-caption">
<h3>Clothes</h3>
<p>Malaysia has many traditional cloth such as......</p>
</div>
</div>
</div>
<a class="carousel-control-prev" href="#myCarousel" data-slide="prev">
<span class="carousel-control-prev-icon"></span>
</a>
<a class="carousel-control-next" href="#myCarousel" data-slide="next">
<span class="carousel-control-next-icon"></span>
</a>
</div>
<script>
$(document).ready(function(){
$('.carousel').carousel({
interval: 2000
})
});
</script>
</div>
</body>
<style>
#scrollToTopBtn {
display: none;
position: fixed;
bottom: 20px;
right: 20px;
background-color: #007BFF;
color: #fff;
padding: 10px;
border: none;
border-radius: 5px;
cursor: pointer;
}
</style>
</head>
<body>
<div style="height: 50px;">
</div>
<!-- Button to scroll to top -->
<button id="scrollToTopBtn" onclick="scrollToTop()">Back to Top</button>
<script>
// Show the button when the user scrolls down 300px
window.onscroll = function () {
showScrollButton();
};
function showScrollButton() {
var scrollToTopBtn = document.getElementById("scrollToTopBtn");
if (document.body.scrollTop > 50 || document.documentElement.scrollTop > 50) {
scrollToTopBtn.style.display = "block";
} else {
scrollToTopBtn.style.display = "none";
}
}
// Scroll to the top when the button is clicked
function scrollToTop() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
</script>
</html>