AstroCom-API/public/assets/js/landing.js

36 lines
849 B
JavaScript

// dotbrew 2024
let ass = 0;
function switchit() {
console.log("ass");
document.querySelector(".text-wrapper").style = "";
document.querySelector(".text-wrapper").firstElementChild.remove();
var c = document.querySelector(".text-wrapper").firstElementChild.cloneNode(true);
c.innerHTML = "";
document.querySelector(".text-wrapper").appendChild(c);
};
function scroll() {
document.querySelector(".text-wrapper").style.transition = "top 0.5s ease";
document.querySelector(".text-wrapper").style.top = "-50px";
setTimeout(switchit, 510)
};
function chgtext(tex) {
var c = document.querySelector(".text-wrapper").lastElementChild.innerHTML = tex;
scroll();
};
$(document).ready(function() {
$(".fadein").fadeIn(1250);
});
$("#signin").on("click", function() {
$(".signinmenu").slideDown();
} );