Skip to content

Commit

Permalink
Change: color
Browse files Browse the repository at this point in the history
  • Loading branch information
udontur committed Jun 30, 2024
1 parent 94e97a8 commit b9d52f7
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions clock.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,12 @@
gtag('js', new Date());
gtag('config', 'G-SQB118V6BD');
</script>
<link href='https://unpkg.com/[email protected]/css/boxicons.min.css' rel='stylesheet'>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c&display=swap" rel="stylesheet">
<link rel="stylesheet" href="src/output.css">
<link rel="icon" type="image/webp" href="img/favicon.webp">
<title>Clock</title>
<style>
body {
background-color: #181818;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
font-size: 22vw;
font-family: "M PLUS Rounded 1c", sans-serif;
color: white;
margin: 0;
font-weight: 800;
cursor: default;
}
::-moz-selection {
background-color: transparent;
}
Expand All @@ -38,6 +23,18 @@
::selection {
background-color: transparent;
}
body {
height: 100vh;
font-family: "M PLUS Rounded 1c", sans-serif;
font-weight: 900;
background-color: #000000;
color: #FFFFFF;
display: flex;
justify-content: center;
align-items: center;
margin: 0;
cursor: default;
}
</style>
</head>
<body>
Expand All @@ -59,11 +56,13 @@
const minutes = now.getMinutes().toString().padStart(2, "0");
document.body.textContent = `${hours}:${minutes}`;
}
const second = get_query_string('second');
if(second === 'false'){
const second = get_query_string("second");
if(second === "false"){
document.body.style.fontSize = "34vw";
second_false();
setInterval(second_false, 1000);
} else {
document.body.style.fontSize = "22vw";
second_true();
setInterval(second_true, 1000);
}
Expand Down

0 comments on commit b9d52f7

Please sign in to comment.