PageSourceSearch

https://www.stclarelittlesisters.org/js/collapsible.min.js

js stclarelittlesisters.org collected 2026-10-02 23:41:59 UTC 3,983 bytes, 16 lines download raw bytes

1(function(){'use strict';$.widget('collapsible',{component:'collapsible',options:{active:false,openedState:'active',collapsible:true,header:'[data-role=title]',content:'[data-role=content]',trigger:'[data-role=trigger]',collateral:{element:null,openedState:null},ajaxUrlElement:'[data-ajax=true]',ajaxUrlAttribute:'href',ajaxContent:false},create:function(){this.header=typeof this.options.header==='object'?this.options.header:this.element.find(this.options.header).first();this.trigger=typeof this.options.trigger==='object'?this.options.trigger:this.header.find(this.options.trigger).first();this.content=typeof this.options.content==='object'?this.options.content:this.header.next(this.options.content).first();if(!this.trigger.length){this.trigger=this.header;}
2this.header.attr('role','tab');this.header.removeAttr('aria-level');this.trigger.attr('data-trigger',true);this.trigger.attr('tabindex',0);this.trigger.children('a').attr('tabindex',-1);this.element.attr('data-collapsible',true);this.content.attr('role','tabpanel');if(this.header.parent().attr('role')!=='presentation'){this.header.parent().attr('role','tablist');}
3if(this.options.active){this.open();}else{this.close();}
4this._on({'keydown [data-trigger]':function(e){if(e.key==='Enter'||e.key===' '){e.preventDefault();this.toggle();}}.bind(this)});},init:function(){this.disabled=false;},destroy:function(){if(!this.options.active){this.close();}
5this._super();},isActive:function(){return this.content.attr('aria-hidden')==='false';},isEnabled:function(){return!this.disabled;},isDropdown:function(){return this.content.css('position')==='absolute';},disable:function(){this.disabled=true;},enable:function(){this.disabled=false;},open:function(){this._trigger('beforeOpen');if(this.options.ajaxContent){this.loadContent();}
6if(this.options.openedState){this.element.addClass(this.options.openedState);}
7if(this.options.collateral.element){$(this.options.collateral.element).addClass(this.options.collateral.openedState);}
8this.header.attr({'aria-selected':true,'aria-expanded':true});this.content.attr({'aria-hidden':false});this.content.show();if(this.isDropdown()){this.content.contstraint();}
9this.element.trigger('dimensionsChanged',{opened:true});},close:function(){if(this.options.openedState){this.element.removeClass(this.options.openedState);}
10if(this.options.collateral.element){$(this.options.collateral.element).removeClass(this.options.collateral.openedState);}
11this.header.attr({'aria-selected':false,'aria-expanded':false});this.content.attr({'aria-hidden':true});this.content.hide();this.element.trigger('dimensionsChanged',{opened:false});},toggle:function(){if(this.element.hasClass(this.options.openedState)){if(this.options.collapsible){this.close();}}else{this.open();}},loadContent:function(){var url=this.element.find(this.options.ajaxUrlElement).attr(this.options.ajaxUrlAttribute),self=this;if(!url||this.element.data('loaded')){return;}
12self._trigger('beforeLoad');if(self.options.loadingClass){self.element.addClass(self.options.loadingClass);}
13self.content.spinner(true);self.content.attr('aria-busy','true');$.request.get({url:url,type:'html',success:function(data){self.element.data('loaded',true);self.content.empty().append(data).trigger('contentUpdated');},complete:function(){self.element.removeClass(self.options.loadingClass);self.content.spinner(false);self.content.removeAttr('aria-busy');self._trigger('afterLoad');}});}});$(document).on('click.collapsible',function(event){var instance=$(event.target).closest('[data-trigger]').closest('[data-collapsible]').collapsible('instance'),tmpInstance;if(!instance){tmpInstance=$(event.target).closest('[data-collapsible]').collapsible('instance');if(tmpInstance&&tmpInstance.options.dialog){return;}}
14$.widget('collapsible').each(function(widget){if(widget===instance){return;}
15if(widget.isDropdown()&&widget.isEnabled()){widget.close();}});if(!instance||!instance.isEnabled()){return;}
16instance.toggle();return false;});})();

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.