{"version":3,"sources":["main.js","plugins.js"],"names":["smoothScrollTo","anchor","duration","mq","targetY","$","offset","top","Modernizr","scrollTop","method","noop","methods","length","console","window","document","ready","load","doAnimations","elems","each","data","$this","addClass","$animationType","one","animEndEv","removeClass","AOS","init","$myCarousel","find","carousel","$firstAnimatingElems","e","$tables","wrap","fadeOut","hide","scroll","this","fadeIn","click","animate","on","$archItem","height","width","outerHeight","$pageHeight","$pageWidth","$archInner"],"mappings":"YAyIE,SAAAA,gBAAAC,GACA,GAAAC,GAAcC,IACbC,EAAAC,EAAAJ,GAAAK,SAAAC,GACAF,GAFD,cAGSG,SACRC,UAAAL,GACAF,EAAA,mBC9IF,WAYG,IAXA,GAAIQ,GACAC,EAAO,aACPC,GACA,SAAU,QAAS,QAAS,QAAS,MAAO,SAAU,QACtD,YAAa,QAAS,iBAAkB,WAAY,OAAQ,MAC5D,eAAgB,UAAW,aAAc,QAAS,OAAQ,UAC1D,YAAa,QAAS,QAEtBC,EAASD,EAAQC,OACjBC,EAAWC,OAAOD,QAAUC,OAAOD,YAEhCD,KACHH,EAASE,EAAQC,GAGZC,EAAQJ,KACTI,EAAQJ,GAAUC,MDlB9BN,EAAEW,UAAUC,MAAM,WACjBZ,EAAEU,QAAQG,KAAK,WAQZ,QAASC,GAAcC,GCKnBV,GAAAA,GAASE,iCAETQ,GAAAC,KAAA,WACI,GAACP,GAAQJ,EAAAA,MACTI,EAAkBH,EAAlBW,KAAA,YACHC,GAAAC,SAAAC,GAAAC,IAAAC,EAAA,WACJJ,EAAAK,YAAAH,OAlBDI,IAAAC,MDFFd,IAAAA,GAAgBX,EAAA,aACfU,EAAuBgB,EAAAC,KAAA,eAAAA,KAAA,iCAGxBH,GAAAI,WA0BEd,EAAae,GApBTH,EAAAE,SAAA,SAIIF,EAAY1B,GAAE,oBAAd,SAAA8B,GACIV,GAAAA,GAAiBF,EAAMD,EAAAA,eAD3BU,KAAA,iCAEAT,GAAeE,IAGlB,IANDW,GAAA/B,EAAAW,UAAAgB,KAAA,QA+BFI,KAtBFA,EAAAC,KAAA,wCACAD,EAAIL,SAAc1B,UAGlBA,EAAA,mBAAAiC,QAAA,KA6CFjC,EAAA,gBAAAkC,OACAlC,EAAAU,QAAAyB,OAAA,WACAnC,EAAAoC,MAAAhC,YAAA,IACAJ,EAAA,gBAAAqC,SAEArC,EAAA,gBAAAiC,YAGAjC,EAAA,kBAAAsC,MAAA,WAIA,MAHAtC,GAAA,aAAAuC,SACAnC,UAAA,GACA,MACA,MAKAJ,EAAAU,QAAA8B,GAAA,cAAA,WACA,GAoBDC,IApBCzC,EAAAU,QAAAgC,SACA1C,EAAAU,QAAAiC,QAuBa3C,EAAE,sBAAsB4C,cArBrC5C,EAAA,iBAAA4C,cACE5C,EAAF,mBAgBD,EACAA,GAAEU,qCAAoCM,KAAA,WACrC,GAAI6B,GAAc7C,EAAEU,MAAFiB,KAAUe,kBAA5BA,QACAI,GAAa9C,IAAAyC,EADbM,KA2BI5C,UAAUL,GAAG,wBAnBjBK,UAAAL,GAAA,uBAAAK,UAAAL,GAAA,wBAIAK,UAAAL,GAAA,uBAAAK,UAAAL,GAAA","file":"main.js","sourcesContent":["$(document).ready(function(){\n\t$(window).load(function(){\n\t\t\n\t\t// Animate on Scroll Initialize\n\t\tAOS.init();\n\t\t/* Demo Scripts for Bootstrap Carousel and Animate.css article\n\t\t* on SitePoint by Maria Antonietta Perna\n\t\t*/\n //Function to animate slider captions \n function doAnimations( elems ) {\n //Cache the animationend event in a variable\n var animEndEv = 'webkitAnimationEnd animationend';\n \n elems.each(function () {\n var $this = $(this),\n $animationType = $this.data('animation');\n $this.addClass($animationType).one(animEndEv, function () {\n $this.removeClass($animationType);\n });\n });\n }\n \n //Variables on page load \n var $myCarousel = $('.carousel'),\n $firstAnimatingElems = $myCarousel.find('.item:first').find(\"[data-animation ^= 'animated']\");\n \n //Initialize carousel \n $myCarousel.carousel();\n \n //Animate captions in first slide on page load \n doAnimations($firstAnimatingElems);\n \n //Pause carousel \n $myCarousel.carousel('pause');\n \n \n //Other slides to be animated on carousel slide event \n $myCarousel.on('slide.bs.carousel', function (e) {\n var $animatingElems = $(e.relatedTarget).find(\"[data-animation ^= 'animated']\");\n doAnimations($animatingElems);\n });\n\n\t\tvar $tables = $(document).find('table');\n\n\t\tif( $tables ) {\n\t\t\t$tables.wrap('
');\n\t\t\t$tables.addClass('table');\n\t\t}\n\n\t\t$('.loader-overlay').fadeOut(200);\n\n\t\t// HASH SCROLLING EFFECT\n\t\t// var hashURL = location.hash;\n\n\t\t// if(hashURL != '' || hashURL.length > 1){\n\n\t\t// \t$('html, body').scrollTop(0);\n\t\t// \t$('html').css({display: 'block'});\n\t\t// \tsmoothScrollTo(hashURL);\n\t\t// } else {\n\t\t// \t$('html').css({display: 'block'});\n\t\t// }\n\n\t\t// MOBILE MENU LAYOUT\n\t\t// $('.sidepanel .menu > .menu-item-has-children').addClass('dropdown row-size');\n\t\t// $('.sidepanel .menu > .menu-item-has-children > a').each(function(){\n\t\t// \tvar $curr = $(this);\n\t\t// \t$curr.addClass('column-top nav-title');\n\t\t// \t$('').insertAfter( $curr );\t\t\t\n\t\t// });\n\t\t// $('.sidepanel .menu > .menu-item-has-children > .sub-menu').addClass('dropdown-menu');\n\t\t// // MOBILE MENU\n\t\t// if(!$('.sidepanel').hasClass('sidepanel-out')){\n\t\t// \t$('.close-sidemenu').hide();\n\t\t// }\n\t\t// $('.mobile-menu-btn').click(function(){\n\t\t// \t$('.sidepanel').toggleClass(\"sidepanel-out\" , 1000);\n\t\t// \t$(this).toggleClass('toggle-mobile-menu', 1000);\n\t\t// \tif(!$('.sidepanel').hasClass('sidepanel-out')){\n\t\t// \t\t$('.close-sidemenu').hide();\n\t\t// \t} else {\n\t\t// \t\t$('.close-sidemenu').show();\n\t\t// \t}\n\t\t// });\n\t\t// $('.close-sidemenu').click(function(){\n\t\t// \t$('.sidepanel').toggleClass(\"sidepanel-out\", 1000);\n\t\t// \t$(this).hide();\n\t\t// });\n\t\t// $('.sidepanel li a').click(function(){\n\t\t// \t$(this).find('.fa-plus').toggleClass('fa-minus');\n\t\t// });\n\n\t\t// BACK TO TOP\n\t\t$('.back-to-top').hide(); // HIDE ON FIRST LOAD\n\t\t$(window).scroll(function () {\n\t\t\tif ($(this).scrollTop() > 100) {\n\t\t\t\t$('.back-to-top').fadeIn();\n\t\t\t} else {\n\t\t\t\t$('.back-to-top').fadeOut();\n\t\t\t}\n\t\t});\n\t\t$('.back-to-top a').click(function () {\n\t\t\t$('body,html').animate({\n\t\t\t\tscrollTop: 0\n\t\t\t}, 800);\n\t\t\treturn false;\n\t\t});\n\t});\n\n\t// CODES THAT INCLUDE ON LOAD AND RESIZE AT THE SAME TIME\n\t$(window).on('load resize', function(){\n\t\tvar $pageHeight = $(window).height(),\n\t\t$pageWidth = $(window).width(),\n\t\t$navHeight = $('header.main-header').outerHeight(),\n\t\t$footerHeight = $('footer.footer').outerHeight(),\n\t\t$mainWrapper = $('.wrapper-holder');\n\n\t\t// if( $mainWrapper.hasClass('not-sticky') ) {\n\t\t// \t$('.wrapper-holder').css({\n\t\t// \t\t'min-height': $pageHeight - $navHeight,\n\t\t// \t\t'padding-bottom': $footerHeight + 20\n\t\t// \t});\n\t\t// } else {\n\t\t// \t$('.wrapper-holder').css({\n\t\t// \t\t'min-height': $pageHeight - $navHeight,\n\t\t// \t\t// 'margin-top': $navHeight,\n\t\t// \t\t'padding-bottom': $footerHeight + 20\n\t\t// \t});\n\t\t// }\n\n\t\t// ARCHIVE PAGE\n\t\tvar $archItem = 0;\n\t\t$('.archive-box-layout .archive-item').each(function(){\n\t\t\tvar $archInner = $(this).find('.archive-inner').height();\n\t\t\tif( $archInner > $archItem ) { $archItem = $archInner; }\n\t\t});\n\n\t\t/* MODERNIZR LAYOUT - This serves as the the media query inside the Javascript */\n\t\tif( Modernizr.mq('(min-width: 1200px)') ) {\n\t\t\t// $('.archive-box-layout .archive-item .archive-inner').height( $archItem );\n\t\t}\n\t\telse if( Modernizr.mq('(min-width: 992px)') && Modernizr.mq('(max-width: 1199px)') ) {\n\t\t\t// CODES FOR MEDIUM DEVICES HERE\n\t\t\t// $('.archive-box-layout .archive-item .archive-inner').height( $archItem );\n\t\t}\n\t\telse if( Modernizr.mq('(max-width: 991px)') && Modernizr.mq('(min-width: 768px)')){\n\t\t\t// CODES FOR SMALL DEVICES HERE\n\n\t\t}\n\t\telse{\n\t\t\t// CODES FOR EXTRA SMALL DEVICES HERE\n\n\t\t}\n\n\t});\n});\n\n// FUNCTION LISTS\n/*\n* Method smooth scrolls to given anchor point\n*/\nfunction smoothScrollTo(anchor) {\n\tvar duration = 400; //time (milliseconds) it takes to reach anchor point\n\tvar targetY = $(anchor).offset().top;\n\t$(\"html, body\").animate({\n\t\t\"scrollTop\" : targetY\n\t}, duration, 'easeInOutCubic');\n}","// Avoid `console` errors in browsers that lack a console.\n(function() {\n var method;\n var noop = function () {};\n var methods = [\n 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',\n 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',\n 'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',\n 'timeStamp', 'trace', 'warn'\n ];\n var length = methods.length;\n var console = (window.console = window.console || {});\n\n while (length--) {\n method = methods[length];\n\n // Only stub undefined methods.\n if (!console[method]) {\n console[method] = noop;\n }\n }\n}());\n\n// Place any jQuery/helper plugins in here.\n"]}