PageSourceSearch

https://www.bankingonclimatechaos.org/wp-content/themes/bocc-2021/inc/assets/js/ran.js?ver=7.0.5

js bankingonclimatechaos.org collected 2026-10-02 06:31:41 UTC 4,646 bytes, 159 lines download raw bytes

1jQuery(window).load(function () {
2	jQuery('.fa-search').click(function(e){
3		e.stopPropagation();
4	});
5	jQuery('#menu-search').click(function(e){
6		e.stopPropagation();
7	});
8	jQuery('.fa-search').click(function(e) {
9		jQuery('#menu-search').toggle();
10	});
11	jQuery(".issue-understory-img").mouseenter(function() {
12		jQuery(this).children(".blog-overlay").fadeIn();
13	})
14	.mouseleave(function() {
15	    jQuery(this).children(".blog-overlay").fadeOut();
16	});
17	jQuery(".issue-understory-img").focusin(function() {
18		jQuery(this).children(".blog-overlay").fadeIn();
19	})
20	.focusout(function() {
21	    jQuery(this).children(".blog-overlay").fadeOut();
22	});
23	
24	jQuery(".content-image-wrap .image").mouseenter(function() {
25		jQuery(this).children(".blog-overlay").fadeIn();
26	})
27	.mouseleave(function() {
28	    jQuery(this).children(".blog-overlay").fadeOut();
29	});
30	jQuery(".content-image-wrap .image").focusin(function() {
31		jQuery(this).children(".blog-overlay").fadeIn();
32	})
33	.focusout(function() {
34	    jQuery(this).children(".blog-overlay").fadeOut();
35	});
36	jQuery('#ss-floating-bar').css('opacity', '0');
37	
38	jQuery('.take-action-block a').click( function(e){
39		if (jQuery(window).width() > 800) { 
40			e.preventDefault();
41			var url = jQuery(this).attr("href");
42			jQuery('#responsive-iframe iframe').attr('src', url);
43			jQuery('#iframe-container').css('display','block');
44		}
45	});
46	
47	jQuery('#iframe-container').click( function(){
48		jQuery('#iframe-container').css('display','none');
49		jQuery('#responsive-iframe iframe').attr('src', '');
50	});
51	
52	jQuery('a.revel-button').click( function(e){
53		if (jQuery(window).width() > 800) { 
54			e.preventDefault();
55			var url = jQuery(this).attr("href");
56			jQuery('.page-video-test-page #responsive-iframe iframe').attr('src', url);
57			jQuery('.page-video-test-page #iframe-container').css('display','block');
58		}
59	});
60	
61	jQuery('.page-video-test-page #iframe-container').click( function(){
62		jQuery('.page-video-test-page #iframe-container').css('display','none');
63		jQuery('.page-video-test-page #responsive-iframe iframe').attr('src', '');
64	});
65	
66	/* temporary code for the EOY takeover stuff */
67	/*jQuery('#pum-8889').on('pumBeforeOpen', function () {
68        var $video = jQuery('video', jQuery(this));
69        $video[0].play();
70    });*/
71    /*
72	if (typeof jQuery.cookie('pum-8889') != 'undefined'){ 
73		jQuery("#bobble").css('display', 'block');
74		eoy_scroll_watcher();
75	} 
76	 jQuery('.pum-close').click(function(){
77		jQuery("#bobble").css('display', 'block');
78		eoy_scroll_watcher();
79	}); */
80
81	/* widow fix */
82		
83	jQuery(".understory-featured-image h1.block-headline").each(function() {
84	  var wordArray = jQuery(this).text().split(" ");
85	  if (wordArray.length > 1) {
86	    wordArray[wordArray.length-2] += " " + wordArray[wordArray.length-1];
87	    wordArray.pop();
88	    jQuery(this).html(wordArray.join(" "));
89	  }
90	});
91	jQuery('.site-footer .covid').hover(function(){
92		jQuery('#eegg').toggle("slow");
93	});
94
95});
96jQuery(document).on('click','.navbar-collapse',function(e) {
97    if( jQuery(e.target).is('a') ) {
98        jQuery(this).collapse('hide');
99    }
100});
101
102/* temporary code for Big Give */
103
104	var images = ['https://www.ran.org/wp-content/uploads/2021/05/Give-Big-2021_lightbox_Tarsier.png',
105					'https://www.ran.org/wp-content/uploads/2021/05/Give-Big-2021_lightbox_Leopard.png',
106					'https://www.ran.org/wp-content/uploads/2020/04/Give-Big-2020-lightbox.png'];
107	jQuery(function () {
108        var i = 0;
109        jQuery("#popmake-8889 img").attr("src", images[i]);
110        setInterval(function () {
111            i++;
112            if (i == images.length) {
113                i = 0;
114            }
115            jQuery("#popmake-8889 img").attr("src", images[i]);
116        }, 6000);
117    });
118
119 /* temporary code for the EOY takeover stuff 
120 
121 function eoy_scroll_watcher() {
122	 jQuery(document).scroll(function() {
123		  var y = jQuery(this).scrollTop();
124		  
125		  if (y > 350) {
126		    eoy_slide_up();
127		  } 
128		  if (y < 350) {
129		    eoy_slide_down();
130		  }
131		});
132 }
133function eoy_slide_up() {
134	jQuery("#bobble").stop().animate({
135        height: '200px'
136    }, 700, 'swing');
137    jQuery("body").css('margin-bottom', '190px');
138    jQuery("body.home").css('margin-bottom', '0');
139}
140
141function eoy_slide_down() {
142	jQuery("#bobble").stop().animate({
143        height: '0px'
144    }, 500, 'swing');
145     jQuery("body").css('margin-bottom', '0px');
146     jQuery("body.home").css('margin-bottom', '0');
147}
148
149*/
150
151jQuery(document).scroll(function() {
152  var y = jQuery(this).scrollTop();
153  if (y > 450) {
154    jQuery('#ss-floating-bar').css('opacity', '1');
155  } else {
156    jQuery('#ss-floating-bar').css('opacity', '0');
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.