{"version":3,"file":"custom.min.js","sources":["custom.js"],"sourcesContent":["// - - - - -\n// Object.find()\n// - - - - -\nif (!Array.prototype.find) {\n Object.defineProperty(Array.prototype, 'find', {\n value: function value(predicate) {\n if (this == null) {\n throw new TypeError('\"this\" is null or not defined');\n }\n var o = Object(this);\n var len = o.length >>> 0;\n if (typeof predicate !== 'function') {\n throw new TypeError('predicate must be a function');\n }\n var thisArg = arguments[1];\n var k = 0;\n while (k < len) {\n var kValue = o[k];\n if (predicate.call(thisArg, kValue, k, o)) {\n return kValue;\n }\n k++;\n }\n return undefined;\n },\n configurable: true,\n writable: true\n });\n}\n// This document ready syntax supports use of the $ alias in jQuery no conflict mode. See README.md for more info and alternatives.\njQuery(document).ready(function ($) {\n //desktop colors\n var colorDesk = $(\".headerDesk\").find('.sub-menu li a').css('color');\n var backgroundDesk = $(\".headerDesk\").find('.mainNav').css('background-color');\n var backgroundOriginalDesk = $(\".headerDesk\").find('.sub-menu').css('background-color');\n\n //mobile colors\n var colorMob = $(\".headerMobile--main\").css('color');\n var backgroundMob = $(\".headerMobile\").css('background-color');\n\n //desktop: animation for submenu\n $(\".headerDesk\").find(\".menu-item\").hover(function () {\n if ($(this).find('.sub-menu').length !== 0) {\n $(this).addClass(\"dropdown\");\n $(this).children(\".sub-menu\").stop(true, true).slideDown(\"slow\", function () {\n $(this).css(\"display\", \"flex\");\n });\n }\n }, function () {\n $(this).removeClass(\"dropdown\");\n $(this).children(\".sub-menu\").slideUp(\"slow\", function () {});\n });\n\n //desktop: changing background and text color on hover\n $(\".headerDesk\").find(\".sub-menu .menu-item\").hover(function () {\n $(this).children('a').css('color', backgroundDesk);\n $(this).css('background-color', colorDesk);\n }, function () {\n $(this).children('a').css('color', colorDesk);\n $(this).css('background-color', backgroundOriginalDesk);\n });\n $(\".headerMobile\").find(\".menu-item-has-children\").append(\"