PageSourceSearch

https://www.rainier.net.cn/s/site_themes/default/js/tendina.js?_t=0945313041

js rainier.net.cn collected 2026-10-06 13:46:24 UTC 3,558 bytes, 1 lines download raw bytes

1(function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},t=[].slice;!function(n){var i;return i=function(){function t(t,i){this._clickHandler=e(this._clickHandler,this),this.options=n.extend({},this.defaults,i),this.$el=n(t),this._checkOptions(),this.$el.addClass("tendina"),this.firstLvlSubmenu=".tendina > li",this.secondLvlSubmenu=".tendina > li > ul > li",this.firstLvlSubmenuLink=""+this.firstLvlSubmenu+" > a",this.secondLvlSubmenuLink=""+this.secondLvlSubmenu+" > a",this._hideSubmenus(),this._bindEvents()}return t.prototype.defaults={animate:!0,speed:500},t.prototype._bindEvents=function(){return n(document).on("click.tendina",""+this.firstLvlSubmenuLink+", "+this.secondLvlSubmenuLink,this._clickHandler)},t.prototype._unbindEvents=function(){return n(document).off("click.tendina")},t.prototype._isFirstLevel=function(e){return n(e).parent().parent().hasClass("tendina")?!0:void 0},t.prototype._clickHandler=function(e){var t,n;return t=e.currentTarget,n=this._isFirstLevel(t)?this.firstLvlSubmenu:this.secondLvlSubmenu,this._hasChildenAndIsHidden(t)?(e.preventDefault(),this._openSubmenu(n,t)):this._isCurrentlyOpen(t)?(e.preventDefault(),this._closeSubmenu(t)):void 0},t.prototype._openSubmenu=function(e,t){var i,s,o;return s=n(e).find("> ul"),o=n(e).find("> ul > li > ul"),i=n(t).next("ul"),n(e).removeClass("selected"),n(t).parent().addClass("selected"),this._close(s),this._open(i),e===this.firstLvlSubmenu&&(n(e).find("> ul > li").removeClass("selected"),this._close(o)),this.options.openCallback?this.options.openCallback(n(t).parent()):void 0},t.prototype._closeSubmenu=function(e){var t;return t=n(e).next("ul"),n(e).parent().removeClass("selected"),this._close(t),this.options.closeCallback?this.options.closeCallback(n(e).parent()):void 0},t.prototype._open=function(e){return this.options.animate?e.slideDown(this.options.speed):e.show()},t.prototype._close=function(e){return this.options.animate?e.slideUp(this.options.speed):e.hide()},t.prototype._hasChildenAndIsHidden=function(e){return n(e).next("ul").length>0&&n(e).next("ul").is(":hidden")},t.prototype._isCurrentlyOpen=function(e){return n(e).parent().hasClass("selected")},t.prototype._hideSubmenus=function(){return n(""+this.firstLvlSubmenu+" > ul, "+this.secondLvlSubmenu+" > ul").hide(),n(""+this.firstLvlSubmenu+" > ul").removeClass("selected")},t.prototype._showSubmenus=function(){return n(""+this.firstLvlSubmenu+" > ul, "+this.secondLvlSubmenu+" > ul").show(),n(""+this.firstLvlSubmenu).removeClass("selected")},t.prototype._checkOptions=function(){return this.options.animate!==!0&&console.warn("jQuery.fn.Tendina - '"+this.options.animate+"' is not a valid parameter for the 'animate' option. Falling back to default value."),this.options.speed!==parseInt(this.options.speed)?console.warn("jQuery.fn.Tendina - '"+this.options.speed+"' is not a valid parameter for the 'speed' option. Falling back to default value."):void 0},t.prototype.destroy=function(){return this.$el.removeData("tendina"),this._unbindEvents(),this._showSubmenus(),this.$el.removeClass("tendina"),this.$el.find(".selected").removeClass("selected")},t.prototype.hideAll=function(){return this._hideSubmenus()},t.prototype.showAll=function(){return this._showSubmenus()},t}(),n.fn.extend({tendina:function(){var e,s;return s=arguments[0],e=2<=arguments.length?t.call(arguments,1):[],this.each(function(){var t,o;return t=n(this),o=t.data("tendina"),o||t.data("tendina",o=new i(this,s)),"string"==typeof s?o[s].apply(o,e):void 0})}})}(window.jQuery,window)}).call(this);

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.