" + jQuery(this).html());
// console.log("textToEvaluate ----> "+textToEvaluate+" regex "+regExp.test(textToEvaluate));
// console.log("textToEvaluate2 ----> "+textToEvaluate2+" regex "+regExp2.test(textToEvaluate2));
if (jQuery.inArray(indexWithFooter, indexWithFooters) !== -1) {
console.log('index With Footer ' + indexWithFooter);
console.log("adding css");
jQuery(this).css({
"display": "inline"
});
}
if (regExp.test(textToEvaluate)) {
var textToPush = footIndex + ' ' + textToEvaluate.replace('\(\(', '').replace('\)\)', '').replace('ll.', '\(').replace('.ll', '\)').replace(/(?:\r\n|\r|\n)/g, ' ');
var htmlToPush = '' + textToPush + '
';
footers.push(htmlToPush);
//console.log("htmlToPush ----> "+htmlToPush);
jQuery(this).css({
"font-size": "15px",
"font-weight": "bold",
"display": "inline",
"color": " var(--cs-color-category)",
"font-size": "85%",
"margin-left": "-5px"
});
jQuery(this).html('' + footIndex + ' ');
//jQuery(this).html(''+footIndex+' ');
footIndex++;
} else if (regExp2.test(textToEvaluate2)) {
var textToPush = footIndex + ' ' + textToEvaluate2.replace('\{\{', '').replace('\}\}', '').replace('ll.', '\{').replace('.ll', '\}').replace(/(?:\r\n|\r|\n)/g, ' ');
var htmlToPush = '' + textToPush + '
';
footers.push(htmlToPush);
//console.log("htmlToPush ----> "+htmlToPush);
jQuery(this).css({
"font-size": "15px",
"font-weight": "bold",
"display": "inline",
"color": " var(--cs-color-category)",
"font-size": "85%",
"margin-left": "-5px"
});
//jQuery(this).html(''+footIndex+' ');
jQuery(this).html('' + footIndex + ' ');
footIndex++;
lastIndexWasMinus = true;
} else {
if (jQuery.inArray((indexWithFooter + 2), indexWithFooters) !== -1) {
console.log('index With Footer ' + indexWithFooter);
console.log("adding css for next");
jQuery(this).css({
"display": "inline"
});
}
if (!lastIndexWasMinus) {
lastIndexWasMinus = false;
//jQuery(this).html(' '+(jQuery(this).html()));
} else {
jQuery(this).css({
"display": "inline"
});
lastIndexWasMinus = false;
}
}
indexWithFooter++;
});
console.log(footers.length);
if (footers.length == 0) {
jQuery('#button_notas').css({
"display": "none"
});
jQuery('#button_related').css({
"width": "50%"
});
jQuery('#button_related').css({
"margin-right": "-4px"
});
jQuery('#button_autores').css({
"width": "50.07%"
});
}
jQuery('#notas_al_pie_ll').html(footers);
console.log(footers);
//var busqueda2 = getUrlVars()["_sf_s"];
var busqueda = getParameterByName('_sf_s');
console.log("busqueda " + busqueda);
if (busqueda)
jQuery("input[name*='_sf_search[]']").val(busqueda);
});
var busqueda2 = getUrlVars()["_sf_s"];
var busqueda = getParameterByName('_sf_s');
console.log("busqueda " + busqueda);
if (busqueda)
jQuery("input[name*='_sf_search[]']").val(busqueda);
//fillAutors();
jQuery('#autores_search').on('change', function() {
// alert( this.value );
var valueOfSelect = this.value;
jQuery('article').each(function(i, obj) {
//test
//
if (valueOfSelect !== "ALL") {
if (jQuery(this).hasClass(valueOfSelect)) {
jQuery(this).show();
} else {
jQuery(this).hide();
}
} else {
jQuery(this).show();
}
});
if (valueOfSelect !== "ALL") {
jQuery('.cs-load-more').hide();
} else {
jQuery('.cs-load-more').show();
}
});
function getParameterByName(name, url = window.location.href) {
name = name.replace(/[\[\]]/g, '\\$&');
var regex = new RegExp('[?&]' + name + '(=([^]*)|&|#|$)'),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, ' '));
}
function getUrlVars() {
var vars = [],
hash;
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
for (var i = 0; i < hashes.length; i++) {
hash = hashes[i].split('=');
vars.push(hash[0]);
vars[hash[0]] = hash[1];
}
return vars;
}
function openNoteWithIndex(index) {
var x = document.getElementById('related_posts_ll');
var arrow = document.getElementById('arrow_related');
x.style.display = "none";
arrow.style = "transform: rotate(-180deg); transition: transform .5s;";
x = document.getElementById('notas_al_pie_ll');
arrow = document.getElementById('arrow_notas');
x.style.display = "none";
arrow.style = "transform: rotate(-180deg); transition: transform .5s;";
x = document.getElementById('autores_destacados');
arrow = document.getElementById('arrow_autores');
x.style.display = "none";
arrow.style = "transform: rotate(-180deg); transition: transform .5s;";
x = document.getElementById('nota_al_pie_ll');
if (x.style.display === "none") {
x.style.display = "block";
x.style.transition = "0.5s";
} else {
x.style.display = "none";
x.style.transition = "0.5s";
}
var htmlToPush = '' + footers[index] + '
';
jQuery('#nota_al_pie_ll').html(htmlToPush);
}
-->
×
Selecciona el país o región donde quieres recibir tu revista:
Otomatik - 52.8.57.26
CloudFlare DNS
Türk Telekom DNS
Google DNS
Open DNS
OSZAR »