-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHTML TEST.html
More file actions
64 lines (57 loc) · 2.36 KB
/
HTML TEST.html
File metadata and controls
64 lines (57 loc) · 2.36 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
<!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">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<title>Platbytes</title>
</head>
<body style="background-color:dodgerblue;">
<h1 style="color:white; text-align:center;">PLATBYTES </h1>
<h1>This is currently an information based website </h1>
<h1 style="display:inline;" >This website is currently managed by </h1><h1 style="display:inline; color:orange;">Peter Hendricks</h1>
<br>
<h1 style="display:inline;">and</h1> <h1 style="color:tomato; display:inline;">Nikolai Koning<h1/>
<h2>Welcome to Platbytes Community Forums for all the information you will ever need</h2>
<p>You can learn about the following topics</p>
<ul style="text-align:center;">
<a href="southAfricanHeritage.php"><li>South African Heritage</li></a>
<a href="capeTown.php"><li>Cape Town Information</li></a>
<a href="postComment.php"><li>Comment Section</li></a>
</ul>
<p id="demo">Welcome to Platbytes this Is just a small Snippet of java-script</p>
<script>
function myFunction() {
document.getElementById("demo").style.fontSize = "25px";
document.getElementById("demo").style.color = "red";
document.getElementById("demo").style.backgroundColor = "black";
}
</script>
<button type="button" onclick="myFunction()">Click Me to highlight the above statement !</button>
<br>
<button type="button"
onclick="document.getElementById('date').innerHTML = Date()">
Display Date and Time.</button>
<p id="date"></p>
<h1>Historical Pictures of Cape Town</h1>
<p>You can switch between the two images below </p>
<script>
function light(sw) {
var pic;
if (sw == 0) {
pic = "cape-town1950.jpg"
} else {
pic = "cape-town2022.jpg"
}
document.getElementById('myImage').src = pic;
}
</script>
<img id="myImage" src="cape-town2022.jpg" width="350" height="250">
<p>
<br>
<button type="button" onclick="light(1)">Cape Town 2022</button>
<button type="button" onclick="light(0)">Cape Town 1950</button>
</p>
</body>
</html>