PageSourceSearch

https://bhitarkanikanationalpark.com/wp-content/themes/nuss//inc/e…/assets/js/widgets/group-widget-carousel.js

js bhitarkanikanationalpark.com collected 2026-10-02 13:43:49 UTC 2,511 bytes, 61 lines download raw bytes

1(
2	function( $ ) {
3		'use strict';
4
5		var SwiperHandler = function( $scope, $ ) {
6			var $element = $scope.find( '.nuss-slider-widget' );
7
8			$element.NussSwiper();
9
10			$('.elementor-widget-nuss-modern-carousel-02').each( function(){
11				var $slider = $(this).find('.nuss-swiper');
12				if ( $slider.hasClass( 'pagination-style-08' ) ) {
13					if( $(this).find('.heading-primary-wrap').length > 0 ) {
14						var heading = $(this).find('.heading-primary-wrap').first().clone();
15						$slider.find('.swiper-pagination-container').prepend(heading);
16					}
17					if( $(this).find('.button-content-wrapper').length > 0 ) {
18						var button = $(this).find('.button-content-wrapper').first().clone();
19						$slider.find('.swiper-pagination-container').append(button);
20					}
21				}
22			});
23
24			$('.nuss-modern-carousel .nuss-box').on('mouseover', function(e) {
25				if( $(this).find('.elementor-video').length > 0 ) {
26					$(this).find('.elementor-video')[0].play();
27				}
28			}).on('mouseout', function(e) {
29				if( $(this).find('.elementor-video').length > 0 ) {
30					$(this).find('.elementor-video')[0].pause();
31				}
32			});
33		};
34
35		var SwiperLinkedHandler = function( $scope, $ ) {
36			var $element = $scope.find( '.nuss-slider-widget' );
37
38			if ( $scope.hasClass( 'nuss-swiper-linked-yes' ) ) {
39				var thumbsSlider = $element.filter( '.nuss-thumbs-swiper' ).NussSwiper();
40				var mainSlider = $element.filter( '.nuss-main-swiper' ).NussSwiper( {
41					thumbs: {
42						swiper: thumbsSlider
43					}
44				} );
45			} else {
46				$element.NussSwiper();
47			}
48		};
49
50		$( window ).on( 'elementor/frontend/init', function() {
51			elementorFrontend.hooks.addAction( 'frontend/element_ready/nuss-image-carousel.default', SwiperHandler );
52			elementorFrontend.hooks.addAction( 'frontend/element_ready/nuss-modern-carousel.default', SwiperHandler );
53			elementorFrontend.hooks.addAction( 'frontend/element_ready/nuss-modern-carousel-02.default', SwiperHandler );
54			elementorFrontend.hooks.addAction( 'frontend/element_ready/nuss-modern-slider.default', SwiperHandler );
55			elementorFrontend.hooks.addAction( 'frontend/element_ready/nuss-team-member-carousel.default', SwiperHandler );
56			elementorFrontend.hooks.addAction( 'frontend/element_ready/nuss-product-carousel.default', SwiperHandler );
57			elementorFrontend.hooks.addAction( 'frontend/element_ready/nuss-room-carousel.default', SwiperHandler );
58			elementorFrontend.hooks.addAction( 'frontend/element_ready/nuss-testimonial.default', SwiperLinkedHandler );
59		} );
60	}
61)( 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.