| Server IP : 89.108.64.180 / Your IP : 216.73.216.46 Web Server : Apache/2.4.41 (Ubuntu) System : Linux 89-108-64-180.cloudvps.regruhosting.ru 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : www-root ( 1010) PHP Version : 8.0.30 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/testsite1441.online/wp-content/themes/hotello/public/js/ |
Upload File : |
'use strict';
;(function ($, window, document, undefined) {
var Linked = function Linked(carousel) {
this._core = carousel;
this._handlers = {
'dragged.owl.carousel changed.owl.carousel': $.proxy(function (e) {
if (e.namespace && this._core.settings.linked) {
this.update(e);
}
}, this),
'linked.to.owl.carousel': $.proxy(function (e, index, speed, standard, propagate) {
if (e.namespace && this._core.settings.linked) {
this.toSlide(index, speed, propagate);
}
}, this)
};
this._core.$element.on(this._handlers);
this._core.options = $.extend({}, Linked.Defaults, this._core.options);
};
Linked.Defaults = {
linked: false
};
Linked.prototype.update = function (e) {
this.toSlide(e.relatedTarget.relative(e.item.index));
};
Linked.prototype.toSlide = function (index, speed, propagate) {
var id = this._core.$element.attr('id'),
linked = this._core.settings.linked.split(',');
if (typeof propagate == 'undefined') {
propagate = true;
}
index = index || 0;
if (propagate) {
$.each(linked, function (i, el) {
$(el).trigger('linked.to.owl.carousel', [index, 300, true, false]);
});
} else {
this._core.$element.trigger('to.owl.carousel', [index, 300, true]);
if (this._core.settings.current) {
this._core._plugins.current.switchTo(index);
}
}
};
Linked.prototype.destroy = function () {
var handler, property;
for (handler in this._handlers) {
this.$element.off(handler, this._handlers[handler]);
}
for (property in Object.getOwnPropertyNames(this)) {
typeof this[property] != 'function' && (this[property] = null);
}
};
$.fn.owlCarousel.Constructor.Plugins.linked = Linked;
})(window.Zepto || window.jQuery, window, document);