PageSourceSearch

https://www.villadanilo.it/js/apb-bootstrap.js

js villadanilo.it collected 2026-10-06 12:17:41 UTC 7,909 bytes, 112 lines download raw bytes

vendor: 7,249 bytes, lines 1-103
1if(typeof jQuery==='undefined'){throw new Error('Bootstrap\'s JavaScript requires jQuery')}+function($){'use strict';var version=$.fn.jquery.split(' ')[0].split('.')
2if((version[0]<2&&version[1]<9)||(version[0]==1&&version[1]==9&&version[2]<1)||(version[0]>2)){throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3')}}(jQuery);+function($){'use strict';var Tab=function(element){this.element=$(element)}
3Tab.VERSION='3.3.6'
4Tab.TRANSITION_DURATION=150
5Tab.prototype.show=function(){var $this=this.element
6var $ul=$this.closest('ul:not(.dropdown-menu)')
7var selector=$this.data('target')
8if(!selector){selector=$this.attr('href')
9selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,'')}if($this.parent('li').hasClass('active'))return
10var $previous=$ul.find('.active:last a')
11var hideEvent=$.Event('hide.bs.tab',{relatedTarget:$this[0]})
12var showEvent=$.Event('show.bs.tab',{relatedTarget:$previous[0]})
13$previous.trigger(hideEvent)
14$this.trigger(showEvent)
15if(showEvent.isDefaultPrevented()||hideEvent.isDefaultPrevented())return
16var $target=$(selector)
17this.activate($this.closest('li'),$ul)
18this.activate($target,$target.parent(),function(){$previous.trigger({type:'hidden.bs.tab',relatedTarget:$this[0]})
19$this.trigger({type:'shown.bs.tab',relatedTarget:$previous[0]})})}
20Tab.prototype.activate=function(element,container,callback){var $active=container.find('> .active')
21var transition=callback&&$.support.transition&&($active.length&&$active.hasClass('fade')||!!container.find('> .fade').length)
22function next(){$active.removeClass('active').find('> .dropdown-menu > .active').removeClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded',false)
23element.addClass('active').find('[data-toggle="tab"]').attr('aria-expanded',true)
24if(transition){element[0].offsetWidth
25element.addClass('in')}else{element.removeClass('fade')}if(element.parent('.dropdown-menu').length){element.closest('li.dropdown').addClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded',true)}callback&&callback()}$active.length&&transition?$active.one('bsTransitionEnd',next).emulateTransitionEnd(Tab.TRANSITION_DURATION):next()
26$active.removeClass('in')}
27function Plugin(option){return this.each(function(){var $this=$(this)
28var data=$this.data('bs.tab')
29if(!data)$this.data('bs.tab',(data=new Tab(this)))
30if(typeof option=='string')data[option]()})}var old=$.fn.tab
31$.fn.tab=Plugin
32$.fn.tab.Constructor=Tab
33$.fn.tab.noConflict=function(){$.fn.tab=old
34return this}
35var clickHandler=function(e){e.preventDefault()
36Plugin.call($(this),'show')}
37$(document).on('click.bs.tab.data-api','[data-toggle="tab"]',clickHandler).on('click.bs.tab.data-api','[data-toggle="pill"]',clickHandler)}(jQuery);+function($){'use strict';var Collapse=function(element,options){this.$element=$(element)
38this.options=$.extend({},Collapse.DEFAULTS,options)
39this.$trigger=$('[data-toggle="collapse"][href="#'+element.id+'"],'+'[data-toggle="collapse"][data-target="#'+element.id+'"]')
40this.transitioning=null
41if(this.options.parent){this.$parent=this.getParent()}else{this.addAriaAndCollapsedClass(this.$element,this.$trigger)}if(this.options.toggle)this.toggle()}
42Collapse.VERSION='3.3.6'
43Collapse.TRANSITION_DURATION=350
44Collapse.DEFAULTS={toggle:true}
45Collapse.prototype.dimension=function(){var hasWidth=this.$element.hasClass('width')
46return hasWidth?'width':'height'}
47Collapse.prototype.show=function(){if(this.transitioning||this.$element.hasClass('in'))return
48var activesData
49var actives=this.$parent&&this.$parent.children('.panel').children('.in, .collapsing')
50if(actives&&actives.length){activesData=actives.data('bs.collapse')
51if(activesData&&activesData.transitioning)return}var startEvent=$.Event('show.bs.collapse')
52this.$element.trigger(startEvent)
53if(startEvent.isDefaultPrevented())return
54if(actives&&actives.length){Plugin.call(actives,'hide')
55activesData||actives.data('bs.collapse',null)}var dimension=this.dimension()
56this.$element.removeClass('collapse').addClass('collapsing')[dimension](0).attr('aria-expanded',true)
57this.$trigger.removeClass('collapsed').attr('aria-expanded',true)
58this.transitioning=1
59var complete=function(){this.$element.removeClass('collapsing').addClass('collapse in')[dimension]('')
60this.transitioning=0
61this.$element.trigger('shown.bs.collapse')}
62if(!$.support.transition)return complete.call(this)
63var scrollSize=$.camelCase(['scroll',dimension].join('-'))
64this.$element.one('bsTransitionEnd',$.proxy(complete,this)).emulateTransitionEnd(Collapse.TRANSITION_DURATION)[dimension](this.$element[0][scrollSize])}
65Collapse.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass('in'))return
66var startEvent=$.Event('hide.bs.collapse')
67this.$element.trigger(startEvent)
68if(startEvent.isDefaultPrevented())return
69var dimension=this.dimension()
70this.$element[dimension](this.$element[dimension]())[0].offsetHeight
71this.$element.addClass('collapsing').removeClass('collapse in').attr('aria-expanded',false)
72this.$trigger.addClass('collapsed').attr('aria-expanded',false)
73this.transitioning=1
74var complete=function(){this.transitioning=0
75this.$element.removeClass('collapsing').addClass('collapse').trigger('hidden.bs.collapse')}
76if(!$.support.transition)return complete.call(this)
77this.$element
78[dimension](0).one('bsTransitionEnd',$.proxy(complete,this)).emulateTransitionEnd(Collapse.TRANSITION_DURATION)}
79Collapse.prototype.toggle=function(){this[this.$element.hasClass('in')?'hide':'show']()}
80Collapse.prototype.getParent=function(){return $(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each($.proxy(function(i,element){var $element=$(element)
81this.addAriaAndCollapsedClass(getTargetFromTrigger($element),$element)},this)).end()}
82Collapse.prototype.addAriaAndCollapsedClass=function($element,$trigger){var isOpen=$element.hasClass('in')
83$element.attr('aria-expanded',isOpen)
84$trigger.toggleClass('collapsed',!isOpen).attr('aria-expanded',isOpen)}
85function getTargetFromTrigger($trigger){var href
86var target=$trigger.attr('data-target')||(href=$trigger.attr('href'))&&href.replace(/.*(?=#[^\s]+$)/,'')
87return $(target)}function Plugin(option){return this.each(function(){var $this=$(this)
88var data=$this.data('bs.collapse')
89var options=$.extend({},Collapse.DEFAULTS,$this.data(),typeof option=='object'&&option)
90if(!data&&options.toggle&&/show|hide/.test(option))options.toggle=false
91if(!data)$this.data('bs.collapse',(data=new Collapse(this,options)))
92if(typeof option=='string')data[option]()})}var old=$.fn.collapse
93$.fn.collapse=Plugin
94$.fn.collapse.Constructor=Collapse
95$.fn.collapse.noConflict=function(){$.fn.collapse=old
96return this}
97$(document).on('click.bs.collapse.data-api','[data-toggle="collapse"]',function(e){var $this=$(this)
98if(!$this.attr('data-target'))e.preventDefault()
99var $target=getTargetFromTrigger($this)
100var data=$target.data('bs.collapse')
101var option=data?'toggle':$this.data()
102Plugin.call($target,option)})}(jQuery);+function($){'use strict';function transitionEnd(){var el=document.createElement('bootstrap')
103var transEndEventNames={WebkitTransition:'webkitTransitionEnd',MozTransition:'transitionend',OTransition:'oTransitionEnd otransitionend',transition:'transitionend'}
vendor: 660 bytes, lines 104-112
104for(var name in transEndEventNames){if(el.style[name]!==undefined){return{end:transEndEventNames[name]}}}return false}$.fn.emulateTransitionEnd=function(duration){var called=false
105var $el=this
106$(this).one('bsTransitionEnd',function(){called=true})
107var callback=function(){if(!called)$($el).trigger($.support.transition.end)}
108setTimeout(callback,duration)
109return this}
110$(function(){$.support.transition=transitionEnd()
111if(!$.support.transition)return
112$.event.special.bsTransitionEnd={bindType:$.support.transition.end,delegateType:$.support.transition.end,handle:function(e){if($(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}})}(jQuery);

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.