From 3c739ce35c080572bbf80e9bb86aef2a402dfa15 Mon Sep 17 00:00:00 2001 From: igna Date: Mon, 6 Sep 2021 23:57:58 +0000 Subject: [PATCH] i hope this is last commit --- index.html | 12 +++--- script.js | 124 ----------------------------------------------------- 2 files changed, 5 insertions(+), 131 deletions(-) diff --git a/index.html b/index.html index 63abb6f..2bbf45a 100644 --- a/index.html +++ b/index.html @@ -1,9 +1,8 @@ - tixte.gifts - loading + tixte.gifts - home - - + tixte.gifts - home @@ -19,9 +18,9 @@ | | / _` | | '_ \ / _` | | | | (_| | | | | | | (_| | |_| \__, | |_| |_| \__,_| - |___/ + |___/ - igna#1337 | Discord | bio | steam | matrix + igna#1337 | Discord | Bio | Steam | Matrix @@ -32,5 +31,4 @@ - - \ No newline at end of file + \ No newline at end of file diff --git a/script.js b/script.js index 7a54f99..b7c90f9 100644 --- a/script.js +++ b/script.js @@ -1,26 +1,3 @@ -//Clock -function getTime() { - var date = new Date(); - var h = date.getHours() <= 9 ? "0" + date.getHours() : date.getHours(); - var m = date.getMinutes() <= 9 ? "0" + date.getMinutes() : date.getMinutes(); - var s = date.getSeconds() <= 9 ? "0" + date.getSeconds() : date.getSeconds(); - $("#time").text(`${h}:${m}:${s}`); -} -setInterval(getTime, 1000); -getTime(); - -//Colored Text -let colorsArr = ["red", "cyan", "purple", "orange"]; -let colori = 0; -setInterval(() => { - document.documentElement.style.setProperty("--color", colorsArr[colori]); - if (colori == colorsArr.length - 1) { - colori = 0; - } else { - colori++; - } -}, 2000); - //Video volume document.getElementById("vid").volume = 0.6; @@ -44,107 +21,6 @@ function main() { $("#clickToPlay").css("display", "none"); }, 1050); document.getElementById("vid").play(); - //Border - borderTop = 0; - borderRight = 0; - borderBottom = 0; - borderLeft = 0; - function topBorder() { - let int = setInterval(() => { - borderTop++; - if (borderTop <= 100) { - $("#borderTop").css("width", borderTop + "%"); - } else { - rightBorder(); - clearInterval(int); - $("#borderTop").css({ left: "", right: "0" }); - setTimeout(() => { - let int = setInterval(() => { - borderTop--; - if (borderTop >= 0) { - $("#borderTop").css("width", borderTop + "%"); - } else { - $("#borderTop").css({ right: "", left: "0" }); - clearInterval(int); - } - }, 7); - }, 250); - } - }, 7); - } - function rightBorder() { - let int = setInterval(() => { - borderRight++; - if (borderRight <= 100) { - $("#borderRight").css("height", borderRight + "%"); - } else { - bottomBorder(); - clearInterval(int); - $("#borderRight").css({ top: "", bottom: "0" }); - - setTimeout(() => { - let int = setInterval(() => { - borderRight--; - if (borderRight >= 0) { - $("#borderRight").css("height", borderRight + "%"); - } else { - $("#borderRight").css({ bottom: "", top: "0" }); - clearInterval(int); - } - }, 5); - }, 450); - } - }, 5); - } - function bottomBorder() { - let int = setInterval(() => { - borderBottom++; - if (borderBottom <= 100) { - $("#borderBottom").css("width", borderBottom + "%"); - } else { - leftBorder(); - clearInterval(int); - $("#borderBottom").css({ right: "", left: "0" }); - - setTimeout(() => { - let int = setInterval(() => { - borderBottom--; - if (borderBottom >= 0) { - $("#borderBottom").css("width", borderBottom + "%"); - } else { - $("#borderBottom").css({ left: "", right: "0" }); - clearInterval(int); - } - }, 7); - }, 250); - } - }, 7); - } - function leftBorder() { - let int = setInterval(() => { - borderLeft++; - if (borderLeft <= 100) { - $("#borderLeft").css("height", borderLeft + "%"); - } else { - topBorder(); - clearInterval(int); - $("#borderLeft").css({ bottom: "", top: "0" }); - - setTimeout(() => { - let int = setInterval(() => { - borderLeft--; - if (borderLeft >= 0) { - $("#borderLeft").css("height", borderLeft + "%"); - } else { - $("#borderLeft").css({ top: "", bottom: "0" }); - clearInterval(int); - } - }, 5); - }, 450); - } - }, 5); - } - topBorder(); } //Start Main Function