{"version":3,"file":"../mobilejs.js","names":["mobileSlider","$","window","width","each","index","element","parent","find","length","$backup","clone","removeClass","addClass","append","appendTo","owlCarousel","loop","margin","responsiveClass","items","autoplay","autoplayTimeout","smartSpeed","replaceWith","document","ready","resize_mobileslider_timeout","on","clearTimeout","setTimeout","windowSize","$dropdownToggle","mobileScrollCheck","mobileScrollInitialized","lastScroll","scroll","event","st","this","scrollTop","toggleLabel","data","after","siblings","wrap","click","e","slideUp","css","slideDown","preventDefault","togDiv","is","location","href","attr","prev","resize_scrollinit_timeout"],"sources":["mobilejs.js"],"mappings":"AAAA,aAeoF,SAASA,eAC1EC,EAAEC,QAAQC,QACV,IAEfF,EAAE,kBAAkBG,MAAK,SAAUC,EAAOC,GAExC,GAAiE,IAA7DL,EAAEK,GAASC,SAASC,KAAK,yBAAyBC,OAAc,CAElE,IAAIC,EAAUT,EAAEK,GAASK,QACzBD,EAAQE,YAAY,iBAAiBC,SAAS,wBAC9CZ,EAAE,mEAAmEa,OAAOJ,GAASK,SAASd,EAAEK,GAASC,UAEzGN,EAAEK,GAASU,YAAY,CACrBC,MAAM,EACNC,OAAQ,GACRC,iBAAiB,EACjBC,MAAO,EACPC,UAAU,EACVC,gBAAiB,IACjBC,WAAY,KAEhB,CACF,IAGAtB,EAAE,kBAAkBG,MAAK,SAAUC,EAAOC,GACxC,GAAIL,EAAEK,GAASC,SAASC,KAAK,yBAAyBC,OAAS,EAAG,CAChE,IAAIC,EAAUT,EAAEK,GAASC,SAASC,KAAK,yBACvCE,EAAQE,YAAY,wBAAwBC,SAAS,iBACrDZ,EAAEK,GAASkB,YAAYd,EACzB,CACF,GAEJ,CACAT,EAAEwB,UAAUC,OAAM,WAIhB,IAAIC,EAFJ3B,eAGAC,EAAEC,QAAQ0B,GAAG,UAAU,WACrBC,aAAaF,GACbA,EAA8BG,WAAW9B,aAAc,IACzD,GACF,IAEA,IAAI+B,WAAa9B,EAAEC,QAAQC,QACvB6B,gBAAkB/B,EAAE,oBAgCxB,S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AO5C,SAAS,YAE9B,GACF,IAgCAZ,EAAEwB,UAAUC,OAAM,WAIhB,IAAIgC,EAFJzB,oBAGAhC,EAAEC,QAAQ0B,GAAG,UAAU,WACiB,GAAlC1B,OAAOgC,0BACTL,aAAa6B,GACbA,EAA4B5B,WAAWG,kBAAmB,KAE9D,GACF","sourcesContent":["/*footer accordian start*/\n/* jQuery(document).ready(function(){ \n\tvar windowSize = $(window).width();\n\tif (windowSize < 768) { \n\t\tjQuery('.block-bottom-one h4').click(function() {\n\t\tjQuery(this).parent().siblings('.block-bottom-one').find('h4').removeClass('activate');\n\t\tjQuery(this).parent().siblings('.block-bottom-one').find('.footer-ms').slideUp(250);\n\t\tjQuery(this).next('.footer-ms').slideToggle(250);\n\t\tjQuery(this).next('.footer-ms').children('.block-bottom-one').find('.footer-ms').slideUp(250);\n\t\tjQuery(this).next('.footer-ms').children('.block-bottom-one').find('h4').removeClass('activate');\n\t\tjQuery(this).toggleClass('activate');\n\t\treturn false;\n\t\t}); \n\t};\t\t\n\t}); */\n\n/*footer accordian end*/\t\n\n\n/*global mobile slider*/\nfunction mobileSlider(){\n\n\tvar windowSize = $(window).width();\n\tif (windowSize < 768) {\n\n\t\t//cycle mobile slider elements\n\t\t$('.mobile-slider').each(function(index, element) {\n\n\t\t\t//only proceed with activation if it hasn't been done before (parent doesn't have a backup)\n\t\t\tif ($(element).parent().find('.mobile-slider-backup').length === 0) {\n\n\t\t\t\t//create desktop backup and append to parent\n\t\t\t\tvar $backup = $(element).clone();\n\t\t\t\t$backup.removeClass('mobile-slider').addClass('mobile-slider-backup')\n\t\t\t\t$('
')\n\t\t\t\t\t.append($backup)\n\t\t\t\t\t.appendTo($(element).parent())\n\t\t\t\t;\n\n\t\t\t\t//activate slider\n\t\t\t\t$(element).owlCarousel({\n\t\t\t\t\tloop: true,\n\t\t\t\t\tmargin: 10,\n\t\t\t\t\tresponsiveClass: true,\n\t\t\t\t\titems: 1,\n\t\t\t\t\tautoplay: true,\n\t\t\t\t\tautoplayTimeout: 3000,\n\t\t\t\t\tsmartSpeed: 800\n\t\t\t\t});\n\t\t\t}\n\t\t})\n\n\t} else {\n\t\t//viewport is now desktop size: revert to desktop (backup) slider if needed.\n\t\t$('.mobile-slider').each(function (index, element) {\n\t\t\tif ($(element).parent().find('.mobile-slider-backup').length > 0) {\n\t\t\t\tlet $backup = $(element).parent().find('.mobile-slider-backup');\n\t\t\t\t$backup.removeClass('mobile-slider-backup').addClass('mobile-slider');\n\t\t\t\t$(element).replaceWith($backup);\n\t\t\t}\n\t\t})\n\t}\n}\n\n$(document).ready(function() {\n\n\t//initial call\n\tmobileSlider();\n\n\t//on-resize call, with throttle\n\tvar resize_mobileslider_timeout;\n\t$(window).on('resize',\n\t\tfunction(){\n\t\t\tclearTimeout(resize_mobileslider_timeout);\n\t\t\tresize_mobileslider_timeout = setTimeout(mobileSlider, 250);\n\t\t}\n\t);\n});\n\n/*global mobile slider end*/\n\n\n/*mobile menu accordian*/\nvar windowSize = $(window).width();\nvar $dropdownToggle = $('.dropdown-toggle');\n$dropdownToggle.each(function() {\n\tvar toggleLabel = $(this).data('label');\n\tif (typeof toggleLabel == 'undefined') {\n\t\ttoggleLabel = 'Dropdown Toggle';\n\t}\n\t$(this).after('');\n\t$(this)\n\t\t.siblings('.child-trigger')\n\t\t.wrap('');\n});\n\n$('#sideLeftPushy .panel-heading').click(function (e){\n\t$('.active').slideUp(350).removeClass('active');\n\t$('.activate').removeClass('activate');\n\n\tif ($(this).siblings('.dropdown-menu').css('display') != 'block') {\n\t\t$(this)\n\t\t\t.siblings('.dropdown-menu')\n\t\t\t.addClass('active')\n\t\t\t.slideDown('slow');\n\t\t$(this).addClass('activate');\n\t}\n});\n\n\n\t\n////****tocuh event for mobile when click on first time get enable dropdown and redirect on second click****////\n $(function() {\n \n $(\"#sideLeftPushy .dropdown-toggle\").on('tap', function(e) { // Mobile browsers only\n e.preventDefault(); // Stop from following link\n\t var togDiv = $(this).parent().find(\"ul.dropdown-menu\")[0];\t\n\t if($(togDiv).is(\":visible\") == true) {\n\t\t window.location.href = $(this).attr(\"href\");\n\t }\n\t else {\n\t\t$('.active').slideUp(350).removeClass('active');\n\t\t$('.activate').removeClass('activate');\n\t\t$(togDiv).addClass('active').slideDown('slow');\n\t\t$(togDiv).prev().addClass('activate');\n\t }\n });\n});\n\t\n\nfunction mobileScrollCheck() {\n\tvar windowSize = $(window).width();\n\tif (windowSize < 768) {\n\t\twindow.mobileScrollInitialized = true;\n //Keep track of last scroll\n var lastScroll = 0;\n $(window).scroll(function(event){\n //Sets the current scroll position\n var st = $(this).scrollTop();\n\t\t //alert(st+'--'+lastScroll);\n //Determines up-or-down scrolling\n if(st==0){\n\t\t\t //alert(1);\n\t\t\t $(\".mobile-view\").removeClass(\"headroom-not-top\");\n\t\t\t $(\".mobile-view\").addClass(\"headroom-top\");\n\t\t } \n\t\t else if (st > lastScroll){\n //Replace this with your function call for downward-scrolling\n $(\".mobile-view\").addClass(\"headroom-not-top headroom-unpinned\");\n\t\t\t $(\".mobile-view\").removeClass(\"headroom-pinned headroom-top\");\n }\n else {\n //Replace this with your function call for upward-scrolling\n $(\".mobile-view\").addClass(\"headroom-pinned\");\n $(\".mobile-view\").removeClass(\"headroom-unpinned\");\n }\n //Updates scroll position\n lastScroll = st;\t\t \n\n });\n\t};\n};\n\n$(document).ready(function() {\n\n\t//initial call\n\tmobileScrollCheck();\n\n\t//on-resize call, with throttle, if the mobile scroll hasn't been initialized yet.\n\tvar resize_scrollinit_timeout;\n\t$(window).on('resize',\n\t\tfunction(){\n\t\t\tif (window.mobileScrollInitialized != true) {\n\t\t\t\tclearTimeout(resize_scrollinit_timeout);\n\t\t\t\tresize_scrollinit_timeout = setTimeout(mobileScrollCheck, 250);\n\t\t\t}\n\t\t}\n\t);\n});"]}