-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
110 lines (104 loc) · 2.65 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
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<html>
<head>
<title>Frames Example</title>
<style>
html, body {
height: 100%;
margin: 0;
padding: 0;
}
.container {
display: grid;
grid-template-rows: 10% 90%;
height: 100%;
}
.top-frame {
display: grid;
grid-template-columns: 25% 25% 25% 25%;
background-color: #f0f0f0;
}
.column-frame {
/* border: 1px solid white; */
padding: 10px;
cursor: pointer;
background-color: black;
color: white;
}
.column-frame:hover {
background-color: #ff9500;
/* background-color: white; */
color: black;
}
.main-frame {
/* padding: 10px; */
background-color: #fff;
overflow-y: auto;
overflow: hidden;
}
.main-frame .image-text h2 {
color: #ff9500;
}
.container .top-frame .column-frame h3 {
margin: 0;
text-align: center;
}
.container .main-frame h1 {
margin: 0;
text-align: center;
}
.main-frame .image-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
color: #fff;
font-size: 24px;
font-weight: bold;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
</style>
<script>
window.onload = function() {
var columnFrames = document.querySelectorAll('.column-frame');
var mainFrame = document.querySelector('.main-frame');
columnFrames.forEach(function(frame, index) {
frame.addEventListener('click', function() {
var buttonContent = this.innerHTML;
var folderName = "Task" + (index + 1);
var fileName = "index" + (index + 1) + ".html";
var filePath = folderName + "/" + fileName;
mainFrame.innerHTML = '<object type="text/html" data="' + filePath + '" style="width:100%;height:100%;"></object>';
});
});
}
</script>
</head>
<body>
<div class="container">
<div class="top-frame">
<div class="column-frame">
<h3>Calculator</h3>
</div>
<div class="column-frame">
<h3>Get-User-API</h3>
</div>
<div class="column-frame">
<h3>Registration Form</h3>
</div>
<div class="column-frame">
<h3>To-Do List</h3>
</div>
</div>
<div class="main-frame">
<!-- <h1>LetsGrowMore</h1> -->
<img src="images/main.jpg" alt="Default Image" style="width: 100%; height: auto;">
<div class="image-text">
<h2>LetsGrowMore</h2>
Click on any of the above hovering buttons to load the web pages.🤞
</div>
</div>
</div>
</body>
</html>