Actualidad
place_comun/NewLook_Feel/New_Contenido_Vacio_paraTitulo
New_Contenido_Vacio_paraTitulo
";
document.getElementsByClassName("wpsPageBarFirstRow")[0].innerHTML = new_html;
var result_submenu_links = "";
if(submenu_links){
for (var i = 0; i < submenu_links.length; i++) {
if(submenu_links[i].children[0]){
result_submenu_links = result_submenu_links + "
" + "" + "";
}
}
}
var result_links = [];
var container_links = document.getElementsByClassName("showDsk")[0].children;
for (var i = 0; i < container_links.length; i++) {
if(container_links[i].classList.contains('wpsSelectedPage')){
container_links[i].children[0].removeAttribute('class');
/*container_links[i].removeAttribute('class');
container_links[i].classList.add('currentSel');*/
}else{
container_links[i].children[0].removeAttribute("class");
/*container_links[i].removeAttribute('class');*/
}
if(submenu_links && container_links[i].classList.contains('wpsSelectedPage')){
result_links = result_links + "
" + "" + container_links[i].children[0].text + "" + "" + result_submenu_links + "
" + "";
}else if(container_links[i].classList.contains('wpsSelectedPage')){
result_links = result_links + "
" + "" + container_links[i].children[0].text + "" + "";
}else{
result_links = result_links + "
" + "" + container_links[i].children[0].text + "" + "";
}
}
document.getElementById("lateral-menu-izq-inner").innerHTML = result_links;
/* FUNCIÓN DE ABRIR MENU LATERAL */
function toggleMenu() {
console.log("abierto");
var element = document.getElementById("lateral-menu");
if(element.classList.contains("hide-menu")){
element.classList.remove("hide-menu");
}else{
element.classList.add("hide-menu");
}
}
if(numMen > 14){
var cambioshowDsk = document.getElementsByClassName("showDsk")[0];
cambioshowDsk.style.display='grid';
cambioshowDsk.style.gridTemplateColumns='repeat(auto-fill,minmax(min(100%,8rem),1fr))';
cambioshowDsk.style.height='auto';
cambioshowDsk.style.flexWrap='nowrap';
cambioshowDsk.style.flexDirection='row';
}
/* PAGINADOR HISTORICO DE NOTICIAS */
var stringBoxes = document.querySelectorAll('.paginadorH2'),
stringBoxArray = Array.from(stringBoxes),
newElement = document.createElement('p'),
clone,
children;
stringBoxArray.forEach(function(box){
children = Array.from( box.childNodes ).filter(function(child){
return child.nodeType === 3;
}).forEach(function (text) {
if(text.textContent !== '\xa0\xa0'){
text.textContent = text.textContent.replaceAll(/\xa0/g, "");
clone = newElement.cloneNode();
text.parentNode.insertBefore(clone, text);
clone.appendChild(text);
}else{
text.parentNode.removeChild(text);
}
});
});
/* ESTILOS ACTUALIDAD */
var avisosForm = document.getElementsByClassName('dataTable')[0];
if(avisosForm){
avisosForm.parentElement.parentElement.parentElement.classList.add('avisos');
}
/* ESTILOS LOGIN */
var loginForm = document.getElementById('FormularioLogin');
if(loginForm){
document.getElementById('FormularioLogin').parentElement.parentElement.classList.add('loginForm');
document.getElementById('FormularioLogin').parentElement.parentElement.parentElement.classList.add('loginContainer');
}
var srcinicio = '/wps/wcm/connect/4491b20b-d8ff-4c86-940c-224d9e48eb98/house-solidB%2B%281%29.png?MOD=AJPERES&CACHEID=4491b20b-d8ff-4c86-940c-224d9e48eb98';
var srcinfo = '/wps/wcm/connect/898ebaee-c2b6-4c84-a03b-40fafe0a2e4a/info-solidB%2B%281%29.png?MOD=AJPERES&CACHEID=898ebaee-c2b6-4c84-a03b-40fafe0a2e4a';
var srccontacto = '/wps/wcm/connect/c4451636-4d85-4f35-83f3-ae7e3f5d802c/envelope-regularB%2B%281%29.png?MOD=AJPERES&CACHEID=c4451636-4d85-4f35-83f3-ae7e3f5d802c';
var srcbuscador = '/wps/wcm/connect/a17d7e31-7755-48ad-8052-ab0826833bb7/magnifying-glass-solid.png?MOD=AJPERES&CACHEID=a17d7e31-7755-48ad-8052-ab0826833bb7';
var menu_items = document.getElementsByClassName("showDsk")[0].children;
for (var i = 0; i < menu_items.length; i++) {
if(menu_items[i].textContent.trim().trim() === "Inicio"){
menu_items[i].firstElementChild.innerHTML = '
';
}
if(menu_items[i].textContent.trim().trim() === "Buscador"){
menu_items[i].firstElementChild.innerHTML = '
';
}
if(menu_items[i].textContent.trim().trim() === "Información"){
menu_items[i].firstElementChild.innerHTML = '
';
}
if(menu_items[i].textContent.trim().trim() === "Contacto"){
menu_items[i].firstElementChild.innerHTML = '
';
}
}
}
/* FUNCIÓN DE ABRIR MENU LATERAL */
function toggleMenu() {
console.log("abierto");
var element = document.getElementById("lateral-menu");
if(element.classList.contains("hide-menu")){
element.classList.remove("hide-menu");
}else{
element.classList.add("hide-menu");
}
}
place_comun/NewLook_Feel/New_CSS_JS_Footer
New_CSS_JS_Footer