PageSourceSearch

https://norml.org/wp-content/themes/arcane/js/featured-carousel.js?ver=1.0

js norml.org collected 2026-09-24 08:40:21 UTC 1,187 bytes, 45 lines download raw bytes

1/**
2 * Featured Content Carousel v1.0 - depends on `owl-carousel.js`
3 * Contains handlers for the featured content carousel
4 *
5 * Copyright (c) 2013-2016 DesignOrbital.com
6 * License: GNU General Public License v2 or later
7 * http://www.gnu.org/licenses/gpl-2.0.html
8 */
9
10( function( $ ) {
11
12	// Document Ready
13	$( document ).ready( function() {
14
15		// Images Loaded
16		$( '.arcane-featured-content' ).imagesLoaded( function() {
17
18			// Featured Content Carousel
19			var arcaneFeaturedContent = $( '.arcane-featured-content' );
20			arcaneFeaturedContent.owlCarousel({
21
22			    rtl:             ( $( 'body' ).hasClass( 'rtl' ) )? true : false,
23			    items:           1,
24			    autoplay:        true,
25			    autoplayTimeout: 10000,
26			    smartSpeed:      600,
27			    loop:            ( arcaneFeaturedContent.children().length > 1 )? true : false,
28			    margin:          0,
29			    nav:             false,
30			    dots:            true
31
32			});
33
34			// Show Carousel
35			$( '.featured-content-spinner' ).remove();
36			$( '.featured-content-wrapper' ).removeClass( 'featured-content-loader' );
37			$( '.arcane-featured-content' ).animate( {
38				'opacity' : 1
39			}, 250 );
40
41		});
42
43	} );
44
45} )( 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.