1var servidor = "https://www.ine.es"; 2var dominio = ""; 3var idioma = ""; 4 5var isMobile = { 6 Android: function() { 7 return navigator.userAgent.match(/Android/i); 8 }, 9 BlackBerry: function() { 10 return navigator.userAgent.match(/BlackBerry/i); 11 }, 12 iOS: function() { 13 return navigator.userAgent.match(/iPhone|iPad|iPod/i); 14 }, 15 Opera: function() { 16 return navigator.userAgent.match(/Opera Mini/i); 17 }, 18 Mobile: function() { 19 return navigator.userAgent.match(/Mobile/i); 20 }, 21 GooglebotMobile: function() { 22 return navigator.userAgent.match(/Googlebot-Mobile/i); 23 }, 24 Windows: function() { 25 return navigator.userAgent.match(/IEMobile/i); 26 }, 27 any: function() { 28 return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows() || isMobile.Mobile() || isMobile.GooglebotMobile()); 29 } 30}; 31 32function loadScript(url,callback){ 33 var script = document.createElement('script'); 34 script.setAttribute('type', 'text/javascript'); 35 script.setAttribute('src', url); 36 if(callback!=null) 37 script.addEventListener('load', callback); 38 document.head.appendChild(script); 39} 40 41function loadStyle(url,callback){ 42 var script = document.createElement('style'); 43 script.setAttribute('type', 'text/css'); 44 script.setAttribute('src', url); 45 if(callback!=null) 46 script.addEventListener('load', callback); 47 document.head.appendChild(script); 48} 49 50function exitWidgetNyA(){ 51 open("/dyngs/INEbase/es/operacion.htm?c=Estadistica_C&cid=1254736177009&menu=ultiDatos&idp=1254735572981", "_blank"); 52} 53 54function descargarNyA(){ 55 open("/explica/explica_estadymas_widget_nomape_ayuda.htm", "_blank"); 56} 57 58function setZindex(obj){ 59 obj.parentElement.style.zIndex = 999999; 60} 61 62function showAddPpalNyA(){ 63 document.getElementById("addPpal").style.display = "block" 64} 65 66function pintarWidgetDestino(miwidget,urldestino,newquery, s,w, h, mw,mh, bc, borc, title, destino, pintarCab, idioma){ 67 miwidget = miwidget.replace("http://", "https://"); 68 document.getElementById(destino).innerHTML = getWidget(miwidget,urldestino,newquery, s,w, h, mw,mh, bc, borc, title, pintarCab, idioma); 69} 70 71function pintarWidget(miwidget,urldestino,s,mw,mh,title){ 72 return pintarWidgetCab(miwidget,urldestino,s,mw,mh,title,true); 73} 74 75function pintarWidgetCab(miwidget,urldestino,s,mw,mh,title,pintarCab){ 76 var w = ""; 77 var h = ""; 78 var bc = ""; 79 var borc = ""; 80 81 var miurl=""; 82 var aux=""; 83 var sinSubDom = servidor.split("."); 84 sinSubDom = sinSubDom[sinSubDom.length - 2] + "." + sinSubDom[sinSubDom.length - 1]; 85 86 for (var i=0;i<document.scripts.length;i++){ 87 aux = document.scripts[i].src; 88 if (aux != "" && aux.indexOf('?') > 0 && aux.split("?")[0].split(sinSubDom).length >= 2 && aux.split("?")[0].split(sinSubDom)[1].toUpperCase() == miwidget.toUpperCase()){ 89 miurl=aux; 90 break; 91 } 92 } 93 94 var hx1 = miurl.substring(eval(miurl.indexOf("h=")+2), miurl.length); 95 var hx2 = hx1.substring(0,hx1.indexOf("px")); 96 97 var hx3 = miurl.substring(0,eval(miurl.indexOf("h=")+2)) + eval(hx2-19) + hx1.substring(hx1.indexOf("px"), hx1.length); 98 99 var pos=hx3.indexOf("?"); 100 if(pos==-1) 101 pos=hx3.length; 102 else 103 pos++; 104 var query=hx3.substring(pos,hx3.length); 105 106 var obj = readParams(query); 107 108 idioma = obj.L; 109 if(idioma == "") 110 idioma = 0 111 112 if (obj.capaDest === undefined || obj.capaDest==null){ 113 document.body.insertAdjacentHTML("beforeend", getWidget(miwidget,urldestino,query, obj.s, obj.w, obj.h, obj.mw, obj.mh, obj.bc, obj.borc, title, pintarCab, idioma)); 114 115 } else { 116 document.getElementById(obj.capaDest).innerHTML = getWidget(miwidget,urldestino,query, obj.s, obj.w, obj.h, obj.mw, obj.mh, obj.bc, obj.borc, title, pintarCab, idioma); 117 } 118} 119 120function readParams(query){ 121 var objStr =""; 122 var valvalue=""; 123 124 if (query.length>0){ 125 var n=query.split("&"); 126 objStr+="[{"; 127 for (var i=0;i<n.length;i++){ 128 valvalue = n[i].split("="); 129 if (i>0) 130 objStr+=","; 131 objStr+="\"" + valvalue[0] + "\":\"" + valvalue[1]+ "\""; 132 } 133 objStr+="}]"; 134 } 135 136 var obj = eval(objStr); 137 if(obj !== undefined && obj.length>0) 138 return obj[0]; 139 else
140 return null; 141 } 142 143function loadText(){ 144 document.getElementById("imgInfo").title = texto41; 145 document.getElementById("imgDesc").title = texto42; 146 if (isMobile.any()) 147 document.getElementById("imgAcceso").title = texto43; 148 document.getElementById("addPpal").title = texto43; 149 150 document.getElementById("txt21").innerHTML = texto44; 151 document.getElementById("txt22").innerHTML = texto45; 152 document.getElementById("txt23").innerHTML = texto46; 153 document.getElementById("txt24").innerHTML = texto44; 154 document.getElementById("txt25").innerHTML = texto45; 155 document.getElementById("txt26").innerHTML = texto46; 156 document.getElementById("txt27").innerHTML = texto44; 157 document.getElementById("txt28").innerHTML = texto45; 158 document.getElementById("txt29").innerHTML = texto47; 159 160 document.getElementById("imgAnd").title = texto48; 161 document.getElementById("imgIos").title = texto48; 162 document.getElementById("imgWp").title = texto48; 163} 164 165function getWidget(miwidget,urldestino,newquery, s,w, h, mw,mh, bc, borc, title, pintarCab, idioma){ 166 return getWidgetCab(miwidget,urldestino,newquery, s,w, h, mw,mh, bc, borc, title, true, idioma); 167} 168 169function getWidgetCab(miwidget,urldestino,newquery, s,w, h, mw,mh, bc, borc, title,pintarCab, idioma){ 170 var cadenasalida=""; 171 if (pintarCab){ 172 cadenasalida ="<div style=\""; 173 cadenasalida +="display: block;"; 174 if (bc!== undefined && bc.length>0) 175 cadenasalida +="background-color:#" + bc + ";"; 176 cadenasalida +="border-style: solid; "; 177 if (borc!== undefined && borc.length>0) 178 cadenasalida +="border-color:#" + borc + ";"; 179 cadenasalida +="border-width: 1px;margin-right: auto;margin-left: auto;"; 180 cadenasalida +="padding: 0; box-sizing: border-box;"; 181 182 var wx = w.substring(0, w.indexOf("px"))-15; 183 var hx = h.substring(0, h.indexOf("px")); 184 var hxIframe = eval(hx)-30; 185 186 cadenasalida +="width: " + wx + "px;"; 187 cadenasalida +="height: " + hx + "px;"; 188 if (s!== undefined && s.length>0) 189 cadenasalida +="font-size: " + s + ";"; 190 cadenasalida +="clear:both;"; 191 cadenasalida +=" \">"; 192 } 193 194 cadenasalida += "<iframe id=\"contWidget\" name=\"contWidget\" title=\"Buscador\" frameborder=\"0\" height=\"100%\" width=\"100%\" src=\"" + urldestino +"?" + newquery +"\""; 195 196 if (s!== undefined && s.length>0) 197 cadenasalida+=" scrolling=\"" + s + "\""; 198 if (mw!== undefined && mw.length>0) 199 cadenasalida+=" marginwidth=\"" + mw + "\""; 200 if (mh!== undefined && mh.length>0) 201 cadenasalida+=" marginheight=\"" + mh + "\""; 202 if (title.length>0) 203 cadenasalida+=" title=\"" + title + "\""; 204 205 cadenasalida +="></iframe>"; 206 207 if (pintarCab){ 208 cadenasalida += `` 209 } 210 return cadenasalida; 211} 212 213var miwidget="/widgets/nombApell/nombApell.js"; 214var url=servidor + "/widgets/nombApell/nombApell.shtml"; 215 216try{ 217 pintarWidget(miwidget,url,'','','',''); 218}catch(exp){ 219 console.log(exp) 220 alert(exp); 221}
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.