-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
120 lines (116 loc) · 3.28 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
111
112
113
114
115
116
117
118
119
120
<html class="sl-theme-dark">
<head>
<title>hexlocation</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected]/cdn/themes/dark.css"
/>
<script
type="module"
src="https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected]/cdn/shoelace-autoloader.js"
></script>
</head>
<body onload="setMD()">
<div id="titlebox">
<sl-animated-image
src="https://cdn.discordapp.com/avatars/1105878237416001647/a_2d2afc42ff68960e37c52a2b80ba0cf3.gif?size=100"
alt="pfp"
id="pfp"
style="width: 100px; height: 100px"
play
>
</sl-animated-image>
<p id="name-text">hexlocation</p>
</div>
<sl-divider></sl-divider>
<div id="contentbox">
<sl-card class="card-basic" id="contentcard">
<sl-tab-group id="contenttab">
<sl-tab slot="nav" panel="abt">About Me</sl-tab>
<sl-tab slot="nav" panel="intr">Interests</sl-tab>
<sl-tab slot="nav" panel="projects">Projects</sl-tab>
<sl-tab slot="nav" panel="cnt">Contact</sl-tab>
<sl-tab slot="nav" panel="dnt">Donate</sl-tab>
<sl-tab-panel name="abt" id="abt"
>Loading...</sl-tab-panel
>
<sl-tab-panel name="intr" id="intr"
>Loading...</sl-tab-panel
>
<sl-tab-panel name="projects" id="projects"
>Loading...</sl-tab-panel
>
<sl-tab-panel name="cnt" id="cnt"
>Loading...</sl-tab-panel
>
<sl-tab-panel name="dnt" id="dnt"
>Loading...</sl-tab-panel
>
</sl-tab-group>
</sl-card>
</div>
</body>
</html>
<style>
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;500&family=Poppins&display=swap");
body {
font-family: "Open Sans";
}
#titlebox {
font-family: "Open Sans", sans-serif;
justify-content: left;
align-items: center;
display: flex;
}
#contentbox {
display: flex;
justify-content: center;
align-items: center;
}
#contentcard {
width: 1000px;
}
#pfp {
margin-left: 40%;
}
#name-text {
font-size: 30px;
margin-left: 2%;
}
</style>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script>
function setMD(){
fetch(`${window.location.href}md/about.md`).then(val => val.text()).then(resp => {
console.log(resp)
document.getElementById("abt").innerHTML = marked.parse(
resp
);
})
fetch(`${window.location.href}md/interests.md`).then(val => val.text()).then(resp => {
console.log(resp)
document.getElementById("intr").innerHTML = marked.parse(
resp
);
})
fetch(`${window.location.href}md/projects.md`).then(val => val.text()).then(resp => {
console.log(resp)
document.getElementById("projects").innerHTML = marked.parse(
resp
);
})
fetch(`${window.location.href}md/donate.md`).then(val => val.text()).then(resp => {
console.log(resp)
document.getElementById("dnt").innerHTML = marked.parse(
resp
);
})
fetch(`${window.location.href}md/contact.md`).then(val => val.text()).then(resp => {
console.log(resp)
document.getElementById("cnt").innerHTML = marked.parse(
resp
);
})
}
</script>
</codehub>