PageSourceSearch

https://www.splash-web.net/res/dist/responsive-side-category-nav.js?v=1

js splash-web.net collected 2026-10-04 21:56:04 UTC 6,478 bytes, 1 lines download raw bytes

1!function(){"use strict";var e={669:function(e){e.exports=jQuery}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}var a=s((function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.wrapSelector=".side_sub_menu_hover.category_nav_box",this.openClassName="open",this.openSubMenuClassName="open_sub_menu_link",this.closeSubMenuClassName="close_sub_menu_link",this.menuListSelector=".menu_link_list",this.toggleMenuListClassName="toggle_menu_list",this.touchSideNavClassName="touch_side_nav",this.sideMenuItemSelector=".menu_link_item.has_sub_menu",this.subMenuSelector=".has_sub_menu .sub_menu_link_list",this.listItemSelector=".menu_link_item",this.parentMenuLinkSelector=".parental_menu_link",this.wideDeviceMediaQuery="(min-width: 840px)",this.documentClickEventName="designSideMenuClickEvent",Object.keys(n).forEach((function(e){void 0!==t[e]&&(t[e]=n[e])}))})),u=n(669),l=n(669);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function m(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,p(i.key),i)}}function p(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}var v=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=new a(t);var n=u(this.options.wrapSelector);if(null===n)throw new Error("Error | DesignSideNav::init() | $wrapElem is null");this.$wrapElem=n,this.isSideColumnAlwaysVisible=this.isWideDevice()}var t,n;return t=e,(n=[{key:"init",value:function(){this.setupEvent(),this.isTouchDevice()||this.setupWindowResizeEvent()}},{key:"setupEvent",value:function(){this.isTouchDevice()?this.setupTouchItemListNav():this.isSideColumnAlwaysVisible?this.setupPCItemListNav():this.setupTouchItemListNav()}},{key:"setupWindowResizeEvent",value:function(){var e=this;u(window).resize((function(){var t=e.isWideDevice();t!==e.isSideColumnAlwaysVisible&&(e.removeOpenEvent(),e.isSideColumnAlwaysVisible=t,e.setupEvent())}))}},{key:"isTouchDevice",value:function(){var e=window.ontouchstart,t=navigator.maxTouchPoints;return void 0!==e&&0<t}},{key:"isWideDevice",value:function(){return window.matchMedia(this.options.wideDeviceMediaQuery).matches}},{key:"resetSubMenuDisplay",value:function(){var e=this.$wrapElem.find(this.options.sideMenuItemSelector),t=e.find(this.options.parentMenuLinkSelector);this.handleCloseClassName(e,t)}},{key:"resetTabletSubMenuDisplay",value:function(e){var t=e.find(this.options.parentMenuLinkSelector),n=e.hasClass(this.options.openClassName);this.resetSubMenuDisplay(),n&&this.handleOpenClassName(e,t)}},{key:"removeOpenEvent",value:function(){this.isSideColumnAlwaysVisible?this.removeHoverEvent():this.removeParentMenuLinkClickEvent()}},{key:"setDocumentClickEvent",value:function(e){var t=this;l(document).on("click."+this.options.documentClickEventName,(function(){t.resetSubMenuDisplay(),t.removeDocumentClickEvent()})),l(document).on("click."+this.options.documentClickEventName,e,(function(e){e.isPropagationStopped()||e.stopPropagation()}))}},{key:"removeDocumentClickEvent",value:function(){l(document).off("."+this.options.documentClickEventName)}},{key:"setupPCItemListNav",value:function(){var e=this,t=this.$wrapElem.find(this.options.sideMenuItemSelector);t.on("mouseover",(function(t){var n=u(t.currentTarget),i=n.find(e.options.parentMenuLinkSelector);e.handleOpenClassName(n,i)})),t.on("mouseout",(function(t){var n=u(t.currentTarget),i=n.find(e.options.parentMenuLinkSelector);e.handleCloseClassName(n,i)}))}},{key:"removeHoverEvent",value:function(){var e=this.$wrapElem.find(this.options.sideMenuItemSelector);e.off("mouseover"),e.off("mouseout")}},{key:"setupTouchItemListNav",value:function(){var e=this;this.$wrapElem.addClass(this.options.touchSideNavClassName),this.$wrapElem.find(this.options.sideMenuItemSelector).find(this.options.parentMenuLinkSelector).on("click",(function(t){t.preventDefault(),t.stopPropagation();var n=u(t.currentTarget),i=n.closest(e.options.listItemSelector);if(e.isWideDevice()&&e.resetTabletSubMenuDisplay(i),i.hasClass(e.options.openClassName))return e.handleCloseClassName(i,n),void e.removeDocumentClickEvent();var o=["".concat(e.options.sideMenuItemSelector," ").concat(e.options.parentMenuLinkSelector),e.options.subMenuSelector].join(", ");e.setDocumentClickEvent(o),e.handleOpenClassName(i,n)}))}},{key:"removeParentMenuLinkClickEvent",value:function(){this.$wrapElem.find(this.options.sideMenuItemSelector).find(this.options.parentMenuLinkSelector).off("
1click")}},{key:"handleOpenClassName",value:function(e,t){e.addClass(this.options.openClassName),t.removeClass(this.options.openSubMenuClassName),t.addClass(this.options.closeSubMenuClassName)}},{key:"handleCloseClassName",value:function(e,t){e.removeClass(this.options.openClassName),t.addClass(this.options.openSubMenuClassName),t.removeClass(this.options.closeSubMenuClassName)}}])&&m(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();window.ResponsiveSideCategoryNav=v}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.