Skip to content

Commit

Permalink
guess what
Browse files Browse the repository at this point in the history
  • Loading branch information
misopog authored Nov 29, 2023
1 parent 3c11d60 commit 8b5c5aa
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# start
my simple startpage
# start
my simple startpage
12 changes: 11 additions & 1 deletion assets/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,14 @@ titleChanger = (text, delay) => {
}, delay);
};

titleChanger(["homepage", "made by misopog"], 2000);
titleChanger(["startpage", "made by misopog", "misopog.xyz"], 2000);


window.onload = function() {
setInterval(function(){
var date = new Date();
var displayTime = date.toLocaleTimeString();

document.getElementById('clock').innerHTML = displayTime;
}, 1000); // 1000 milliseconds = 1 second
}
13 changes: 5 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>homepage</title>
<title>startpage</title>
<link rel="stylesheet" href="./assets/style.css">
</head>
<body>

<script src="./assets/index.js"></script>


<div class="fadein1">
<h1>homepage</h1>
<p>just another boring homepage</p>
<h1>startpage</h1>
<p>the time is</p><p id="clock"></p>

<form action="https://duckduckgo.com/" method="GET">
<input autofocus
Expand Down Expand Up @@ -53,9 +53,6 @@ <h1>homepage</h1>

</nav>
</div>
<script src="./assets/index.js"></script>
</body>
<footer>


</footer>
</html>

0 comments on commit 8b5c5aa

Please sign in to comment.