/** * PATH * @context Global * @desc Rutas Generales del Proyecto * @author myance */ var action = ("" != "") ? "" : "Index" window.SIJE__ = { USERNAME : "", IDUSER : "", IDJURADO : "", IDPROFILE : "", ENVIROMENT : "PRO", VERSION : "01010001000000", MODULE : "", CONTROLLER : "", ACTION : action, DETAIL : "", PAGEPATH : "///"+action, SERVER : "https://sije.jne.gob.pe", SERVERDOCS : "https://sije.jne.gob.pe", CSS : "https://sije.jne.gob.pe/Content/css", JS : "https://sije.jne.gob.pe/Content/js/controllers", IMG : "https://sije.jne.gob.pe/Content/images", LIBS : "https://sije.jne.gob.pe/Content/libs", PROFILE : "", SIGLAJE : "", TEMPLATE : "", PLATAFORMA : '{"UrlBaseHistorico":"https://plataformahistorico.jne.gob.pe/","UrlBase":"https://plataformaelectoral.jne.gob.pe/"}', MPE : '{"UrlBase":"https://mpesije.jne.gob.pe/","UrlFiles":"https://mpesije.jne.gob.pe/docs/","OrigenTramite":{"Otros":"159"}}' } /** * log * @context Global * @type Function * @desc Permite consolear solo cuando esté en ámbito desarrollo * @author myance */ window.log = function(){} if(SIJE__.ENVIROMENT === "LOCAL" || SIJE__.ENVIROMENT === "DESA" || SIJE__.ENVIROMENT === "TEST"){ var count = 0; var bg = ["#ffa549","#e20e0e","#525252","#aa0000", "#0AC191"] window.log = function(msj){ var obj = typeof msj; if (obj == "object") console.log(msj) else{ if(count==bg.length) count = 0 console.log("%c"+msj+"", "background:"+bg[count]+"; color: #fff; padding:1px 3px; font-size:16px"); count++ } } } // var script = document.createElement( 'script' ); // script.src = SIJE__.LIBS + "log/consolelog.min.js" // script.type = 'text/javascript'; // document.getElementsByTagName('head')[0].appendChild(script); // script.onload = function() { // // };