From dc59e79169d8b6e04215ac5be3c1d98a5402bb33 Mon Sep 17 00:00:00 2001 From: "Glitch (isitjasonsbirthday)" Date: Mon, 7 Oct 2019 02:14:13 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=AE=F0=9F=91=BC=20Checkpoint=20./style?= =?UTF-8?q?.css:7435365/1742=20./script.js:7435365/4877=20./index.html:743?= =?UTF-8?q?5365/1832?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 15 +++++++++------ script.js | 21 +++++++++++++-------- style.css | 19 ++++++++++++++----- 3 files changed, 36 insertions(+), 19 deletions(-) diff --git a/index.html b/index.html index 80f81a9..68d5154 100644 --- a/index.html +++ b/index.html @@ -2,13 +2,16 @@ Is it Jason's Birthday? - - - + + + - - + + @@ -23,7 +26,7 @@
- + π diff --git a/script.js b/script.js index 3798071..9c875cd 100644 --- a/script.js +++ b/script.js @@ -6,7 +6,8 @@ var birthday = { check: function() { if (this.faking) return; this.now = new Date(); - if (this.now.getDate() == this.day && this.now.getMonth() + 1 == this.month) this.activate(); + if (this.now.getDate() == this.day && this.now.getMonth() + 1 == this.month) + this.activate(); else this.deactivate(); }, activate: function() { @@ -28,7 +29,7 @@ var birthday = { setTimeout(function() { birthday.faking = false; birthday.deactivate(); - }, 5000) + }, 5000); } }; @@ -80,11 +81,15 @@ var elementClass = { window.onload = function() { birthday.check(); - - document.getElementById('pilink').addEventListener('click', function(e) { - e.preventDefault(); - birthday.fakeit(); - }, false) + + document.getElementById("pilink").addEventListener( + "click", + function(e) { + e.preventDefault(); + birthday.fakeit(); + }, + false + ); }; window.addEventListener( @@ -97,4 +102,4 @@ window.addEventListener( window.setInterval(function() { birthday.check(); -}, 5000); \ No newline at end of file +}, 5000); diff --git a/style.css b/style.css index 75c8d75..240e6d3 100644 --- a/style.css +++ b/style.css @@ -8,7 +8,7 @@ body { #confetti { position: fixed; - top:0; + top: 0; left: 0; z-index: 1; } @@ -27,7 +27,7 @@ body { transform: translate(-50%, -50%); margin: 0; padding: 1vw; - font-family: 'Kanit', sans-serif; + font-family: "Kanit", sans-serif; font-size: 16vw; } @@ -35,7 +35,7 @@ body { position: fixed; bottom: 1vw; right: 1vw; - font-family: 'Times New Roman', serif; + font-family: "Times New Roman", serif; font-size: 1.2vw; font-size: 20px; text-decoration: none; @@ -51,8 +51,17 @@ p.nope { } p.yep { - background-image: linear-gradient(to right, violet, indigo, blue, green, yellow, orange, red); + background-image: linear-gradient( + to right, + violet, + indigo, + blue, + green, + yellow, + orange, + red + ); background-clip: text; -webkit-background-clip: text; color: transparent; -} \ No newline at end of file +}