-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
98 lines (94 loc) · 3.07 KB
/
index.html
File metadata and controls
98 lines (94 loc) · 3.07 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="This is my little studio, tucked away at the corner of the internet." />
<title>mtch's studio</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link href="./style.css" rel="stylesheet" type="text/css" media="all" />
<script>
function includeHTML() {
var z, i, elmnt, file, xhttp;
/*loop through a collection of all HTML elements:*/
z = document.getElementsByTagName("*");
for (i = 0; i < z.length; i++) {
elmnt = z[i];
/*search for elements with a certain attribute:*/
file = elmnt.getAttribute("w3-include-html");
if (file) {
/*make an HTTP request using the attribute value as the file name:*/
xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
if (this.readyState == 4) {
if (this.status == 200) {
elmnt.innerHTML = this.responseText;
}
if (this.status == 404) {
elmnt.innerHTML = "Page not found.";
}
/*remove the attribute, and call this function once more:*/
elmnt.removeAttribute("w3-include-html");
includeHTML();
}
};
xhttp.open("GET", file, true);
xhttp.send();
/*exit the function:*/
return;
}
}
}
</script>
</head>
<body>
<div id="container">
<table>
<tbody>
<tr>
<td id="maintd">
<div class="box" id="mainbox">
<h2 style="display: inline;">
HOMEPAGE
</h2>
<br />
<p class="gradient-text2">
<b></b>
</p>
</div>
<div class="box" id="mainbox2" style="margin-top: 10px">
<a href="https://www.youtube.com">
<div class="box3">
<img src="./images/youtube.png" alt="spotify icon" style="width: 20px;">
</div>
</a>
<a href="https://netflix.com">
<div class="box3">
<img src="./images/netflix.png" alt="netflix icon" style="width: 20px;">
</div>
</a>
<a href="https://reddit.com">
<div class="box3">
<img src="./images/reddit.png" alt="reddit icon" style="width: 20px;">
</div>
</a>
<a href="https://www.facebook.com/marketplace">
<div class="box3">
<img src="./images/facebook.png" alt="facebook icon" style="width: 20px;">
</div>
</a>
</div>
</td>
<td id="menutd">
<div w3-include-html="content.html"></div>
</td>
</tr>
</tbody>
</table>
</div>
</body>
<script>
includeHTML();
</script>
</html>