PageSourceSearch

https://ipmark.com/wp-content/themes/ipmark/js/script.js?ver=e603a465c8698dbb5db4ea5d893ddd73

js ipmark.com collected 2026-10-01 10:31:48 UTC 8,440 bytes, 321 lines download raw bytes

1//ABRIR POPUP LOGIN
2(function ($) {
3	$(document).ready(function () {
4		if ($('.woo-login-popup-sc-open').length > 0) {
5			setTimeout(function () {
6				var data = {
7					'action': 'checkloginpopup'
8				};
9
10				$.ajax({
11					url : js_params.ajaxurl,
12					data:data,
13					type:'POST',
14
15					success:function(data){
16						if( data ) {
17							if (data === 'not_shown') {
18								jQuery('.woo-login-popup-sc-open').click();
19							}
20						}
21					}
22				});
23
24			}, 100);
25		}
26	});
27}(jQuery));
28
29
30
31(function ($) {
32	$(document).ready(function () {
33		var iframe = $('#surveyIframe');
34		var initialSrc = iframe.attr('src');
35		var initialHeight = iframe.height();
36		var initialWidth = iframe.width();
37
38		// Monitorea la carga del iframe para detectar cambios de página
39		iframe.on('load', function() {
40			var currentSrc = iframe.attr('src');
41			if (currentSrc !== initialSrc) {
42				console.log("El contenido del iframe ha cambiado debido a una nueva URL.");
43				// Aquí puedes realizar cualquier acción que necesites después de que se envíe el formulario
44				initialSrc = currentSrc;
45			}
46		});
47
48		// Monitorea el redimensionamiento del iframe para detectar cambios en el contenido
49		setInterval(function() {
50			var currentHeight = iframe.height();
51			var currentWidth = iframe.width();
52
53			if (initialHeight !== currentHeight || initialWidth !== currentWidth) {
54				console.log("El contenido del iframe ha cambiado debido al redimensionamiento.");
55				// Aquí puedes realizar cualquier acción que necesites después de que se envíe el formulario
56				initialHeight = currentHeight;
57				initialWidth = currentWidth;
58			}
59		}, 1000);
60	});
61}(jQuery));
62
63
64
65
66
67// #DECO# HEADING PAGE, SECTION
68// Detalle de producto > Productos relacionados
69
70jQuery(".woocommerce .related.products h2").wrap("<div class='header-title'></div>");
71
72// SMOOTH SCROLLING WHEN CLICKING AN ANCHOR LINK
73
74document.querySelectorAll('.destacado a[href^="#"]').forEach(anchor => {
75	anchor.addEventListener('click', function (e) {
76		e.preventDefault();
77
78		document.querySelector(this.getAttribute('href')).scrollIntoView({
79			behavior: 'smooth'
80		});
81	});
82});
83
84
85// EQUALIZE HEIGHTS TITLE LISTED POST
86
87// Related post > Entrada, Entrevista
88(function ($) {
89	$(document).ready(function () {
90		if ($(window).width() > 600) {
91			var maxHeight = -1;
92			$('.related-posts .entry-title').each(function () {
93				if ($(this).height() > maxHeight) {
94					maxHeight = $(this).height();
95				}
96			});
97			$('.related-posts .entry-title').height(maxHeight);
98		}
99	});
100}(jQuery));
101
102
103// Widget featured post > HOME 2x2
104(function ($) {
105	$(document).ready(function () {
106		if ($(window).width() > 600) {
107			var maxHeight = -1;
108			$('.widget_featured_posts .twolines .entry-title').each(function () {
109				if ($(this).height() > maxHeight) {
110					maxHeight = $(this).height();
111				}
112			});
113			$('.widget_featured_posts .twolines .entry-title').height(maxHeight);
114		};
115	});
116}(jQuery));
117
118// Widget featured post > HOME 4
119(function ($) {
120	$(document).ready(function () {
121		if ($(window).width() > 600) {
122			var maxHeight = -1;
123			$('.widget_featured_posts .oneline .entry-title').each(function () {
124				if ($(this).height() > maxHeight) {
125					maxHeight = $(this).height();
126				}
127			});
128			$('.widget_featured_posts .oneline .entry-title').height(maxHeight);
129		}
130	});
131}(jQuery));
132
133// Widget featured post > HOME 2, 1col
134(function ($) {
135	$(document).ready(function () {
136		if ($(window).width() > 600) {
137			var maxHeight = -1;
138			$('.widget_featured_posts .primera-columna .entry-title').each(function () {
139				if ($(this).height() > maxHeight) {
140					maxHeight = $(this).height();
141				}
142			});
143			$('.widget_featured_posts .primera-columna .entry-title').height(maxHeight);
144		};
145	});
146}(jQuery));
147
148// LISTADO INFORMES
149(function ($) {
150	$(document).ready(function () {
151		if ($(window).width() > 600) {
152			var maxHeight = -1;
153			$('.list-informes .article-content .entry-title').each(function () {
154				if ($(this).height() > maxHeight) {
155					maxHeight = $(this).height();
156				}
157			});
158			$('.list-informes .article-content .entry-title').height(maxHeight);
159		};
160	});
161}(jQuery));
162
163// LISTADO ENTREVISTAS
164(function ($) {
165	$(document).ready(function () {
166		if ($(window).width() > 600) {
167			var maxHeight = -1;
168			$('.list-entrevistas .article-content .above-entry-meta').each(function () {
169				if ($(this).height() > maxHeight) {
170					maxHeight = $(this).height();
171				}
172			});
173			$('.list-entrevistas .article-content .above-entry-meta').height(maxHeight);
174		};
175	});
176}(jQuery));
177(function ($) {
178	$(document).ready(function () {
179		if ($(window).width() > 600) {
180			var maxHeight = -1;
181			$('.list-entrevistas .article-content .entry-title').each(function () {
182				if ($(this).height() > maxHeight) {
183					maxHeight = $(this).height();
184				}
185			});
186			$('.list-entrevistas .article-content .entry-title').height(maxHeight);
187		};
188	});
189}(jQuery));
190
191// SUSCRIPCIONES columns table
192(function ($) {
193	$(document).ready(function () {
194		if ($(window).width() > 320) {
195			var maxHeight = -1;
196			$('.page-suscripciones #pricePlans #plans .plan .content').each(function () {
197				if ($(this).height() > maxHeight) {
198					maxHeight = $(this).height();
199				}
200			});
201			$('.page-suscripciones #pricePlans #plans .plan .content').height(maxHeight);
202		};
203	});
204}(jQuery));
205
206
207jQuery(document).ready(function ($) {
208	// CATEGORY
209	// 2x2 items
210
211	if ($(window).width() > 730) {
212		var maxHeight = -1;
213		$('.archive.category .widget_slider_area .archive-layout-grid.post .entry-title').each(function () {
214			if ($(this).height() > maxHeight) {
215				maxHeight = $(this).height();
216			}
217		});
218		$('.archive.category .widget_slider_area .archive-layout-grid.post .entry-title').height(maxHeight);
219	};
220});
221
222(function ($) {
223	$(document).ready(function () {
224		if ($(window).width() > 730) {
225			var maxHeight = -1;
226			$('.archive.category .widget_slider_area .archive-layout-grid.post > a').each(function () {
227				if ($(this).height() > maxHeight) {
228					maxHeight = $(this).height();
229				}
230			});
231			$('.archive.category .widget_slider_area .archive-layout-grid.post > a').height(maxHeight);
232		};
233	});
234}(jQuery));
235// 4 items inline
236(function ($) {
237	$(document).ready(function () {
238		if ($(window).width() > 730) {
239			var maxHeight = -1;
240			$('.archive.category .article-container > .archive-layout-grid.post .entry-title').each(function () {
241				if ($(this).height() > maxHeight) {
242					maxHeight = $(this).height();
243				}
244			});
245			$('.archive.category .article-container > .archive-layout-grid.post .entry-title').height(maxHeight);
246		};
247	});
248}(jQuery));
249(function ($) {
250	$(document).ready(function () {
251		if ($(window).width() > 730) {
252			var maxHeight = -1;
253			$('.archive.category .article-container > .archive-layout-grid.post > a').each(function () {
254				if ($(this).height() > maxHeight) {
255					maxHeight = $(this).height();
256				}
257			});
258			$('.archive.category .article-container > .archive-layout-grid.post > a').height(maxHeight);
259		};
260	});
261}(jQuery));
262
263// TAG
264(function ($) {
265	$(document).ready(function () {
266		if ($(window).width() > 730) {
267			var maxHeight = -1;
268			$('.archive.tag .article-container > .archive-layout-grid.post .entry-title').each(function () {
269				if ($(this).height() > maxHeight) {
270					maxHeight = $(this).height();
271				}
272			});
273			$('.archive.tag .article-container > .archive-layout-grid.post .entry-title').height(maxHeight);
274		};
275	});
276}(jQuery));
277
278// SEARCH
279(function ($) {
280	$(document).ready(function () {
281		if ($(window).width() > 730) {
282			var maxHeight = -1;
283			$('.search .article-container > .archive-layout-grid.post .entry-title').each(function () {
284				if ($(this).height() > maxHeight) {
285					maxHeight = $(this).height();
286				}
287			});
288			$('.search .article-container > .archive-layout-grid.post .entry-title').height(maxHeight);
289		};
290	});
291}(jQuery));
292
293//  Envolver texto con span
294
295//  MI CUENTA > DESCARGAS
296(function ($) {
297	$(document).ready(function () {
298		$('.woocommerce-account .woocommerce-info').each(function () {
299			var text = $(this).text();
300			$(this).html('<span>
300' + text + '</span>');
301		});
302	});
303}(jQuery));
304
305// MI CUENTA > Invitar
306(function ($) {
307	$(document).ready(function () {
308		$('span.woocommerce-input-wrapper select#role option').each(function () {
309			$(this).val($(this).val().toLowerCase());
310		});
311	});
312}(jQuery));
313
314//Error links "#"
315$(document).on('click', 'a', function(e){ 
316    e.preventDefault(); 
317    var url = $(this).attr('href'); 
318    window.open(url, '_blank');
319});
320
321

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.