| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/icd/components/com_sobi2/includes/js/ |
Upload File : |
fx.Slide = Class.create();
fx.Slide.prototype = {
setOptions: function(options) {
this.options = {
delay: 50,
opacity: false
}
Object.extend(this.options, options || {});
},
initialize: function(togglers, sliders, options) {
this.sliders = sliders;
this.togglers = togglers;
this.setOptions(options);
sliders.each(function(el, i){
options.onComplete = function(){
if (el.offsetHeight > 0) el.style.height = '1%';
}
el.fx = new fx.Combo(el, options);
el.fx.hide();
});
var found = false;
togglers.each(function(toggler, i){
var div = Element.find(toggler, 'nextSibling'); //element.find is located in prototype.lite
if (window.location.href.indexOf(toggler.title) > 0) {
this.toggle(div, toggler);
found = true;
}
if (!found) {
toggler.onclick = function(){
this.toggle(sliders[0], toggler);
}.bind(this);
}
toggler.onclick = function(){
this.toggle(sliders[i], toggler);
}.bind(this);
}.bind(this));
},
toggle: function(slider, toggler){
this.sliders.each(function(el, i){
if (el.offsetHeight > 0) this.clear(el);
}.bind(this));
this.togglers.each(function(el, i){
Element.removeClassName(el, 'title-smenu-down');
}.bind(this));
if (slider.offsetHeight == 0) {
setTimeout(function(){this.clear(slider);}.bind(this), this.options.delay);
Element.addClassName(toggler, 'title-smenu-down');
}
},
clear: function(slider){
slider.fx.clearTimer();
slider.fx.toggle();
}
}