commit before sleep
This commit is contained in:
parent
41311865ff
commit
0bf1eec968
25
index.css
25
index.css
@ -12,3 +12,28 @@
|
||||
body {
|
||||
background-color: #4C4E52;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Trebuchet MS', sans-serif;
|
||||
}
|
||||
|
||||
* {
|
||||
scrollbar-color: #00ffe4 #ff0000;
|
||||
}
|
||||
|
||||
a:link {
|
||||
color: fuchsia;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:visited {
|
||||
color: orange;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
color: lime;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:active {
|
||||
color: pink;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
16
index.html
16
index.html
@ -1,8 +1,20 @@
|
||||
<div id="main">
|
||||
<h1>Goodayy</h1>
|
||||
<h1>Bonjour</h1>
|
||||
Welcome to my personal website! I hope you have a good time<br/>
|
||||
Feel free to click the links above for more content!<br/>
|
||||
Also, see below for links to my other situations<br/>
|
||||
<ol>
|
||||
Internal:
|
||||
<li><a href="theunderlandcouk" >theunderland webpages (internal link)</a></li>
|
||||
<li><a href="experiments.html" >Experiments (internal link)</a></li>
|
||||
<br/>
|
||||
External:
|
||||
<li><a href="https://github.com/DeaDvey" >Github (external link)</a></li>
|
||||
<li><a href="https://gitlab.com/deadvey" >Gitlab (external link)</a></li>
|
||||
<li><a href="https://mastodon.social/@DeaDvey" >Mastadon.social (external link)</a></li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<script src="template.js">
|
||||
</script>
|
||||
|
||||
|
||||
|
12
template.js
12
template.js
@ -1,10 +1,9 @@
|
||||
let div = document.getElementById('main');
|
||||
let divText = div.textContent || div.innerText;
|
||||
let divText = div.innerHTML;
|
||||
|
||||
console.log(divText);
|
||||
|
||||
let newPageHTML = `<!DOCTYPE html>
|
||||
<html>
|
||||
let newPageHTML = `
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<title>DeaDvey's Domain</title>
|
||||
@ -12,15 +11,14 @@ let newPageHTML = `<!DOCTYPE html>
|
||||
<link rel="stylesheet" type="text/css" href="index.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="header">
|
||||
<img class="header-image" width="400px" src="header-image.png"></img>
|
||||
<div class="header main">
|
||||
<img class="header-image" /><br/><a href="https://deadvey.xyz">Home page</a> <a href="../blog">Blogs</a> <a href="../videos">Videos</a><hr/>
|
||||
</div>
|
||||
<div class="main">
|
||||
${divText}
|
||||
</div>
|
||||
<div class="footer">
|
||||
</div>
|
||||
</body>
|
||||
</html>`
|
||||
</body>`
|
||||
|
||||
document.body.innerHTML = newPageHTML
|
||||
|
Loading…
Reference in New Issue
Block a user