-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
98 lines (84 loc) · 2.54 KB
/
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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Popular Websites</title>
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/jpg" href="path-to-your-favicon"/>
</head>
<body>
<div class="container" id="home-page">
<h1>Computer Learing Time</h1>
<div class="button-container">
<button onclick="openWebsite('computer.html')">What is Computers ?</button>
<button onclick="openWebsite('type.html')">Input Unit</button>
<button onclick="openWebsite('pro.html')">Processing Unit</button>
<button onclick="openWebsite('out.html')">Output Unit</button>
<button onclick="openWebsite('hi.html')">History Of computers</button>
<button onclick="openWebsite('His.html')">Upgrade Window System</button>
<button onclick="openWebsite('g.html')">Generation of Computer</button>
<button onclick="openWebsite('Test.html')">Test You're Brain</button>
</div>
</div>
<div class="container hidden" id="website-page">
<button id="back-button" onclick="goBack()">Back to Home</button>
<iframe id="website-frame" src=""></iframe>
</div>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: none;
}
.container {
text-align: center;
}
.hidden {
display: none;
}
button {
margin: 10px;
padding: 10px 20px;
font-size: 18px;
cursor: pointer;
border: 8px solid red;
background-color: #0c3241;
color: white;
border-radius: 5px;
border-top-left-radius: 10px;
border-top-right-radius: 50px;
border-bottom-left-radius: 50px;
box-shadow: 8px 8px 15px rgba(235, 9, 9, 0.9);
}
button:hover {
background-color: #2b91fd;
}
iframe {
width: 100%;
height: 90vh;
border: 1px solid red;
border-radius: 20px;
}
</style>
<script>
function openWebsite(url) {
document.getElementById('home-page').classList.add('hidden');
document.getElementById('website-page').classList.remove('hidden');
document.getElementById('website-frame').src =url;
}
function goBack() {
document.getElementById('website-page').classList.add('hidden');
document.getElementById('home-page').classList.remove('hidden');
document.getElementById('website-frame').src = "";
}
</script>
</body>
</html>