fixed triangle disappearing after window resize!
This commit is contained in:
parent
382ff117db
commit
1a9fb03ffb
|
@ -85,16 +85,6 @@ function create_triangle() {
|
|||
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);
|
||||
|
||||
return link;
|
||||
|
|
Loading…
Reference in a new issue