PageSourceSearch

https://existdissolve.com/wp-content/plugins/slickr-flickr/scripts/public_ver-2.4.1.js

js existdissolve.com collected 2026-10-08 09:56:34 UTC 6,148 bytes, 159 lines download raw bytes

1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
2let window = _____WB$wombat$assign$function_____("window");
3let self = _____WB$wombat$assign$function_____("self");
4let document = _____WB$wombat$assign$function_____("document");
5let location = _____WB$wombat$assign$function_____("location");
6let top = _____WB$wombat$assign$function_____("top");
7let parent = _____WB$wombat$assign$function_____("parent");
8let frames = _____WB$wombat$assign$function_____("frames");
9let opens = _____WB$wombat$assign$function_____("opens");
10var slickr_flickr_slideshow_timer;
11var slickr_flickr_slideshow_timer_on = false;
12
13jQuery.noConflict();
14
15function slickr_flickr_next_slide(obj) {
16    var j = jQuery(obj);
17    if (j.children('div').length == 1)  return ;
18    options = j.parent().data("options");    
19    if (('autoplay' in options) && (options['autoplay'] == false)) return;   
20    var $active = j.children('div.active');
21    if ( $active.length == 0 ) $active = j.children('div:last');
22    var $next =  $active.next().length ? $active.next() : j.children('div:first');
23
24    $active.addClass('last-active');
25    $next.css({opacity: 0.0})
26        .addClass('active')
27        .animate({opacity: 1.0}, options['transition'], function() {
28            $active.removeClass('active last-active');
29        });
30}
31
32function slickr_flickr_next_slides() {
33   jQuery('.slickr-flickr-slideshow').each(function(index){
34   		s=jQuery(this);
35        if (! s.hasClass('responsive')) slickr_flickr_next_slide(s) ;
36   });
37}
38
39function slickr_flickr_set_slideshow_height(slideshow,imgheight,divheight) {
40    var s = jQuery(slideshow);
41    s.find('div img').css("max-height",imgheight+"px");
42    s.css("height", divheight+"px");
43}    
44
45function slickr_flickr_set_slideshow_width(slideshow,width) {
46    var s = jQuery(slideshow);
47    s.find('div img').css("max-width",width+"px");
48    s.css("width",width+"px");
49} 
50
51function slickr_flickr_set_slideshow_click(slideshow,link,target) {
52    var s = jQuery(slideshow);
53    if (link=='next') 
54    	s.unbind('click').click( function() {  slickr_flickr_next_slide(s) ; });
55	else if (link=='toggle') 
56		s.unbind('click').click( function() {  slickr_flickr_toggle_slideshows() ; });
57	else 
58		if (target == "_self")
59			s.unbind('click').click( function() {  window.location = link.replace(/\\/g, ''); }); 
60		else
61			s.unbind('click').click( function() {  window.open(link.replace(/\\/g, ''),target); }); 		
62}
63
64function slickr_flickr_toggle_slideshows() {
65   if (slickr_flickr_slideshow_timer_on)
66       slickr_flickr_stop_slideshows();
67   else
68       slickr_flickr_start_slideshows();
69}
70
71function slickr_flickr_stop_slideshows() {
72    clearTimeout(slickr_flickr_slideshow_timer);
73    slickr_flickr_slideshow_timer_on = false;
74}
75
76function slickr_flickr_start_slideshows() {
77    var mindelay = 0;
78    var mintimeout = 0;
79    jQuery('.slickr-flickr-slideshow').each(function(index){
80     var s =jQuery(this);
81   	 options = s.parent().data('options');
82   	 if (options) {
83 	    if (s.hasClass('responsive')) {
84    		if (('timeout' in options) && (options['timeout'] != '')) {
85    			timeout = options['timeout'];
86    		    if ((!(timeout == undefined)) && ((mintimeout == 0) || (timeout < mintimeout))) mintimeout = timeout;
87    		} 		
88    	} else {
89    		if (('link' in options) && (options['link'] != ''))  slickr_flickr_set_slideshow_click(s,options['link'],options['target']);
90    		if (('width' in options) && (options['width'] != ''))  slickr_flickr_set_slideshow_width(s,options['width']);
91     		if (('height' in options) && (options['height'] != ''))  {
92     			imgheight = parseInt(options['height']);
93     			divheight = imgheight+ (s.hasClass("nocaptions") ? 0 : 30);
94     			if (s.hasClass("descriptions")) divheight += 50;
95 	    		slickr_flickr_set_slideshow_height(s,imgheight,divheight);
96 			}
97    		if (('delay' in options) && (options['delay'] != '')) {
98    			delay = options['delay'];
99    		    if ((!(delay == undefined)) && ((mindelay == 0) || (delay < mindelay))) mindelay = delay;
100    		} 		 
101		}
102	  }
103    });
104	if (mindelay > 0) {
105		slickr_flickr_stop_slideshows();
106	    slickr_flickr_slideshow_timer = setInterval("slickr_flickr_next_slides()",mindelay);
107	    slickr_flickr_slideshow_timer_on = true;
108    }
109	if (mintimeout > 0) {
110	  jQuery('.slickr-flickr-slideshow.responsive').each(function(index){
111    	var s =jQuery(this);
112   		options = s.parent().data('options');
113   		if (options) {
114    		options['timeout'] = mintimeout;
115			s.find('ul').responsiveSlides(options);
116		}
117	  });
118    }
119
120}
121
122function slickr_flickr_start() {    
123    if (jQuery('.slickr-flickr-galleria').size() > 0) {
124    	jQuery(".slickr-flickr-galleria").each(function(index){
125    	    var $options = jQuery(this).parent().data("options");
126    	    var lazy = ('thumbnails' in $options) && ($options['thumbnails'] == 'lazy');
127    	    jQuery(this).galleria($options);
128			if (lazy) Galleria.ready( function(options) { this.lazyLoadChunks( 10, 200); } );
129    	});
130    } 
131    
132    jQuery(".slickr-flickr-gallery").find('img').hover( 
133		function(){ jQuery(this).addClass('hover');},
134		function(){ jQuery(this).removeClass('hover');}); 	
135		
136    jQuery(".slickr-flickr-gallery").each( function (index) {	
137        $options = jQuery(this).parent().data("options");
138  		if ($options && ('border' in $options) && ($options['border'] != '')) {
139  			$id = jQuery(this).parent().attr('id');
140	 		jQuery('<style type="text/css">#'+$id+' img.hover{ background-color:'+$options['border']+'; }</style>').appendTo('head');
141 		}
142 		if (jQuery(this).hasClass('sf-lightbox')) {
143  			jQuery(this).find('a').each( function (ind) { 
144  				jQuery(this).click( function(e) { 
145					e.preventDefault();
146					e.stopPropagation();
147 	        		var lg = jQuery(this).closest('.sf-lightbox').parent();
148 	        		var options = lg.data("options");
149					options['start'] = ind; 
150  					lg.lightGallery(options); 
151  				} );
152  			});
153 		}
154 	});
155 	 
156    slickr_flickr_start_slideshows();
157
158}
159}

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.