Stevie Nicks' Best 80s Looks (2024)

'; if (settings.lazyLoad) { tnLink = '

'; } else { tnLink = '

'; } target.after(tnLink); target.after(icon); }; // wrap video content into owl-video-wrapper div target.wrap('

'); if (this._core.settings.lazyLoad) { srcType = 'data-src'; lazyClass = 'owl-lazy'; } // custom thumbnail if (customTn.length) { create(customTn.attr(srcType)); customTn.remove(); return false; } if (video.type === 'youtube') { path = "//img.youtube.com/vi/" + video.id + "/hqdefault.jpg"; create(path); } else if (video.type === 'vimeo') { jQuery.ajax({ type: 'GET', url: '//vimeo.com/api/v2/video/' + video.id + '.json', jsonp: 'callback', dataType: 'jsonp', success: function(data) { path = data[0].thumbnail_large; create(path); } }); } else if (video.type === 'vzaar') { jQuery.ajax({ type: 'GET', url: '//vzaar.com/api/videos/' + video.id + '.json', jsonp: 'callback', dataType: 'jsonp', success: function(data) { path = data.framegrab_url; create(path); } }); } }; /** * Stops the current video. * @public */ Video.prototype.stop = function() { this._core.trigger('stop', null, 'video'); this._playing.find('.owl-video-frame').remove(); this._playing.removeClass('owl-video-playing'); this._playing = null; this._core.leave('playing'); this._core.trigger('stopped', null, 'video'); }; /** * Starts the current video. * @public * @param {Event} event - The event arguments. */ Video.prototype.play = function(event) { var target = jQuery(event.target), item = target.closest('.' + this._core.settings.itemClass), video = this._videos[item.attr('data-video')], width = video.width || '100%', height = video.height || this._core.jQuerystage.height(), html; if (this._playing) { return; } this._core.enter('playing'); this._core.trigger('play', null, 'video'); item = this._core.items(this._core.relative(item.index())); this._core.reset(item.index()); if (video.type === 'youtube') { html = '

'; } else if (video.type === 'vimeo') { html = '

'; } else if (video.type === 'vzaar') { html = '

'; } jQuery('

' + html + '

