PageSourceSearch

https://www.elda.es/wp-content/themes/Divi-child/js/tooltipster-elda.js

js elda.es collected 2026-10-02 11:51:17 UTC 2,962 bytes, 101 lines download raw bytes

1jQuery(document).ready(function() {
2	jQuery('.lengua-signos').each(function() {
3		//alert (this.id);
4		//alert(jQuery('#' + this.id + ' a').html());
5		menu = jQuery('#' + this.id + ' a').html();
6		 
7	
8		if (!('ontouchstart' in document.documentElement)) {
9			//alert(this.id + ' - ' + menu);
10		
11			//alert(menu);
12			video = 'http://www.elda.es/lengua_signos/menu' + menu + '.mp4';
13			//alert (fileExiste(video));
14			//file_exists
15			if (existeUrl(video)){
16				jQuery('#' + this.id + ' > a').tooltipster({
17					debug: false,
18					side: ['right', 'left'],
19					animation: 'fade',
20					delay: 200,
21					theme: 'tooltipster-elda',
22					trigger: 'hover',
23					//trigger: 'ontouchstart' in window || navigator.maxTouchPoints ? 'dblclick' : 'hover',
24					contentAsHTML: true,
25					selfDestruction: true,
26					content: '<video autoplay loop muted width="350" height="200" style="border-radius:5px"><source src="' + video + '" type="video/mp4" /></video>'
27				});
28
29			
30		    };
31	    }; 
32	});
33	
34	jQuery('.lengua-signos-contenido').each(function() {
35		//console.log (this.id);
36		//alert(jQuery('#' + this.id + ' a').html());
37		//contenido = jQuery('#' + this.id + ' a').html();
38		 
39	
40		if (!('ontouchstart' in document.documentElement)) {
41			//alert(this.id + ' - ' + contenido);
42		
43			//alert(contenido);
44			video = 'http://www.elda.es/lengua_signos/' + this.id + '.mp4';
45			//console.log (video);
46			//file_exists
47			if (existeUrl(video)){
48				jQuery('#' + this.id ).tooltipster({
49					debug: false,
50					side: ['right', 'left'],
51					animation: 'fade',
52					delay: 200,
53					theme: 'tooltipster-elda',
54					trigger: 'hover',
55					//trigger: 'ontouchstart' in window || navigator.maxTouchPoints ? 'dblclick' : 'hover',
56					contentAsHTML: true,
57					selfDestruction: true,
58					content: '<video autoplay loop muted width="350" height="200" style="border-radius:5px"><source src="' + video + '" type="video/mp4" /></video>'
59				});
60
61			
62		    };
63	    }; 
64	});
65	
66	jQuery('.imagen-grande').each(function() {
67		//alert (this.id);
68		//alert(jQuery('#' + this.id + ' a').attr("src"));
69		imagen = jQuery('#' + this.id + ' a img').attr("src");
70		 
71	
72		if (!('ontouchstart' in document.documentElement)) {
73			//alert(imagen);
74		
75			//alert (fileExiste(video));
76			//file_exists
77			
78				jQuery('#' + this.id + ' > a').tooltipster({
79					debug: false,
80					side: ['bottom','top'],
81					animation: 'fade',
82					delay: 200,
83					theme: 'tooltipster-elda',
84					trigger: 'hover',
85					//trigger: 'ontouchstart' in window || navigator.maxTouchPoints ? 'dblclick' : 'hover',
86					contentAsHTML: true,
87					selfDestruction: true,
88					content: '<img src="' + imagen + '" width="380" height="380">'
89				});
90
91		
92	    }; 
93	});
94});
95function existeUrl(url) {
96	//alert('entra');
97   var http = new XMLHttpRequest();
98   http.open('HEAD', url, false);
99   http.send();
100   return http.status!=404;
101}

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.