{"version":3,"sources":["../js/main.js"],"names":["$","mousemove","e","wx","window","width","wy","height","x","pageX","offsetLeft","y","pageY","offsetTop","newx","newy","each","speed","attr","TweenMax","to","AOS","init","disable","innerWidth"],"mappings":";AAAAA,EAAE,QAAQC,UAAU,SAAUC,GAE5B,IAAIC,EAAKH,EAAEI,QAAQC,QACfC,EAAKN,EAAEI,QAAQG,SAEfC,EAAIN,EAAEO,MAAQ,KAAKC,WACnBC,EAAIT,EAAEU,MAAQ,KAAKC,UAEnBC,EAAON,EAAIL,EAAK,EAChBY,EAAOJ,EAAIL,EAAK,EAIpBN,EAAE,qBAAqBgB,KAAK,WAC1B,IAAIC,EAAQjB,EAAE,MAAMkB,KAAK,cACrBlB,EAAE,MAAMkB,KAAK,iBAAgBD,IAAU,GAC3CE,SAASC,GAAGpB,EAAE,MAAO,EAAG,CAAEQ,EAAI,EAAIM,EAAOG,EAAQN,EAAI,EAAII,EAAOE,QAOpEI,IAAIC,KAAK,CACPC,QAASnB,OAAOoB,WAAa","file":"main.4d07a580.js","sourceRoot":"..\\src\\pages","sourcesContent":["$('html').mousemove(function (e) {\r\n\r\n var wx = $(window).width();\r\n var wy = $(window).height();\r\n\r\n var x = e.pageX - this.offsetLeft;\r\n var y = e.pageY - this.offsetTop;\r\n\r\n var newx = x - wx / 2;\r\n var newy = y - wy / 2;\r\n\r\n // $('span').text(newx + \", \" + newy);\r\n\r\n $('#profile-wrap div').each(function () {\r\n var speed = $(this).attr('data-speed');\r\n if ($(this).attr('data-revert')) speed *= -1;\r\n TweenMax.to($(this), 1, { x: (1 - newx * speed), y: (1 - newy * speed) });\r\n\r\n });\r\n\r\n});\r\n\r\n\r\nAOS.init({\r\n disable: window.innerWidth < 768,\r\n});\r\n\r\n// const links = document.querySelectorAll(\".page-header ul a\");\r\n\r\n// for (const link of links) {\r\n// link.addEventListener(\"click\", clickHandler);\r\n// }\r\n\r\n// function clickHandler(e) {\r\n// e.preventDefault();\r\n// const href = this.getAttribute(\"href\");\r\n// const offsetTop = document.querySelector(href).offsetTop;\r\n\r\n// scroll({\r\n// top: offsetTop,\r\n// behavior: \"smooth\"\r\n// });\r\n// }\r\n\r\n// //Get the button\r\n// let mybutton = document.getElementById(\"btn-back-to-top\");\r\n\r\n// // When the user scrolls down 20px from the top of the document, show the button\r\n// window.onscroll = function () {\r\n// scrollFunction();\r\n// };\r\n\r\n// function scrollFunction() {\r\n// if (\r\n// document.body.scrollTop > 20 ||\r\n// document.documentElement.scrollTop > 20\r\n// ) {\r\n// mybutton.style.display = \"block\";\r\n// } else {\r\n// mybutton.style.display = \"none\";\r\n// }\r\n// }\r\n// // When the user clicks on the button, scroll to the top of the document\r\n// mybutton.addEventListener(\"click\", backToTop);\r\n\r\n// function backToTop() {\r\n// document.body.scrollTop = 0;\r\n// document.documentElement.scrollTop = 0;\r\n// }"]}