{"version":3,"sources":["../assets/scripts/main.js"],"names":["$","mobileSbar","e","window","width","hide","show","click","jQuery","toggle","this","text","mobSideNav","Sage","common","init","toggleClass","finalize","focus","id","addClass","blur","removeClass","page_template_page_home","slick","dots","speed","adaptiveHeight","autoplay","autoplaySpeed","arrows","prevArrow","nextArrow","about_us","UTIL","fire","func","funcname","args","namespace","undefined","loadEvents","each","document","body","className","replace","split","i","classnm","append","ready"],"mappings":"CAYA,SAAAA,GAiFA,QAAAC,KACA,GAAAC,GAAAF,EAAA,6CACAA,GAAAG,QAAAC,QAAA,IACAJ,EAAAE,GAAAG,OAEAL,EAAAE,GAAAI,OAEAN,EAAA,WAAAO,MAAA,WACAC,OAAAN,GAAAO,SACA,mBAAAT,EAAAU,MAAAC,OACAX,EAAAU,MAAAC,KAAA,aACA,aAAAX,EAAAU,MAAAC,QACAX,EAAAU,MAAAC,KAAA,qBAOA,QAAAC,KACA,GAAAV,GAAAF,EAAA,YACAA,GAAAG,QAAAC,QAAA,IACAJ,EAAAE,GAAAG,OAEAL,EAAAE,GAAAI,OAEAN,EAAA,iBAAAO,MAAA,WACAP,EAAAE,GAAAO,SACA,iBAAAT,EAAAU,MAAAC,OACAX,EAAAU,MAAAC,KAAA,aACA,aAAAX,EAAAU,MAAAC,QACAX,EAAAU,MAAAC,KAAA,mBA5GA,GAAAE,IAEAC,QACAC,KAAA,WAEAf,EAAA,gBAAAO,MAAA,WACAP,EAAA,QAAAgB,YAAA,WACAhB,EAAAU,MAAAM,YAAA,gBAGAC,SAAA,WAEAjB,EAAA,oBAAAkB,MAAA,WACAlB,EAAA,aAAAU,KAAAS,GAAA,KAAAC,SAAA,eACAC,KAAA,WACArB,EAAA,SAAAsB,YAAA,eAKAC,yBACAR,KAAA,WAEAf,EAAA,WAAAwB,OACAC,MAAA,EACAC,MAAA,IACAC,gBAAA,EACAC,UAAA,EACAC,cAAA,IACAC,QAAA,EAEAC,UAAA,+WACAC,UAAA,oYAGAf,SAAA,cAKAgB,UACAlB,KAAA,eAQAmB,GACAC,KAAA,SAAAC,EAAAC,EAAAC,GACA,GAAAH,GACAI,EAAA1B,CACAwB,GAAAG,SAAAH,EAAA,OAAAA,EACAF,EAAA,KAAAC,EACAD,EAAAA,GAAAI,EAAAH,GACAD,EAAAA,GAAA,kBAAAI,GAAAH,GAAAC,GAEAF,GACAI,EAAAH,GAAAC,GAAAC,IAGAG,WAAA,WAEAP,EAAAC,KAAA,UAGAnC,EAAA0C,KAAAC,SAAAC,KAAAC,UAAAC,QAAA,KAAA,KAAAC,MAAA,OAAA,SAAAC,EAAAC,GACAf,EAAAC,KAAAc,GACAf,EAAAC,KAAAc,EAAA,cAIAf,EAAAC,KAAA,SAAA,aAqBAlC,KAkBAW,IAEAZ,EAAA,cAAAkD,OAAA,kGAGAlD,EAAA2C,UAAAQ,MAAAjB,EAAAO,aAEAjC","file":"main.js","sourcesContent":["/* ========================================================================\n * DOM-based Routing\n * Based on http://goo.gl/EUTi53 by Paul Irish\n *\n * Only fires on body classes that match. If a body class contains a dash,\n * replace the dash with an underscore when adding it to the object below.\n *\n * .noConflict()\n * The routing is enclosed within an anonymous function so that you can\n * always reference jQuery with $, even when in .noConflict() mode.\n * ======================================================================== */\n\n (function($) {\n\n // Use this variable to set up the common and page specific functions. If you\n // rename this variable, you will also need to rename the namespace below.\n var Sage = {\n // All pages\n 'common': {\n init: function() {\n // JavaScript to be fired on all pages\n $('#nav-trigger').click(function(){\n $('#nav').toggleClass('js-show');\n $(this).toggleClass('js-closed');\n });\n },\n finalize: function() {\n // JavaScript to be fired on all pages, after page specific JS is fired\n $('input[type=text]').focus(function() {\n $('label[for=' + this.id + ']').addClass('js-active');\n }).blur(function() {\n $(\"label\").removeClass(\"js-show\");\n });\n }\n },\n // Home page\n 'page_template_page_home': {\n init: function() {\n // JavaScript to be fired on the home page template\n $('#slider').slick({\n dots: true,\n speed: 500,\n adaptiveHeight: true,\n autoplay: true,\n autoplaySpeed: 5000,\n arrows: false,\n\n prevArrow: '',\n nextArrow: ''\n });\n },\n finalize: function() {\n // JavaScript to be fired on the home page template, after the init JS\n }\n },\n // About us page, note the change from about-us to about_us.\n 'about_us': {\n init: function() {\n // JavaScript to be fired on the about us page\n }\n }\n };\n\n // The routing fires all common scripts, followed by the page specific scripts.\n // Add additional events for more control over timing e.g. a finalize event\n var UTIL = {\n fire: function(func, funcname, args) {\n var fire;\n var namespace = Sage;\n funcname = (funcname === undefined) ? 'init' : funcname;\n fire = func !== '';\n fire = fire && namespace[func];\n fire = fire && typeof namespace[func][funcname] === 'function';\n\n if (fire) {\n namespace[func][funcname](args);\n }\n },\n loadEvents: function() {\n // Fire common init JS\n UTIL.fire('common');\n\n // Fire page-specific init JS, and then finalize JS\n $.each(document.body.className.replace(/-/g, '_').split(/\\s+/), function(i, classnm) {\n UTIL.fire(classnm);\n UTIL.fire(classnm, 'finalize');\n });\n\n // Fire common finalize JS\n UTIL.fire('common', 'finalize');\n }\n };\n\n function mobileSbar(){\n var e=$(\".site-sidebar .gform_widget .gform_wrapper\");\n if($(window).width()<900) {\n $(e).hide();\n } else {\n $(e).show();\n }\n $(\".qt_btn\").click(function(){\n jQuery(e).toggle();\n if($(this).text() == 'Request a Quote') {\n $(this).text('Hide Form');\n } else if($(this).text() == 'Hide Form') {\n $(this).text('Request a Quote');\n }\n });\n }\n\n mobileSbar();\n\n function mobSideNav(){\n var e=$(\"#side_nav\");\n if($(window).width()<900) {\n $(e).hide();\n } else {\n $(e).show();\n }\n $(\"#side-trigger\").click(function(){\n $(e).toggle();\n if($(this).text() == 'View Services') {\n $(this).text('Hide Menu');\n } else if($(this).text() == 'Hide Menu') {\n $(this).text('View Services');\n }\n });\n }\n mobSideNav();\n\n $('#field_1_6').append('');\n\n // Load Events\n $(document).ready(UTIL.loadEvents);\n\n})(jQuery); // Fully reference jQuery after this point.\n"],"sourceRoot":"assets/scripts/"}