// ============================================== // // Author : Adam Muhammad Nurdin // Email : adamnurdin0@gmail.com // Project : corenav // version : 1.1.3 // Description : coreNavigation is a multi purpose navigation menu for javascript library based on jquery, come with more style and easy to combination. // ============================================== // !function(n){var e={};function o(t){if(e[t])return e[t].exports;var a=e[t]={i:t,l:!1,exports:{}};return n[t].call(a.exports,a,a.exports,o),a.l=!0,a.exports}o.m=n,o.c=e,o.d=function(n,e,t){o.o(n,e)||Object.defineProperty(n,e,{configurable:!1,enumerable:!0,get:t})},o.r=function(n){Object.defineProperty(n,"__esModule",{value:!0})},o.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return o.d(e,"a",e),e},o.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},o.p="",o(o.s=24)}([function(n,e,o){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},a=o(16),r="object"==("undefined"==typeof self?"undefined":t(self))&&self&&self.Object===Object&&self,i=a||r||Function("return this")();n.exports=i},function(n,e,o){"use strict";var t=o(0).Symbol;n.exports=t},function(n,e,o){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};n.exports=function(n){var e=void 0===n?"undefined":t(n);return null!=n&&("object"==e||"function"==e)}},function(n,e,o){"use strict";var t=o(2),a=o(18),r=NaN,i=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,d=parseInt;n.exports=function(n){if("number"==typeof n)return n;if(a(n))return r;if(t(n)){var e="function"==typeof n.valueOf?n.valueOf():n;n=t(e)?e+"":e}if("string"!=typeof n)return 0===n?n:+n;n=n.replace(i,"");var o=c.test(n);return o||l.test(n)?d(n.slice(2),o?2:8):s.test(n)?r:+n}},function(n,e,o){"use strict";var t={init:function(n,e){$(".core-content").addClass("core-side-icon"),n.addClass("nav-side-icon"),e.toggleHoverSidebar&&($(".core-nav").stop().on("mouseenter",function(){$(".core-content").addClass("open-side-icon")}),$(".core-nav").stop().on("mouseleave",function(){$(".core-content").removeClass("open-side-icon")}))}};n.exports=t},function(n,e,o){"use strict";var t={init:function(n,e){var o=this;$(".core-content").addClass("core-nav-section"),this.setPosition(),$(window).on("resize",function(){o.setPosition()})},setPosition:function(){var n=$(".core-nav-list"),e=n.outerHeight()/2;$(window).width()>920?(n.css("margin-top",-1*e),n.css("top",.5*$(window).height())):(n.css("margin-top",0),n.css("top",0))}};n.exports=t},function(n,e,o){"use strict";var t={init:function(n,e){var o=this;$(".core-content").addClass("core-sidebar-toggle"),n.addClass("sidebar-toggle"),this.layout(e),$(window).on("resize",function(){o.layout(e)}),e.menuFullWidth&&$(".wrap-core-nav-list").addClass("full-width")},layout:function(n){var e=$(window).width(),o=$(".core-nav-toggle"),t=o.height()/2;if(e>920){if(o.css("margin-top","-"+t+"px"),n.menuFullWidth){var a=$(".core-nav-list > li").length,r=(e-$(".sidebar-toggle").width())/a;$(".core-nav-list > li").css("width",r-.5+"px")}}else o.css("margin-top",""),$(".core-nav-list > li").css("width","")}};n.exports=t},function(n,e,o){"use strict";var t={init:function(n,e){$(".core-content").addClass("core-sidebar"),n.addClass("nav-sidebar")}};n.exports=t},function(n,e,o){"use strict";var t={init:function(n,e){e.container?n.wrapInner("
"):n.wrapInner(""),$(".core-nav").addClass("fullscreen"),$(".wrap-core-nav-list .menu").wrap("");var o=$(".core-nav-toggle").html();$(".wrap-core-nav-list > .nav-container").prepend('"),$(".core-nav-toggle").on("click",function(e){e.preventDefault(),n.toggleClass("open-fullscreen"),$(".core-responsive-slide").length&&$(".core-responsive-slide").toggleClass("open")})}};n.exports=t},function(n,e,o){"use strict";var t={init:function(n,e){e.container?n.wrapInner(""):n.wrapInner(""),$(".core-nav-list").addClass("split-list"),this.devidedMenu(e)},devidedMenu:function(n){var e=$(".split-list");e.each(function(){for(var n=new Array,e=$(".split-list > li"),o=Math.floor(e.length/2),t=e.length-2*o,a=0;a<2;a++)n[a]=a