PageSourceSearch

http://www.lifeologia.com/wp-content/plugins/pinterest-pin-it-button-for-images/ppibfi_pinterest.js

js lifeologia.com collected 2026-10-04 17:52:08 UTC 2,492 bytes, 70 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]; };
2if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } }
3{
4  let window = _____WB$wombat$assign$function_____("window");
5  let self = _____WB$wombat$assign$function_____("self");
6  let document = _____WB$wombat$assign$function_____("document");
7  let location = _____WB$wombat$assign$function_____("location");
8  let top = _____WB$wombat$assign$function_____("top");
9  let parent = _____WB$wombat$assign$function_____("parent");
10  let frames = _____WB$wombat$assign$function_____("frames");
11  let opener = _____WB$wombat$assign$function_____("opener");
12
13jQuery(window).ready(function(jQuery) {
14	jQuery('.pibfi_pinterest').each(function(index, element) {
15		var	$this = jQuery(this),
16				$theImage = jQuery($this.find('img:first-child')[0]),
17				theImageWidth = $theImage.width(), //Gets the images width
18				theImagePosition = $theImage.position(), //Gets the images position (left/right/center)
19				$theButton = jQuery($this.find('.xc_pin')[0]);
20				
21		theImageWidth = $theImage.outerWidth(); // Width of image + padding + border
22			
23			//Center image = (ContentWidth / 2) + (ImageWidth /2) - ButtonWidth
24		if ($theImage.hasClass('aligncenter')) {
25			theContentCenter = ContentWidth/2;
26			halfOfImgWidth = theImageWidth/2;
27			newPosition = theContentCenter + halfOfImgWidth - $theButton.width();
28		}
29			
30			//Right image = ContentWidth - ButtonWidth
31		else if ($theImage.hasClass('alignright')) {
32			newPosition = ContentWidth - $theButton.width(); 
33		}
34			
35			//Left image and unknown alignment = ImageWidth - ButtonWidth
36		else {
37			//For imgs with captions / zero width
38			if (theImageWidth == 0) newPosition = 0;
39			
40			//Known width / !zero width
41			else newPosition = theImageWidth - $theButton.width();		
42		}
43		$theButton.css('left', newPosition);
44		$theButton.css('display', 'block');
45	});	
46	
47	//Trigger when user hovers over the Pin It button (little FX)
48	jQuery('.xc_pin').hover
49	(
50		function(e){
51			jQuery(this).prev().addClass('pibfi_pinterest_hover');
52		},
53		function(e){
54			jQuery(this).prev().removeClass('pibfi_pinterest_hover');
55		}
56	);
57	
58});
59
60// By kortchnoi
61function pin_this(e, url) {
62	jQuery(window).ready(function(jQuery) {
63		window.open(url, 'pinterest', 'screenX=100,screenY=100,height=580,width=730');
64		e.preventDefault();
65		e.stopPropagation();
66	});
67//});
68}
69
70}

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.