PageSourceSearch

https://www.reneelab.net/wp-content/plugins/go_pricing/assets/js/go_pricing_scripts.js?ver=2.4.1

js reneelab.net collected 2026-09-26 10:40:33 UTC 4,694 bytes, 135 lines download raw bytes

1/* -------------------------------------------------------------------------------- /	
2	
3	Plugin Name: Go - Responsive Pricing & Compare Tables
4	Plugin URI: http://codecanyon.net/item/go-responsive-pricing-compare-tables-for-wp/3725820
5	Description: The New Generation Pricing Tables. If you like traditional Pricing Tables, but you would like get much more out of it, then this rodded product is a useful tool for you.
6	Author: Granth
7	Version: 2.4.1
8	Author URI: http://themeforest.net/user/Granth
9	
10	+----------------------------------------------------+
11		TABLE OF CONTENTS
12	+----------------------------------------------------+
13	
14	[1] INIT
15	[2] COMMON		
16	[3] GOOGLE MAP
17	[4] EQUALIZE ROWS
18	
19/ -------------------------------------------------------------------------------- */
20
21(function ($, undefined) {
22	"use strict";
23	
24	$(function () {
25	
26	/* ---------------------------------------------------------------------- /
27		[1] INIT
28	/ ---------------------------------------------------------------------- */	
29		
30		$.GW_GoPricing = {
31
32			/* Init function */
33			Init : function () {
34				this.$wrap = $('.gw-go');
35				this.equalize = this.$wrap.data('equalize');
36				this.InitMediaElementPlayer();
37				this.InitGoogleMap();
38				this.isIE = document.documentMode != undefined && document.documentMode >5 ? document.documentMode : false;
39				if (this.isIE) {
40					this.$wrap.addClass('gw-go-ie8');
41				};
42				if ($.GW_GoPricing!=undefined && $.GW_GoPricing.equalize==true) {
43					this.EqualizeRows();
44				};
45			},
46			
47			/* Mediaelement Player init */
48			InitMediaElementPlayer : function () {
49				if (jQuery().mediaelementplayer && $.GW_GoPricing.$wrap.find('audio, video').length) {	
50					$.GW_GoPricing.$wrap.find('audio, video').mediaelementplayer({
51						audioWidth: '100%',
52						videoWidth: '100%'
53					});			
54				};									
55			},
56			
57			/* Google map init */
58			InitGoogleMap : function () {
59				if (jQuery().goMap && $.GW_GoPricing.$wrap.find('.gw-go-gmap').length) {
60					$.GW_GoPricing.$wrap.find('.gw-go-gmap').each(function(index) {
61						var $this=$(this);
62						$this.goMap($this.data('map'));
63					});
64				};
65			},
66			
67			/* Equalize rows */
68			EqualizeRows : function () {
69				$.GW_GoPricing.$wrap.each(function(index, element) {
70					var $this = $(this),
71						$GW_GoPricing_Cells = $this.find('.gw-go-body li .gw-go-body-cell');
72	
73					for (var row=0;row<$this.data('rownum');row++) {
74						var GW_GoPricing_Heights = [], 
75							$GW_GoPricing_TempItems = [];
76						
77						for (var x=0;x<$this.data('colnum');x++) {
78							$GW_GoPricing_Cells.eq(x*$this.data('rownum')+row).css('height','auto')
79							GW_GoPricing_Heights.push(parseInt($GW_GoPricing_Cells.eq(x*$this.data('rownum')+row).height()));
80							$GW_GoPricing_TempItems[x] = $GW_GoPricing_Cells.eq(x*$this.data('rownum')+row);
81							if (x==$this.data('colnum')-1) {
82								for (var y in $GW_GoPricing_TempItems) {
83									$($GW_GoPricing_TempItems[y]).css('height','auto').css('height',Math.max.apply(Math,GW_GoPricing_Heights)+'px');
84								};
85							};
86						};
87					};									
88				});
89			}
90		};
91		
92		/* JS init */
93		$.GW_GoPricing.Init();			
94		
95		/* Submit button event if form found */
96		$.GW_GoPricing.$wrap.delegate('span.gw-go-btn', 'click', function(){	
97			var $this=$(this);
98			if ($this.find('form').length) { $this.find('form').submit(); };
99		});	
100	
101	/* ---------------------------------------------------------------------- /
102		[3] GOOGLE MAP
103	/ ---------------------------------------------------------------------- */	
104	
105		if (jQuery().goMap && $.GW_GoPricing.$wrap.find('.gw-go-gmap').length) {
106			var GW_GoPricing_MapResize=false;
107			$(window).on('resize', function(e) {
108				if (GW_GoPricing_MapResize) { clearTimeout(GW_GoPricing_MapResize); }
109				GW_GoPricing_MapResize = setTimeout(function() {
110					$.GW_GoPricing.$wrap.find('.gw-go-gmap').each(function(index, element) {
111					  $(this).goMap();
112					  $.goMap.map.panTo($.goMap.getMarkers('markers')[0].getPosition());
113					});
114				}, 400);
115			});			
116		};
117		
118	/* ---------------------------------------------------------------------- /
119		[4] EQUALIZE ROWS
120	/ ---------------------------------------------------------------------- */	
121	
122
123		if ($.GW_GoPricing!=undefined && $.GW_GoPricing.equalize==true) {
124			var GW_GoPricing_TableResize=false;
125			
126			$(window).on('resize', function(e) {
127				if (GW_GoPricing_TableResize) { clearTimeout(GW_GoPricing_TableResize); }
128				GW_GoPricing_TableResize = setTimeout(function() {
129					$.GW_GoPricing.EqualizeRows();
130				}, 210);
131			});	
132		};
133
134	});
135}(jQuery));	

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.