fixed triangle disappearing after window resize!

This commit is contained in:
mellodoot 2023-03-18 04:59:45 +00:00
parent 382ff117db
commit 1a9fb03ffb
No known key found for this signature in database
GPG key ID: FDF03EEFB7BA59B6

View file

@ -85,16 +85,6 @@ function create_triangle() {
this.style.transform = "initial"; this.style.transform = "initial";
}; };
window.onresize = function () {
if (window.innerWidth <= 720) {
triangle.style.width = "6rem";
triangle.style.right = "-6rem";
} else {
triangle.style.width = "120px";
triangle.style.right = "-120px";
}
}
link.appendChild(triangle); link.appendChild(triangle);
return link; return link;