').insertAfter(item.find('.owl-video')); this._playing = item.addClass('owl-video-playing'); }; /** * Checks whether an video is currently in full screen mode or not. * @todo Bad style because looks like a readonly method but changes members. * @protected * @returns {Boolean} */ Video.prototype.isInFullScreen = function() { var element = document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement; return element && jQuery(element).parent().hasClass('owl-video-frame'); }; /** * Destroys the plugin. */ Video.prototype.destroy = function() { var handler, property; this._core.jQueryelement.off('click.owl.video'); for (handler in this._handlers) { this._core.jQueryelement.off(handler, this._handlers[handler]); } for (property in Object.getOwnPropertyNames(this)) { typeof this[property] != 'function' && (this[property] = null); } }; jQuery.fn.owlCarousel.Constructor.Plugins.Video = Video; })(window.Zepto || window.jQuery, window, document); /** * Animate Plugin * @version 2.1.0 * @author Bartosz Wojciechowski * @author David Deutsch * @license The MIT License (MIT) */ ;(function(jQuery, window, document, undefined) { /** * Creates the animate plugin. * @class The Navigation Plugin * @param {Owl} scope - The Owl Carousel */ var Animate = function(scope) { this.core = scope; this.core.options = jQuery.extend({}, Animate.Defaults, this.core.options); this.swapping = true; this.previous = undefined; this.next = undefined; this.handlers = { 'change.owl.carousel': jQuery.proxy(function(e) { if (e.namespace && e.property.name == 'position') { this.previous = this.core.current(); this.next = e.property.value; } }, this), 'drag.owl.carousel dragged.owl.carousel translated.owl.carousel': jQuery.proxy(function(e) { if (e.namespace) { this.swapping = e.type == 'translated'; } }, this), 'translate.owl.carousel': jQuery.proxy(function(e) { if (e.namespace && this.swapping && (this.core.options.animateOut || this.core.options.animateIn)) { this.swap(); } }, this) }; this.core.jQueryelement.on(this.handlers); }; /** * Default options. * @public */ Animate.Defaults = { animateOut: false, animateIn: false }; /** * Toggles the animation classes whenever an translations starts. * @protected * @returns {Boolean|undefined} */ Animate.prototype.swap = function() { if (this.core.settings.items !== 1) { return; } if (!jQuery.support.animation || !jQuery.support.transition) { return; } this.core.speed(0); var left, clear = jQuery.proxy(this.clear, this), previous = this.core.jQuerystage.children().eq(this.previous), next = this.core.jQuerystage.children().eq(this.next), incoming = this.core.settings.animateIn, outgoing = this.core.settings.animateOut; if (this.core.current() === this.previous) { return; } if (outgoing) { left = this.core.coordinates(this.previous) - this.core.coordinates(this.next); previous.one(jQuery.support.animation.end, clear) .css( { 'left': left + 'px' } ) .addClass('animated owl-animated-out') .addClass(outgoing); } if (incoming) { next.one(jQuery.support.animation.end, clear) .addClass('animated owl-animated-in') .addClass(incoming); } }; Animate.prototype.clear = function(e) { jQuery(e.target).css( { 'left': '' } ) .removeClass('animated owl-animated-out owl-animated-in') .removeClass(this.core.settings.animateIn) .removeClass(this.core.settings.animateOut); this.core.onTransitionEnd(); }; /** * Destroys the plugin. * @public */ Animate.prototype.destroy = function() { var handler, property; for (handler in this.handlers) { this.core.jQueryelement.off(handler, this.handlers[handler]); } for (property in Object.getOwnPropertyNames(this)) { typeof this[property] != 'function' && (this[property] = null); } }; jQuery.fn.owlCarousel.Constructor.Plugins.Animate = Animate; })(window.Zepto || window.jQuery, window, document); /** * Autoplay Plugin * @version 2.1.0 * @author Bartosz Wojciechowski * @author Artus Kolanowski * @author David Deutsch * @license The MIT License (MIT) */ ;(function(jQuery, window, document, undefined) { /** * Creates the autoplay plugin. * @class The Autoplay Plugin * @param {Owl} scope - The Owl Carousel */ var Autoplay = function(carousel) { /** * Reference to the core. * @protected * @type {Owl} */ this._core = carousel; /** * The autoplay timeout. * @type {Timeout} */ this._timeout = null; /** * Indicates whenever the autoplay is paused. * @type {Boolean} */ this._paused = false; /** * All event handlers. * @protected * @type {Object} */ this._handlers = { 'changed.owl.carousel': jQuery.proxy(function(e) { if (e.namespace && e.property.name === 'settings') { if (this._core.settings.autoplay) { this.play(); } else { this.stop(); } } else if (e.namespace && e.property.name === 'position') { //console.log('play?', e); if (this._core.settings.autoplay) { this._setAutoPlayInterval(); } } }, this), 'initialized.owl.carousel': jQuery.proxy(function(e) { if (e.namespace && this._core.settings.autoplay) { this.play(); } }, this), 'play.owl.autoplay': jQuery.proxy(function(e, t, s) { if (e.namespace) { this.play(t, s); } }, this), 'stop.owl.autoplay': jQuery.proxy(function(e) { if (e.namespace) { this.stop(); } }, this), 'mouseover.owl.autoplay': jQuery.proxy(function() { if (this._core.settings.autoplayHoverPause && this._core.is('rotating')) { this.pause(); } }, this), 'mouseleave.owl.autoplay': jQuery.proxy(function() { if (this._core.settings.autoplayHoverPause && this._core.is('rotating')) { this.play(); } }, this), 'touchstart.owl.core': jQuery.proxy(function() { if (this._core.settings.autoplayHoverPause && this._core.is('rotating')) { this.pause(); } }, this), 'touchend.owl.core': jQuery.proxy(function() { if (this._core.settings.autoplayHoverPause) { this.play(); } }, this) }; // register event handlers this._core.jQueryelement.on(this._handlers); // set default options this._core.options = jQuery.extend({}, Autoplay.Defaults, this._core.options); }; /** * Default options. * @public */ Autoplay.Defaults = { autoplay: false, autoplayTimeout: 5000, autoplayHoverPause: false, autoplaySpeed: false }; /** * Starts the autoplay. * @public * @param {Number} [timeout] - The interval before the next animation starts. * @param {Number} [speed] - The animation speed for the animations. */ Autoplay.prototype.play = function(timeout, speed) { this._paused = false; if (this._core.is('rotating')) { return; } this._core.enter('rotating'); this._setAutoPlayInterval(); }; /** * Gets a new timeout * @private * @param {Number} [timeout] - The interval before the next animation starts. * @param {Number} [speed] - The animation speed for the animations. * @return {Timeout} */ Autoplay.prototype._getNextTimeout = function(timeout, speed) { if ( this._timeout ) { window.clearTimeout(this._timeout); } return window.setTimeout(jQuery.proxy(function() { if (this._paused || this._core.is('busy') || this._core.is('interacting') || document.hidden) { return; } this._core.next(speed || this._core.settings.autoplaySpeed); }, this), timeout || this._core.settings.autoplayTimeout); }; /** * Sets autoplay in motion. * @private */ Autoplay.prototype._setAutoPlayInterval = function() { this._timeout = this._getNextTimeout(); }; /** * Stops the autoplay. * @public */ Autoplay.prototype.stop = function() { if (!this._core.is('rotating')) { return; } window.clearTimeout(this._timeout); this._core.leave('rotating'); }; /** * Stops the autoplay. * @public */ Autoplay.prototype.pause = function() { if (!this._core.is('rotating')) { return; } this._paused = true; }; /** * Destroys the plugin. */ Autoplay.prototype.destroy = function() { var handler, property; this.stop(); for (handler in this._handlers) { this._core.jQueryelement.off(handler, this._handlers[handler]); } for (property in Object.getOwnPropertyNames(this)) { typeof this[property] != 'function' && (this[property] = null); } }; jQuery.fn.owlCarousel.Constructor.Plugins.autoplay = Autoplay; })(window.Zepto || window.jQuery, window, document); /** * Navigation Plugin * @version 2.1.0 * @author Artus Kolanowski * @author David Deutsch * @license The MIT License (MIT) */ ;(function(jQuery, window, document, undefined) { 'use strict'; /** * Creates the navigation plugin. * @class The Navigation Plugin * @param {Owl} carousel - The Owl Carousel. */ var Navigation = function(carousel) { /** * Reference to the core. * @protected * @type {Owl} */ this._core = carousel; /** * Indicates whether the plugin is initialized or not. * @protected * @type {Boolean} */ this._initialized = false; /** * The current paging indexes. * @protected * @type {Array} */ this._pages = []; /** * All DOM elements of the user interface. * @protected * @type {Object} */ this._controls = {}; /** * Markup for an indicator. * @protected * @type {Array.

} */ this._templates = []; /** * The carousel element. * @type {jQuery} */ this.jQueryelement = this._core.jQueryelement; /** * Overridden methods of the carousel. * @protected * @type {Object} */ this._overrides = { next: this._core.next, prev: this._core.prev, to: this._core.to }; /** * All event handlers. * @protected * @type {Object} */ this._handlers = { 'prepared.owl.carousel': jQuery.proxy(function(e) { if (e.namespace && this._core.settings.dotsData) { this._templates.push('

' + jQuery(e.content).find('[data-dot]').addBack('[data-dot]').attr('data-dot') + '

'); } }, this), 'added.owl.carousel': jQuery.proxy(function(e) { if (e.namespace && this._core.settings.dotsData) { this._templates.splice(e.position, 0, this._templates.pop()); } }, this), 'remove.owl.carousel': jQuery.proxy(function(e) { if (e.namespace && this._core.settings.dotsData) { this._templates.splice(e.position, 1); } }, this), 'changed.owl.carousel': jQuery.proxy(function(e) { if (e.namespace && e.property.name == 'position') { this.draw(); } }, this), 'initialized.owl.carousel': jQuery.proxy(function(e) { if (e.namespace && !this._initialized) { this._core.trigger('initialize', null, 'navigation'); this.initialize(); this.update(); this.draw(); this._initialized = true; this._core.trigger('initialized', null, 'navigation'); } }, this), 'refreshed.owl.carousel': jQuery.proxy(function(e) { if (e.namespace && this._initialized) { this._core.trigger('refresh', null, 'navigation'); this.update(); this.draw(); this._core.trigger('refreshed', null, 'navigation'); } }, this) }; // set default options this._core.options = jQuery.extend({}, Navigation.Defaults, this._core.options); // register event handlers this.jQueryelement.on(this._handlers); }; /** * Default options. * @public * @todo Rename `slideBy` to `navBy` */ Navigation.Defaults = { nav: false, navText: [ 'prev', 'next' ], navSpeed: false, navElement: 'div', navContainer: false, navContainerClass: 'owl-nav', navClass: [ 'owl-prev', 'owl-next' ], slideBy: 1, dotClass: 'owl-dot', dotsClass: 'owl-dots', dots: true, dotsEach: false, dotsData: false, dotsSpeed: false, dotsContainer: false }; /** * Initializes the layout of the plugin and extends the carousel. * @protected */ Navigation.prototype.initialize = function() { var override, settings = this._core.settings; // create DOM structure for relative navigation this._controls.jQueryrelative = (settings.navContainer ? jQuery(settings.navContainer) : jQuery('

').addClass(settings.navContainerClass).appendTo(this.jQueryelement)).addClass('disabled'); this._controls.jQueryprevious = jQuery('<' + settings.navElement + '>') .addClass(settings.navClass[0]) .html(settings.navText[0]) .prependTo(this._controls.jQueryrelative) .on('click', jQuery.proxy(function(e) { this.prev(settings.navSpeed); }, this)); this._controls.jQuerynext = jQuery('<' + settings.navElement + '>') .addClass(settings.navClass[1]) .html(settings.navText[1]) .appendTo(this._controls.jQueryrelative) .on('click', jQuery.proxy(function(e) { this.next(settings.navSpeed); }, this)); // create DOM structure for absolute navigation if (!settings.dotsData) { this._templates = [ jQuery('

') .addClass(settings.dotClass) .append(jQuery('')) .prop('outerHTML') ]; } this._controls.jQueryabsolute = (settings.dotsContainer ? jQuery(settings.dotsContainer) : jQuery('

').addClass(settings.dotsClass).appendTo(this.jQueryelement)).addClass('disabled'); this._controls.jQueryabsolute.on('click', 'div', jQuery.proxy(function(e) { var index = jQuery(e.target).parent().is(this._controls.jQueryabsolute) ? jQuery(e.target).index() : jQuery(e.target).parent().index(); e.preventDefault(); this.to(index, settings.dotsSpeed); }, this)); // override public methods of the carousel for (override in this._overrides) { this._core[override] = jQuery.proxy(this[override], this); } }; /** * Destroys the plugin. * @protected */ Navigation.prototype.destroy = function() { var handler, control, property, override; for (handler in this._handlers) { this.jQueryelement.off(handler, this._handlers[handler]); } for (control in this._controls) { this._controls[control].remove(); } for (override in this.overides) { this._core[override] = this._overrides[override]; } for (property in Object.getOwnPropertyNames(this)) { typeof this[property] != 'function' && (this[property] = null); } }; /** * Updates the internal state. * @protected */ Navigation.prototype.update = function() { var i, j, k, lower = this._core.clones().length / 2, upper = lower + this._core.items().length, maximum = this._core.maximum(true), settings = this._core.settings, size = settings.center || settings.autoWidth || settings.dotsData ? 1 : settings.dotsEach || settings.items; if (settings.slideBy !== 'page') { settings.slideBy = Math.min(settings.slideBy, settings.items); } if (settings.dots || settings.slideBy == 'page') { this._pages = []; for (i = lower, j = 0, k = 0; i < upper; i++) { if (j >= size || j === 0) { this._pages.push({ start: Math.min(maximum, i - lower), end: i - lower + size - 1 }); if (Math.min(maximum, i - lower) === maximum) { break; } j = 0, ++k; } j += this._core.mergers(this._core.relative(i)); } } }; /** * Draws the user interface. * @todo The option `dotsData` wont work. * @protected */ Navigation.prototype.draw = function() { var difference, settings = this._core.settings, disabled = this._core.items().length <= settings.items, index = this._core.relative(this._core.current()), loop = settings.loop || settings.rewind; this._controls.jQueryrelative.toggleClass('disabled', !settings.nav || disabled); if (settings.nav) { this._controls.jQueryprevious.toggleClass('disabled', !loop && index <= this._core.minimum(true)); this._controls.jQuerynext.toggleClass('disabled', !loop && index >= this._core.maximum(true)); } this._controls.jQueryabsolute.toggleClass('disabled', !settings.dots || disabled); if (settings.dots) { difference = this._pages.length - this._controls.jQueryabsolute.children().length; if (settings.dotsData && difference !== 0) { this._controls.jQueryabsolute.html(this._templates.join('')); } else if (difference > 0) { this._controls.jQueryabsolute.append(new Array(difference + 1).join(this._templates[0])); } else if (difference < 0) { this._controls.jQueryabsolute.children().slice(difference).remove(); } this._controls.jQueryabsolute.find('.active').removeClass('active'); this._controls.jQueryabsolute.children().eq(jQuery.inArray(this.current(), this._pages)).addClass('active'); } }; /** * Extends event data. * @protected * @param {Event} event - The event object which gets thrown. */ Navigation.prototype.onTrigger = function(event) { var settings = this._core.settings; event.page = { index: jQuery.inArray(this.current(), this._pages), count: this._pages.length, size: settings && (settings.center || settings.autoWidth || settings.dotsData ? 1 : settings.dotsEach || settings.items) }; }; /** * Gets the current page position of the carousel. * @protected * @returns {Number} */ Navigation.prototype.current = function() { var current = this._core.relative(this._core.current()); return jQuery.grep(this._pages, jQuery.proxy(function(page, index) { return page.start <= current && page.end >= current; }, this)).pop(); }; /** * Gets the current succesor/predecessor position. * @protected * @returns {Number} */ Navigation.prototype.getPosition = function(successor) { var position, length, settings = this._core.settings; if (settings.slideBy == 'page') { position = jQuery.inArray(this.current(), this._pages); length = this._pages.length; successor ? ++position : --position; position = this._pages[((position % length) + length) % length].start; } else { position = this._core.relative(this._core.current()); length = this._core.items().length; successor ? position += settings.slideBy : position -= settings.slideBy; } return position; }; /** * Slides to the next item or page. * @public * @param {Number} [speed=false] - The time in milliseconds for the transition. */ Navigation.prototype.next = function(speed) { jQuery.proxy(this._overrides.to, this._core)(this.getPosition(true), speed); }; /** * Slides to the previous item or page. * @public * @param {Number} [speed=false] - The time in milliseconds for the transition. */ Navigation.prototype.prev = function(speed) { jQuery.proxy(this._overrides.to, this._core)(this.getPosition(false), speed); }; /** * Slides to the specified item or page. * @public * @param {Number} position - The position of the item or page. * @param {Number} [speed] - The time in milliseconds for the transition. * @param {Boolean} [standard=false] - Whether to use the standard behaviour or not. */ Navigation.prototype.to = function(position, speed, standard) { var length; if (!standard && this._pages.length) { length = this._pages.length; jQuery.proxy(this._overrides.to, this._core)(this._pages[((position % length) + length) % length].start, speed); } else { jQuery.proxy(this._overrides.to, this._core)(position, speed); } }; jQuery.fn.owlCarousel.Constructor.Plugins.Navigation = Navigation; })(window.Zepto || window.jQuery, window, document); /** * Hash Plugin * @version 2.1.0 * @author Artus Kolanowski * @author David Deutsch * @license The MIT License (MIT) */ ;(function(jQuery, window, document, undefined) { 'use strict'; /** * Creates the hash plugin. * @class The Hash Plugin * @param {Owl} carousel - The Owl Carousel */ var Hash = function(carousel) { /** * Reference to the core. * @protected * @type {Owl} */ this._core = carousel; /** * Hash index for the items. * @protected * @type {Object} */ this._hashes = {}; /** * The carousel element. * @type {jQuery} */ this.jQueryelement = this._core.jQueryelement; /** * All event handlers. * @protected * @type {Object} */ this._handlers = { 'initialized.owl.carousel': jQuery.proxy(function(e) { if (e.namespace && this._core.settings.startPosition === 'URLHash') { jQuery(window).trigger('hashchange.owl.navigation'); } }, this), 'prepared.owl.carousel': jQuery.proxy(function(e) { if (e.namespace) { var hash = jQuery(e.content).find('[data-hash]').addBack('[data-hash]').attr('data-hash'); if (!hash) { return; } this._hashes[hash] = e.content; } }, this), 'changed.owl.carousel': jQuery.proxy(function(e) { if (e.namespace && e.property.name === 'position') { var current = this._core.items(this._core.relative(this._core.current())), hash = jQuery.map(this._hashes, function(item, hash) { return item === current ? hash : null; }).join(); if (!hash || window.location.hash.slice(1) === hash) { return; } window.location.hash = hash; } }, this) }; // set default options this._core.options = jQuery.extend({}, Hash.Defaults, this._core.options); // register the event handlers this.jQueryelement.on(this._handlers); // register event listener for hash navigation jQuery(window).on('hashchange.owl.navigation', jQuery.proxy(function(e) { var hash = window.location.hash.substring(1), items = this._core.jQuerystage.children(), position = this._hashes[hash] && items.index(this._hashes[hash]); if (position === undefined || position === this._core.current()) { return; } this._core.to(this._core.relative(position), false, true); }, this)); }; /** * Default options. * @public */ Hash.Defaults = { URLhashListener: false }; /** * Destroys the plugin. * @public */ Hash.prototype.destroy = function() { var handler, property; jQuery(window).off('hashchange.owl.navigation'); for (handler in this._handlers) { this._core.jQueryelement.off(handler, this._handlers[handler]); } for (property in Object.getOwnPropertyNames(this)) { typeof this[property] != 'function' && (this[property] = null); } }; jQuery.fn.owlCarousel.Constructor.Plugins.Hash = Hash; })(window.Zepto || window.jQuery, window, document); /** * Support Plugin * * @version 2.1.0 * @author Vivid Planet Software GmbH * @author Artus Kolanowski * @author David Deutsch * @license The MIT License (MIT) */ ;(function(jQuery, window, document, undefined) { var style = jQuery('

').get(0).style, prefixes = 'Webkit Moz O ms'.split(' '), events = { transition: { end: { WebkitTransition: 'webkitTransitionEnd', MozTransition: 'transitionend', OTransition: 'oTransitionEnd', transition: 'transitionend' } }, animation: { end: { WebkitAnimation: 'webkitAnimationEnd', MozAnimation: 'animationend', OAnimation: 'oAnimationEnd', animation: 'animationend' } } }, tests = { csstransforms: function() { return !!test('transform'); }, csstransforms3d: function() { return !!test('perspective'); }, csstransitions: function() { return !!test('transition'); }, cssanimations: function() { return !!test('animation'); } }; function test(property, prefixed) { var result = false, upper = property.charAt(0).toUpperCase() + property.slice(1); jQuery.each((property + ' ' + prefixes.join(upper + ' ') + upper).split(' '), function(i, property) { if (style[property] !== undefined) { result = prefixed ? property : true; return false; } }); return result; } function prefixed(property) { return test(property, true); } if (tests.csstransitions()) { /* jshint -W053 */ jQuery.support.transition = new String(prefixed('transition')) jQuery.support.transition.end = events.transition.end[ jQuery.support.transition ]; } if (tests.cssanimations()) { /* jshint -W053 */ jQuery.support.animation = new String(prefixed('animation')) jQuery.support.animation.end = events.animation.end[ jQuery.support.animation ]; } if (tests.csstransforms()) { /* jshint -W053 */ jQuery.support.transform = new String(prefixed('transform')); jQuery.support.transform3d = tests.csstransforms3d(); } })(window.Zepto||window.jQuery,window,document); });
');jQuery(".path-video .view-video > .view-content ul.views-row.owl-carousel li").slice(0, 5).appendTo("body.path-video .view-video > .view-content div.first");setTimeout(function(){ jQuery("body.path-video .view-video > .view-content ul").append(''); jQuery(".path-video .view-video > .view-content ul.views-row.owl-carousel li").slice(0, 5).appendTo("body.path-video .view-video > .view-content div.second");}, 50);setTimeout(function(){if (jQuery(window).width() > 767) { jQuery("body.path-video .view-video > .view-content ul").owlCarousel({ margin: 0, nav: true, loop: true, responsive: { 0: { items: 1, stagePadding: 45, }, 768: { items: 1 } } });}}, 100); /*var oldhtml = jQuery('.news-content__title').html();var newhtml = oldhtml.replace(/Tom Petty/g, "TomPetty");jQuery('.news-content__title').html(newhtml); var oldhtml1 = jQuery('.news-detail .views-field-body').html();var newhtml1 = oldhtml1.replace(/Tom Petty/g, "TomPetty");jQuery('.news-detail .views-field-body').html(newhtml1);*/});

');}else{clearInterval(adCloseInterval);} }, 1000);}});

I apologize for the confusion, but the provided code seems to be a mix of JavaScript for an Owl Carousel plugin and additional HTML and jQuery for some specific functionality related to a video carousel on a website. Let me break down the key concepts and functionalities used in the provided code:

  1. Owl Carousel Plugin:

    • The code includes the Owl Carousel plugin, which is a responsive carousel jQuery plugin.
    • The plugin is used for creating a video carousel with navigation controls (prev/next) and dots for pagination.
  2. Video Carousel Initialization:

    • The video carousel is initialized with specific settings, such as margin, navigation options, loop, and responsiveness for different screen sizes.
  3. Video Carousel Content Organization:

    • The code organizes video content by moving the first five items to one container (div.first) and the next five items to another container (div.second).
    • This organization is likely done to create a two-row layout for the video carousel.
  4. Dynamic HTML Injection:

    • There is a dynamic HTML injection using jQuery to append elements based on certain conditions and window width.
    • This injection is likely for creating a responsive design, adjusting the layout based on the screen width.
  5. Event Handling:

    • The code includes event handlers for various Owl Carousel events, such as 'initialized', 'prepared', 'changed', and 'refreshed'.
    • These events are used to trigger specific actions when the carousel is initialized or when its content changes.
  6. Hash Plugin:

    • There is a Hash plugin integrated into the Owl Carousel, allowing navigation based on the URL hash.
    • When the URL hash changes, it triggers the 'hashchange.owl.navigation' event to navigate to the corresponding carousel item.
  7. Support Plugin:

    • There is a Support plugin that checks for browser support for transitions, animations, transforms, and 3D transforms.
    • This information is used to set properties in jQuery.support to determine browser capabilities.
  8. Interval for Ad Closing:

    • There is an interval function checking for the presence of a specific element with a class name related to ad closing.
    • If the element is found, it clears the interval, suggesting that it may be monitoring the status of an ad for closing.

Please note that the code appears to be incomplete, and some parts (commented-out sections and variables like oldhtml and newhtml) are not utilized or explained. Additionally, the actual content of the video elements and their source information is not provided in the code snippet. If you have specific questions or if there's a particular aspect you'd like more information on, please let me know.

Stevie Nicks' Best 80s Looks (2024)
Top Articles
Latest Posts
Article information

Author: Chrissy Homenick

Last Updated:

Views: 5844

Rating: 4.3 / 5 (74 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Chrissy Homenick

Birthday: 2001-10-22

Address: 611 Kuhn Oval, Feltonbury, NY 02783-3818

Phone: +96619177651654

Job: Mining Representative

Hobby: amateur radio, Sculling, Knife making, Gardening, Watching movies, Gunsmithing, Video gaming

Introduction: My name is Chrissy Homenick, I am a tender, funny, determined, tender, glorious, fancy, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.