PageSourceSearch

https://www.explorehistoricalif.com/wp-content/plugins/cyclone-slider/js/client.js?ver=3.2.0

js explorehistoricalif.com collected 2026-09-25 00:50:14 UTC 3,779 bytes, 83 lines download raw bytes

1jQuery(document).ready(function($){
2    
3    /*** Lightbox ***/
4    (function() {
5        try{
6            $('.magnific-pop').magnificPopup({
7                type:'image'
8            });
9        } catch (ignore) {}
10    })();
11    
12});
13
14/*** Global template functionalities ***/
15(function() {
16    var slides_selector = '.cycloneslider-template-dark .cycloneslider-slides';
17    
18    slides_selector += ',.cycloneslider-template-default .cycloneslider-slides';
19    slides_selector += ',.cycloneslider-template-standard .cycloneslider-slides';
20    slides_selector += ',.cycloneslider-template-thumbnails .cycloneslider-slides';
21    
22    slides_selector += ',.cycloneslider-template-galleria .cycloneslider-slides';
23    slides_selector += ',.cycloneslider-template-text .cycloneslider-slides';
24    slides_selector += ',.cycloneslider-template-dos .cycloneslider-slides';
25    
26    jQuery(document).on('cycle-before', slides_selector, function( event, optionHash, outgoingSlideEl, incomingSlideEl, forwardFlag ) {
27        var slide = jQuery( outgoingSlideEl ), /* Current slide */
28            curHeight = 0,
29            nextHeight = 0;
30        
31        /* Autoheight when dynamic height is on */
32        /* Using getBoundingClientRect() instead of jQuery's outerHeight() for more accurate reading (floating point values) */
33        if( "on" == optionHash.dynamicHeight ) {
34            curHeight = jQuery(outgoingSlideEl)[0].getBoundingClientRect().height;
35            if ( undefined == curHeight || 0 == curHeight ) { /* IE8 returns undefined so we use outerHeight as fallback. Also works for older templates! */
36                curHeight = jQuery(outgoingSlideEl).outerHeight();
37            }
38            
39            nextHeight = jQuery(incomingSlideEl)[0].getBoundingClientRect().height;
40            if ( undefined == nextHeight || 0 == nextHeight ) { /* IE8 returns undefined so we use outerHeight as fallback. Also works for older templates! */
41                nextHeight = jQuery(incomingSlideEl).outerHeight();
42            }
43            if ( nextHeight != curHeight ) jQuery(this).animate({height:nextHeight}, optionHash.autoHeightSpeed, optionHash.autoHeightEasing);
44        }
45        
46        if(slide.hasClass('cycloneslider-slide-youtube')) pauseYoutube( slide ); /* Pause youtube video on next */
47        
48        if(slide.hasClass('cycloneslider-slide-vimeo')) pauseVimeo( slide ); /* Pause vimeo video on next */
49    });
50
51    jQuery(document).on('cycle-initialized cycle-after', slides_selector, function( event, optionHash, outgoingSlideEl, incomingSlideEl, forwardFlag ) {
52        var index = (event.type == 'cycle-initialized') ? optionHash.currSlide : optionHash.nextSlide;
53        var slide = jQuery( optionHash.slides[ index ] ); /* Current slide */
54        
55        /* Make sure current slide has the highest z-index.
56        Fix for issue when previous slides appear on top of the current slide due to cycle's weird z-index assigments */
57        if( false == optionHash.hideNonActive ) slide.css('zIndex', parseInt(slide.css('zIndex'))+20);
58    });
59    
60    function pauseYoutube( slide ){
61        var data = {
62            "event": "command",
63            "func": "pauseVideo",
64            "args": [],
65            "id": ""
66        }
67        postMessage( slide.find('iframe'), data, '*');
68    }
69    
70    function pauseVimeo( slide ){
71        postMessage( slide.find('iframe'), {method:'pause'}, slide.find('iframe').attr('src'));
72    }
73    
74    function postMessage(iframe, data, url){
75        try{
76            if (iframe[0]) { // Frame exists
77                iframe[0].contentWindow.postMessage(JSON.stringify(data), url);
78            }
79        } catch (ignore) {}
80    }
81    
82})();
83

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.