PageSourceSearch

https://500wordsmag.com/wp-content/themes/Observer/js/observer-scripts.js

js 500wordsmag.com collected 2026-10-02 07:37:24 UTC 3,901 bytes, 145 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");
10jQuery(document).ready(
11
12		//tabs
13		
14		function($) {
15			 "use strict";
16			$('.tabber-container').each(function() {
17				$(this).find(".tabber-content").hide();
18				$(this).find("ul.tabs li:first").addClass("active").show();
19				$(this).find(".tabber-content:first").show();
20			});
21			$("ul.tabs li").click(
22					function(e) {
23						$(this).parents('.tabber-container').find("ul.tabs li")
24								.removeClass("active");
25						$(this).addClass("active");
26						$(this).parents('.tabber-container').find(
27								".tabber-content").hide();
28						var activeTab = $(this).find("a").attr("href");
29						$(this).parents('.tabber-container').find(activeTab)
30								.fadeIn();
31						e.preventDefault();
32					});
33			$("ul.tabs li a").click(function(e) {
34				e.preventDefault();
35			});
36			
37			//ticker
38			
39		function tick(){
40		$("ul.ticker-list li:first").animate({marginLeft : '-200px'},400,function() {$(this).detach().appendTo("ul.ticker-list").removeAttr("style");
41			});
42		}
43		
44		var interval = setInterval(tick, 5000);
45		   
46			$('ul.ticker-list li').hover(function() {
47				clearInterval(interval);
48			}, function() {
49				interval = setInterval(tick, 5000);
50			});
51
52			//carousel
53			
54			$('.carousel').flexslider({
55				animation : 'slide',
56				itemWidth : 161,
57				itemMargin : 16,
58				move : 2,
59				slideshow : false,
60				start : function() {
61					$('.carousel li').css('visibility', 'visible');
62				},
63			});
64			
65			//video type page carousel
66			
67			$('.tv-carousel').flexslider({
68				animation : 'slide',
69				itemWidth : 161,
70				itemMargin : 16,
71				move : 2,
72				slideshow : false,
73				controlNav : false
74			});
75		
76			//video type page ajax
77			
78			$('.ajax').click(
79					function(event) {
80						event.preventDefault();
81						var post_id = $(this).attr("href");
82
83						jQuery.ajax({
84							post : post_id,
85							type : "POST",
86							data : {id : post_id},
87							success : function(output) {
88								$(".tv-video-wrapper").replaceWith(
89										$('.tv-video-wrapper', output));
90							}
91						});
92					});
93					
94			//keyboard navigation next prev 		
95			   $(document).keydown(function(e) {
96					var url = false;
97				if (e.which == 37) {  // Left arrow key code
98						url = $('.previous-title a').attr('href');
99					}
100				else if (e.which == 39) {  // Right arrow key code
101						url = $('.next-title a').attr('href');
102				}
103				if (url) {
104						window.location = url;
105				}
106			});
107			
108			//menu button for responsive mobile
109			
110			
111			$("#mob-menu").click(function() {
112				$("#main-nav ul").toggleClass("active");
113				$(this).toggleClass("active");
114				
115			});
116
117			//back to top button
118			
119			$('.back-2-top').click(function() {
120				$('html, body').animate({
121					scrollTop : 0
122				}, 'fast');
123				return false;
124			});
125
126			//hover for Three-posts
127						
128			$(".three-posts li").hover(
129				  function () {
130					$(".three-posts li").removeClass('three-hover');
131					$(this).addClass('three-hover');
132				  });
133
134			//simple IE fix for iframe embeds z-index
135			
136			$('iframe').each(function() {
137				var url = $(this).attr("src");
138				var char = "?";
139				if (url.indexOf("?") != -1) {
140					var char = "&";
141				}
142				$(this).attr("src", url + char + "wmode=transparent");
143			});
144		});
145}

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.