{"version":3,"sources":["main.js"],"names":["$","document","ready","header","window","on","scrollTop","addClass","removeClass","toggleClass","$areas","$flipBtn","length","navigator","maxTouchPoints","msMaxTouchPoints","matchMedia","matches","this","parents","e","ctrlKey","metaKey","key","preventDefault","target","tagName","css","user-select","-webkit-user-select","-moz-user-select","-ms-user-select","-webkit-touch-callout","touch-action","jQuery"],"mappings":"AAAA,CAAA,SAAAA,GACAA,EAAAC,QAAA,EAAAC,MAAA,WACA,IAAAC,EAAAH,EAAA,SAAA,EAGAA,EAAAI,MAAA,EAAAC,GAAA,cAAA,WAKA,EAHAL,EAAAI,MAAA,EAAAE,UAAA,EAIAH,EAAAI,SAAA,cAAA,EAEAJ,EAAAK,YAAA,cAAA,CAEA,CAAA,EACAR,EAAA,sBAAA,EACAK,GAAA,QAAA,WACAL,EAAA,MAAA,EAAAS,YAAA,aAAA,CACA,CAAA,EAjBA,IAqBAC,EAAAV,EAAA,QAAA,EACAW,EAAAX,EAAA,WAAA,EAIAU,EAAAE,SAFA,iBAAAR,QAAA,EAAAS,UAAAC,gBAAA,EAAAD,UAAAE,kBAAAX,OAAAY,WAAA,mBAAA,EAAAC,QAIAP,EAAAF,YAAA,SAAA,EAAAD,SAAA,QAAA,EAEAG,EAAAF,YAAA,QAAA,EAAAD,SAAA,SAAA,GAGAI,EAAAN,GAAA,QAAA,WACAL,EAAAkB,IAAA,EAAAC,QAAA,YAAA,EAAAV,YAAA,MAAA,CACA,CAAA,CACA,CAAA,EAGAT,EAAAC,QAAA,EAAAI,GAAA,UAAA,SAAAe,GACAA,CAAAA,EAAAC,SAAAD,CAAAA,EAAAE,SAAA,MAAAF,EAAAG,KAAA,MAAAH,EAAAG,KAAA,MAAAH,EAAAG,KAAA,MAAAH,EAAAG,KACAH,EAAAI,eAAA,CAEA,CAAA,EAGAxB,EAAAC,QAAA,EAAAI,GAAA,cAAA,SAAAe,GACAA,EAAAI,eAAA,CACA,CAAA,EAGAxB,EAAAC,QAAA,EAAAI,GAAA,cAAA,SAAAe,GACA,UAAAA,EAAAK,OAAAC,SAAA,aAAAN,EAAAK,OAAAC,SACAN,EAAAI,eAAA,CAEA,CAAA,EAGAxB,EAAA,MAAA,EAAAK,GAAA,aAAA,SAAAe,GACA,UAAAA,EAAAK,OAAAC,SAAA,aAAAN,EAAAK,OAAAC,SACAN,EAAAI,eAAA,CAEA,CAAA,EAGAxB,EAAA,MAAA,EAAA2B,IAAA,CACAC,cAAA,OAEAC,sBAAA,OAEAC,mBAAA,OAEAC,kBAAA,OAEAC,wBAAA,OAEAC,eAAA,cACA,CAAA,CACA,EAAAC,MAAA","file":"main.js","sourcesContent":["(function ($) {\n $(document).ready(function () {\n var header = $('.header');\n\n // Add scroll event listener\n $(window).on('load scroll', function () {\n // Check the scroll position\n var scrollPosition = $(window).scrollTop();\n\n // Add or remove class based on the scroll position\n if (scrollPosition > 0) {\n header.addClass('fixed-header');\n } else {\n header.removeClass('fixed-header');\n }\n });\n var mobile_toggle = $('.mobile-menu .toggle');\n mobile_toggle.on('click', function () {\n $('body').toggleClass('menu-active');\n });\n\n // Detect mobile device and add class for card flip\n\n var $areas = $('.areas');\n var $flipBtn = $('.flip-btn');\n function isTouchDevice() {\n return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0 || window.matchMedia(\"(pointer: coarse)\").matches;\n }\n if ($areas.length) {\n if (isTouchDevice()) {\n $areas.removeClass('desktop').addClass('mobile');\n } else {\n $areas.removeClass('mobile').addClass('desktop');\n }\n }\n $flipBtn.on('click', function () {\n $(this).parents('.area-card').toggleClass('back');\n });\n });\n\n // Prevent copy, cut, paste, and view source via keyboard shortcuts\n $(document).on('keydown', function (e) {\n if ((e.ctrlKey || e.metaKey) && (e.key === 'c' || e.key === 'x' || e.key === 'v' || e.key === 'u')) {\n e.preventDefault();\n }\n });\n\n // Prevent right-click context menu\n $(document).on('contextmenu', function (e) {\n e.preventDefault();\n });\n\n // Prevent text selection\n $(document).on('selectstart', function (e) {\n if (e.target.tagName !== 'INPUT' && e.target.tagName !== 'TEXTAREA') {\n e.preventDefault();\n }\n });\n\n // Prevent content copy on mobile by disabling long press and text selection\n $('body').on('touchstart', function (e) {\n if (e.target.tagName !== 'INPUT' && e.target.tagName !== 'TEXTAREA') {\n e.preventDefault();\n }\n });\n\n // Disable long press context menu on mobile devices\n $('body').css({\n 'user-select': 'none',\n // Disable text selection\n '-webkit-user-select': 'none',\n // Disable text selection for Safari\n '-moz-user-select': 'none',\n // Disable text selection for Firefox\n '-ms-user-select': 'none',\n // Disable text selection for IE/Edge\n '-webkit-touch-callout': 'none',\n // Disable callout on long press for iOS\n 'touch-action': 'manipulation' // Prevent default actions on touch devices\n });\n})(jQuery);"]}