-
Notifications
You must be signed in to change notification settings - Fork 2
/
Games.html
256 lines (237 loc) · 8.25 KB
/
Games.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
<!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>
</head>
<body>
<li class="interlanguage-link interwiki-en mw-list-item"><a href="English Index.html" title="Culture of Malaysia – Inggeris" lang="en" hreflang="en" class="interlanguage-link-target"><span>English</span></a></li>
<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="Permainan.html">Change Language</a>
<script type="text/javascript">
function init() {
var lookfor = document.getElementById("q").value; // Remove .toLowerCase()
var elementsToSearch = document.querySelectorAll("p, h1, h2, h3, h4, h5, h6");
elementsToSearch.forEach(function (element) {
var content = element.innerHTML; // Remove .toLowerCase()
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>
</head>
<body>
<br> <input type="text" id="q" />
<button onclick="init()">Cari</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>
<style>
/* Add some basic styling */
img {
cursor: pointer;
transition: transform 0.3s ease;
}
/* Add a class to scale the image when clicked */
.enlarged {
transform: scale(1.5);
}
</style>
</head>
<body>
<!-- Add an image with an ID for easy selection -->
<img id="enlargeImage" src="pictures/favicon.png" alt="Enlargable Image" onclick="enlargeImage()">
<script>
// JavaScript function to handle image enlargement
function enlargeImage() {
// Select the image element
var image = document.getElementById("enlargeImage");
// Toggle the 'enlarged' class to scale the image
image.classList.toggle("enlarged");
}
</script>
<a href="English Index.html" class="btn btn-primary"><h3 style="text-align:right;">Back</a>
<h2 style="color:red;text-align:center;">Malaysia's Tradisional Games</h2>
</div>
<div class="card">
<div class="card-body">
<ul>
<h3>1. Congkak</h3>
<img src="pictures/congkak2.jpg" height=300px,width=300px>
<li>A game in pairs by filling "buah" (marbles) into a row of holes on a piece of board called the congkak board.</li>
<li>People used to just play congkak on the ground and use small stones and seeds as marbles.</li>
<h3>2. Batu Seremban</h3>
<img src="pictures/batu.jpg" height=300px,width=300px>
<li>involves at least two players and is usually played by women.</li>
<li>Tool - five or seven small stones.</li>
<li>All the stones are placed on the palm and tossed into the air, then greeted with the palm.</li>
<li>The number of stones received will be counted on the back of the palm and counted as points.</li>
<li>Also known as selambut and stone seven.</li>
<h3>3. Go or Weiqi</h3>
<img src="pictures/download.jpg" height=300px,width=300px>
<li>Played in pairs using black and white pieces</li>
<li>Dominate a larger area of the board than the opponent to win.</li>
<h3>4. Chinese Yoyo or Diablo</h3>
<img src="pictures/diabloe 3.jpg" height=300px,width=300px>
<li>Can be played individually.</li>
<li>A yoyo tied to a string and held on both sticks in the hand. This stick allows the yoyo to spin on the rope and prevent it from falling.</li>
<h3>5. Chaturanga</h3>
<img src="pictures/caturanga.jpg" height=300px,width=300px>
<li>A chess-like game played by two players.</li>
<li>Like a war simulation to show the strength of the army.</li>
<li>Victory depends on successfully conquering the opponent, especially defeating the king.</li>
<h3>6. Paramapadham</h3>
<img src="pictures/para.jpg" height=300px,width=300px>
<li>Like snake checkers</li>
<li>Played by two to four people. </li>
<li>Move according to the number of the dice thrown.</li>
<li>The player who reaches the finish line the fastest wins.</li>
<h3>7. Sepuk Raga</h3>
<img src="pictures/raga.jpg" height=300px,width=300px>
<li>Existed since the time of the Malacca Malay Sultanate.</li>
<li>A player tosses a rattan ball to his friend using his hands.</li>
<li>His friend will carry the ball by using his feet several times before kicking towards other players.</li>
<li>Partners will take it in turns to hold and control the ball so that it does not fall to the ground.</li>
</ul>
</div>
</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>