for (let i = 0; i < elements.length; i++) {
elements[i].onclick = function f1() {
for (let i = 0; i < elements.length; i++) {
setTimeout(function() {
window.location = elements[i].href;
}, 3000);
}
}
}
var href = $(this).attr('href');
let elements = document.getElementsByTagName("a");
elements[i].onclick = function f1() {
for (let i = 0; i < elements.length; i++) {
setTimeout(function() {
window.location = elements[i].href
}, 3000);
}
}
let elements = document.getElementsByTagName("a");
elements[i].onclick = function f1() {
for (let i = 0; i < elements.length; i++) {
setTimeout(function() {
window.location = elements[i].href
}, 3000);
}
}
document.addEventListener("mousemove", function (e) {
move (e.clientX, e.clientY);
});
function move (x, y) {
document.body.style.setProperty('--mouseX', (x - ww) / 30 + "deg");
document.body.style.setProperty('--mouseY', (y - wh) / 30 + "deg");
}
document.addEventListener("mousemove", function () {
move();
});
function move () {
let x = event.clientX,
y = event.clientY;
img.style.setProperty('--mX', x / 30 + "deg");
img.style.setProperty('--mY', y / 30 + "deg");
}
const lastMousePosition = { x: 0, y: 0 };
const deltaX = lastMousePosition.x - event.clientX;
const deltaY = lastMousePosition.y - event.clientY;