PageSourceSearch

https://inegi.org.mx/app/areasgeograficas/scripts/tab-indicadores/menuMobile.min.js?v1.1.5

js inegi.org.mx collected 2026-09-24 09:06:18 UTC 17,022 bytes, 1 lines download raw bytes

1var mb_ageo, mb_tema, mb_fuente, mb_tematica, mb_principales, mb_idioma = "es", mb_detectedTem = !1, mb_isBie = ""; !function () { function i(e) { return new n(e) } var n = function (e) { if (e) { configura(e).init(); var i = document.querySelectorAll(e), n = 0; for (this.length = i.length, this.id = i[this.length - 1].id, this.dominio = C_dominio, this.tk = C_token, "localhost" === document.domain || "" === document.domain ? this.imagen = C_libreriasAlpha : this.imagen = "/componentes/biinegi", this.servicio = C_direccionServicio_V + "_" + API_V, this.container = e, tcmb_cotenedor = e; n < this.length; n++)this[n] = i[n]; return this } return function () { this.autor = "Departamento de Investigación y desarrollo de sistemas web y móviles", this.name = "menuMobile", this.version = "1.0.1", this.fecha_creacion = "07/08/2017", this.control = "AMCR" }() }; i.fn = n.prototype = { init: function (e, i, n, t, o, a, l) { var s = this; s.cargaLibrerias(), s.reiniciar(), document.getElementById("contentMobile").innerHTML = "", mb_idioma = e, mb_ageo = i, mb_tema = n, mb_fuente = t, mb_tematica = o, mb_principales = a, mb_isBie = l, s.evento(); s.goServicio("0000") }, cargaLibrerias: function () { this.librerias("css/menu.min.css", "css", "menu0") }, librerias: function (e, i, n) { var t, o = n; document.getElementById(o) || (n = document.getElementsByTagName("head")[0], "css" === i ? ((t = document.createElement("link")).rel = "stylesheet", t.type = "text/css", t.id = o, t.href = e, 0 === $('link[href="' + e + '"]').length && n.appendChild(t)) : ((t = document.createElement("script")).type = "text/javascript", t.id = o, t.src = e, 0 === $('script[src="' + e + '"]').length && n.appendChild(t))) }, goServicio: function (e) { var i = this, e = i.servicio + "/API.svc/NodosTemas/" + mb_ageo + "/" + mb_idioma + "/" + e + "/" + mb_fuente + "/null/" + mb_principales + "/" + mb_tematica + "/" + mb_isBie + "/null/" + herramientaMX + "/json/" + i.tk + "?callback=?"; $.getJSON(e, null, function (e) { void 0 === e.ErrorCode ? i.printMenu(e) : document.getElementById(i.id).innerHTML = "No se encontraron resultados con el tema y área geográfica seleccionada" }) }, printMenu: function (e) { var i, n, t = this, o = "", a = -1; o += '<ul id="ul-movil" class="list-group collapsible">'; for (var l = 0; l < e.length; l++)a++, i = null !== e[l].tema.color && 2 !== e[l].tema.color.length ? "#" + e[l].tema.color : t.takeColor(e[l].tema.tema), n = null === e[l].tema.urlImagen || "" === e[l].tema.urlImagen ? "inegi-pib" : "inegi-" + e[l].tema.urlImagen.split("/")[3].replace(".png", ""), o += '<li id="li_' + a + '" class="list-group-item mobile" onclick="menuMobile(\'' + t.container + "').clicTematica(this,'" + e[l].tema.tema + "','" + e[l].tema.nombre + "','" + i + "',event);\">", o += '<div class="li-head">', o += '<div id="li-icon_' + a + '" class="li-divIcon" style="background-color:' + i + '"><span class="' + n + ' center-block fs center" style="line-height:50px!important;"></span></div>', o += '<label class="txtTitle" title="' + e[l].tema.nombre + '">' + e[l].tema.nombre + "</label>", o += "</div>", o += '<div class="li-content oculto" id="li-content_' + a + '"></div>', o += "</li>"; o += "</ul>", document.getElementById(t.id).innerHTML = o, hideLoading() }, clicTematica: function (e, i, n, t, o) { void 0 !== colorGlobal && (colorGlobal = t); e = e.id; indexTema = e.split("_")[1]; var a = void 0 === (window.event || a) ? o.target : window.event.target || a, a = void 0 === a.className ? "txtTitle" : a.className; "txtTitle" !== a && -1 === a.indexOf("fs") || this.trataTema(e, i, n, t) }, trataTema: function (e, i, n, t) { var o = this, a = e.split("_")[1], l = document.getElementById("li-content_" + a).innerHTML, a = -1 !== document.getElementById("li_" + a).className.indexOf("visibleMobile") ? "open" : "closed"; "closed" == a && "" === l && o.buildTemas(e, i, n, t), o.changeClase(e, a, t) }, buildTemas: function (n, t, o, a) { var l = this, e = l.servicio + "/API.svc/NodosTemas/" + mb_ageo + "/" + mb_idioma + "/" + t + "/" + mb_fuente + "/null/" + mb_principales + "/" + mb_tematica + "/" + mb_isBie + "/null/" + herramientaMX + "/json/" + l.tk + "?callback=?"; $.getJSON(e, null, function (e) { var i; void 0 !== e.ErrorCode && 100 === e.ErrorCode || l.printSubtema(e, n, t, o, a), 100 === e.ErrorCode && (i = n.split("_")[1], null !== (e = document.getElementById("reloj_" + i)) && (e.style.display = "none"), $("#spanSubMobile_" + i).removeClass(), document.getElementById("ulsubMobile_" + i).innerHTML = ' <ul class="list-group ulsubtm visible"><li class="list-group-item mobileSub" style="padding-left:45px">Servicio no disponible por el momento, favor de intentar más tarde</li>', $("#spanSubMobile_" + i).addClass("inegi-menos-c inegi-menos-tm"), l.putTooltip("#spanSubMobile_" + i, "en" === mb_idioma ? "Close" : "Cerrar")) }) }, buildSubTemas: function (n, t, o, a, l) { var s = this, e = s.servicio + "/API.svc/NodosTemas/" + mb_ageo + "/" + mb_idioma + "/" + t + "/" 
1+ mb_fuente + "/null/" + mb_principales + "/" + mb_tematica + "/" + mb_isBie + "/null/" + herramientaMX + "/json/" + s.tk + "?callback=?"; $.getJSON(e, null, function (e) { var i; void 0 !== e.ErrorCode && 100 === e.ErrorCode || (s.printSubtema(e, n, t, o, a), s.changeChedronClase(l, t, a)), 100 === e.ErrorCode && (i = n.split("_")[1], null !== (e = document.getElementById("reloj_" + i)) && (e.style.display = "none"), $("#spanSubMobile_" + i).removeClass(), document.getElementById("ulsubMobile_" + i).innerHTML = ' <ul class="list-group ulsubtm visible"><li class="list-group-item mobileSub" style="padding-left:45px">Servicio no disponible por el momento, favor de intentar más tarde</li>', $("#spanSubMobile_" + i).addClass("inegi-menos-c inegi-menos-tm"), s.putTooltip("#spanSubMobile_" + i, "en" === mb_idioma ? "Close" : "Cerrar")) }) }, printSubtema: function (e, i, n, t, o) { var a, l, s, c = this, d = "", r = i.split("_")[1], m = c.espacioNivel(t.split(">").length), u = "", b = "localhost" === document.domain ? "http://desarrollowww.inegi.org.mx/img/throbber.gif" : "/img/throbber.gif", p = "en" === mb_idioma ? "Metadata" : "Metadato", v = "en" === mb_idioma ? "Open" : "Abrir"; -1 === i.indexOf("spanSubMobile_") && (d += '<ul class="list-group ulsubtm">'); for (var g, h, _, f, C, y = 0; y < e.length; y++)"TEMA" === e[y].tipoNodo ? (l = t + " > " + (f = e)[C = y].tema.nombre, 1 === C && f[C].tema.tema, d += '<li class="list-group-item mobileSub" id="lisubMobile_' + f[C].tema.tema + '" style="padding-left:' + m + '" onclick="menuMobile(\'' + c.container + "').clicSubtema(this,'" + f[C].tema.tema + "','" + l + "','" + o + "',event);\">", d += '<img hspace="0" vspace="0" border="0" id="reloj_' + f[C].tema.tema + '" src="' + b + " \" style='display:none; vertical-align:text-top;'/>", d += '<span style="cursor:pointer;" class="inegi-mas-ca inegi-mas-tm" id="spanSubMobile_' + f[C].tema.tema + '" data-original-title="' + v + '" data-toggle="tooltip" data-placement="bottom"></span>', d += '<label class="ttlTemaMobile" id="lblMobile_' + f[C].tema.tema + '">', d += f[C].tema.nombre + "</label>", d += "</li>", d += '<ul id="ulsubMobile_' + f[C].tema.tema + '" class="list-group ulsubtm oculto"></ul>') : (_ = t, s = null !== (g = e)[h = y].indicador.unidad ? " (" + (null !== g[h].indicador.factor && "" !== g[h].indicador.factor ? g[h].indicador.factor + ("es" === mb_idioma ? " de " : " of ") : "") + g[h].indicador.unidad + ")" : "", u = null === g[h].indicador.nombre ? " " : g[h].indicador.nombre, valor = null !== g[h].indicador.descripcionExcepcion ? g[h].indicador.descripcionExcepcion : g[h].indicador.valor, a = _ + " > " + g[h].indicador.nombre, d += '<li class="list-group-item mobileSub" id="lisubMobile_' + g[h].indicador.indicador + '" >', d += '<div class="row indicador" onclick="menuMobile(\'' + c.container + "').clicLiIndicator('" + g[h].indicador.indicador + "','" + g[h].indicador.unidad + "','" + g[h].indicador.desglose + "','" + a + "','" + n + "','" + g[h].indicador.descPeriodo + "','" + g[h].indicador.periodoCorto + "','" + g[h].indicador.valor + "',event);\">", d += '<div class="col-xs-12 col-sm-9">', d += '<span class="inegi-info metadato" data-original-title="' + p + '" data-toggle="tooltip" data-placement="bottom"></span>', d += '<label class="ttlTemaMobile" id="lblMobile_' + g[h].indicador.indicador + '">', d += u.trim() + s + ", " + g[h].indicador.descPeriodo + "</label>", d += "</div>", d += '<div class="col-xs-12 col-sm-3">', d += '<div class="row">', d += '<div class="col-xs-10 number">', d += "<span>" + valor + "</span>", d += "</div>", d += '<div class="col-xs-2 colspanfcha">', d += '<span id="fcha_' + g[h].indicador.indicador + '" class="glyphicon glyphicon-chevron-down undefined" data-original-title="' + v + '" data-toggle="tooltip" data-placement="bottom"></span>', d += "</div>", d += "</div>", d += "</div>", d += "</div>", d += '<div class="row indicador conte hide" id="contenidoInd_' + g[h].indicador.indicador + '">', d += "</div>", d += "</li>"); -1 !== i.indexOf("spanSubMobile_") ? null !== document.getElementById("ulsubMobile_" + r) && function e() { 0 === d.length ? setTimeout(function () { e() }, 100) : document.getElementById("ulsubMobile_" + r).innerHTML = d }() : (d += "</ul>", null !== document.getElementById("li-content_" + r) && (document.getElementById("li-content_" + r).innerHTML = d)); i = document.getElementById("reloj_" + r); null !== i && (i.style.display = "none") }, clicSubtema: function (e, i, n, t, o) { void 0 !== window.event && window.event.target.nodeName; var a = void 0 === (window.event || a) ? o.target : window.event.target || a; this.trataSubNiveles(a.id, i, n, t) }, clicLiIndicator: function (i, n, t, o, a, l, s, c, d) { var r = void 0 === (window.event || r) ? e.target : window.event.target || r, m = "SPAN" === r.nodeName && -1 !== r.className.indexOf("info") ? "metadato" : "comparativo", u = -1 !== document.getElementById("contenidoInd_" + i).className.indexOf("hide") ? "open" : "closed", r = "contenidoInd_" + i; this.trataEstilo(r, i, n, t, m, a, l, s, c, o, u) }, trataEstilo: function (e, i, n, t, o, a, l, s, c, d, r) { var m = this, u = ""; "metadato" === o ? ($("#flecha_" + i).removeClass(), $("li.ind").removeClass("li-selected "), u = "en" === mb_idioma ? "Close" : "Cerrar", $("#flecha_" + i).addClass("glyphicon glyphicon-chevron-up undefined flecha"), $("#liInd_" + i).addClass("li-selected"), $("div.vr").removeClass("visible"), $("div.vr").addClass("oculto"), $("#" + e).removeClass("oculto"), $("#" + e).addClass("visible"), $("#fcha_" + i).removeClass("glyphicon glyphicon-chevron-down undefined"), $("#fcha_" + i).addClass("glyphicon glyphicon-chevron-up undefined"), m.putTooltip("#flecha_" + i, u), m.registraEvento(i, n, t, d, o, a, l, s, c
1)) : (m.trataEstiloV2(r, i), $("#flecha_" + i).removeClass(), $("li.ind").removeClass("li-selected "), "open" === r ? (u = "en" === mb_idioma ? "Close" : "Cerrar", $("#flecha_" + i).addClass("glyphicon glyphicon-chevron-up undefined flecha"), $("#liInd_" + i).addClass("li-selected"), $("div.vr").removeClass("visible"), $("div.vr").addClass("oculto"), $("#" + e).removeClass("oculto"), $("#" + e).addClass("visible"), m.putTooltip("#flecha_" + i, u), m.registraEvento(i, n, t, d, o, a, l, s, c)) : (u = "en" === mb_idioma ? "Open" : "Abrir", $("#flecha_" + i).addClass("glyphicon glyphicon-chevron-down undefined flecha"), $("#" + e).removeClass("visible"), $("#" + e).addClass("oculto"), m.putTooltip("#flecha_" + i, u))) }, trataEstiloV2: function (e, i) { "open" === e ? ($("#contenidoInd_" + i).removeClass("hide"), $("#contenidoInd_" + i).addClass("show"), $("#fcha_" + i).removeClass("glyphicon glyphicon-chevron-down undefined"), $("#fcha_" + i).addClass("glyphicon glyphicon-chevron-up undefined")) : ($("#contenidoInd_" + i).removeClass("show"), $("#contenidoInd_" + i).addClass("hide"), $("#fcha_" + i).removeClass("glyphicon glyphicon-chevron-up undefined"), $("#fcha_" + i).addClass("glyphicon glyphicon-chevron-down undefined")) }, trataSubNiveles: function (e, i, n, t) { var o = e.split("_")[1], a = "spanSubMobile_" + o, l = -1 !== document.getElementById(a).className.indexOf("menos") ? "open" : "closed", s = document.getElementById("ulsubMobile_" + o).innerHTML, e = document.getElementById("reloj_" + o); "closed" == l && "" === s ? (null !== e && (e.style.display = "inline-block"), this.buildSubTemas(a, o, n, t, l)) : (this.changeChedronClase(l, o, t), null !== e && (e.style.display = "none")) }, changeChedronClase: function (e, i, n) { var t = "spanSubMobile_" + i; $("#" + t).removeClass(), $("#ulsubMobile_" + i).removeClass("visible oculto"); var o = ""; "open" === e ? (o = "en" === mb_idioma ? "Open" : "Abrir", $("#" + t).addClass("inegi-mas-ca inegi-mas-tm"), $("#ulsubMobile_" + i).addClass("oculto")) : (o = "en" === mb_idioma ? "Close" : "Cerrar", $("#" + t).addClass("inegi-menos-c inegi-menos-tm"), $("#ulsubMobile_" + i).addClass("visible")), this.putTooltip("#" + t, o) }, putTooltip: function (e, i) { $(e).tooltip("hide"), $(e).attr("title", i), $(e).attr("data-toggle", "tooltip"), $(e).attr("data-placement", "left"), $(e).attr("data-original-title", i), $(e).tooltip("fixTitle") }, espacioNivel: function (e) { var i = ""; switch (e) { case 1: i = "25px !important;"; break; case 2: i = "45px !important;"; break; case 3: i = "55px !important;"; break; case 4: i = "65px !important;"; break; case 5: i = "75px !important;"; break; case 6: i = "85px !important;"; break; case 7: i = "95px !important;"; break; case 8: i = "105px !important;"; break; case 9: i = "110px !important;"; break; case 10: i = "120px !important;"; break; case 11: i = "130px !important;" }return i }, addClase: function (e) { var i = e.split("_")[1], n = $("#" + e + " div.li-divIcon").css("background-color"); $("#" + e).addClass("visibleMobile"), $("#" + e).css({ "background-color": n }), $("#li-content_" + i).removeClass(), $("#li-content_" + i).addClass("li-content visible") }, addClase2: function (e) { $("label.ttlTemaMobile").removeClass("lblActive"), $("li.list-group-item").removeClass("li-lblActive"), $("#lblMobile_" + e).addClass("lblActive"), $("#lisubMobile_" + e).addClass("li-lblActive") }, removeClase: function (e) { for (var i, n = $(".mobile"), t = 0; t < n.length; t++)i = n[t].id.split("_")[1], $("#" + n[t].id).removeClass("visibleMobile"), $("#" + n[t].id).css({ "background-color": "#f5f5f5", color: "#555" }), $("#li-content_" + i).removeClass(), $("#li-content_" + i).addClass("li-content oculto") }, changeClase: function (e, i, n) { this.removeClase(e), "closed" === i && this.addClase(e) }, takeIcon: function (e) { var i = ""; switch (e) { case "000100000000": i = "inegi-pib"; break; case "000200000000": i = "inegi-empresas"; break; case "000400000000": i = "inegi-agriganpes "; break; case "000100800040": case "000500020000": case "000800000000": case "0010": case "017000300000": i = "inegi-salud"; break; case "001400000000": i = "inegi-ambiente"; break; case "000600000000": i = "inegi-poblacion "; break; case "000700000000": i = "inegi-empleo"; break; case "000900000000": i = "inegi-educacion"; break; case "001000000000": i = "inegi-hogares"; break; case "001100000000": i = "inegi-gobierno"; break; case "001200000000": i = "inegi-seguridad "; break; case "0001": case "000800000000": case "015000000000": i = "inegi-estadisticasexp" }return i }, takeColor: function (e) { var i = "#fea719"; switch (e) { case "000200000000": case "001300000000": i = "#268277"; break; case "000400000000": case "001400000000": i = "#009f00 "; break; case "000600000000": case "000800000000": case "000900000000": case "001000000000": i = "#f17505 "; break; case "001100000000": case "001200000000": i = "#7e005e " }return i }, evento: function () { var e = "newEvento" + this.container; document.addEventListener ? document.addEventListener(e, onClicMobile, !1) : document.attachEvent("onclick", onClicMobile) }, checaExistencia: function (e) { null === document.getElementById("contentVRMobile_" + e) && (e = '<div id="contentVRMobile_' + e + '"></div>', document.getElementById("contentMobile").innerHTML = e) }
1, registraEvento: function (e, i, n, t, o, a, l, s, c) { var d = this.container; this.checaExistencia(e); var r = "newEvento" + d, d = ""; (d = document.createEvent("CustomEvent")).initCustomEvent(r, !1, !1, { id: e, unidad: i, desglose: n, titulo: t, tipo: o, tema: a, per: l, pcorto: s, valor: c }), document.dispatchEvent(d) }, detectedTema: function () { mb_detectedTem = !0; for (var e = $(".list-group-item"), i = 0; i < e.length; i++)if (-1 !== e[i].className.indexOf("mobile")) { $("#" + e[i].id).trigger("click"); break } }, selectedTema: function (e) { for (var i = $(".list-group-item"), n = 0; n < i.length; n++)if (i[n].id === "li_" + e) { $("#" + i[n].id).trigger("click"); break } }, reiniciar: function () { document.getElementById(this.id).innerHTML = "" } }, window.menuMobile || (window.menuMobile = i) }();

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.