-->
Cultura - ARCHIVO DE octubre - 2016
OBRA GRÁFICA DE RICARDO GIL TURRIÓN
El artista bejarano Ricardo Gil Turrión, crea un mural con los escudos de armas de 200 municipios salmantinos para reivindicar su imagen cultural y su legado histórico
Pedro Samuel Martín
OBRA GRÁFICA DE RICARDO GIL TURRIÓN
El artista bejarano Ricardo Gil Turrión, crea un mural con los escudos de armas de 200 municipios salmantinos para reivindicar su imagen cultural y su legado histórico
Ana Vicente
PROGRAMACIÓN DEL TEATRO CERVANTES
BÉJAR | Día 29 de octubre a las 20.30 h. Las entradas pueden comprarse en taquilla el viernes de 18 a 20 h y el sábado a partir de las 18.30 h
M.F. (redacción cultoro)
PROGRAMACIÓN DEL TEATRO CERVANTES
BÉJAR | Día 29 de octubre a las 20.30 h. Las entradas pueden comprarse en taquilla el viernes de 18 a 20 h y el sábado a partir de las 18.30 h
Redacción Béjar
INICIO DE ‘CUENTACUENTOS’ CURSO 2016-2017
BÉJAR | El programa organizado por la Biblioteca Municipal dará comienzo el día 28 de octubre a las 18.00 h en el salón de actos del Convento de San Francisco
M.F. (redacción cultoro)
INICIO DE ‘CUENTACUENTOS’ CURSO 2016-2017
BÉJAR | El programa organizado por la Biblioteca Municipal dará comienzo el día 28 de octubre a las 18.00 h en el salón de actos del Convento de San Francisco
Redacción Béjar
COLECCIÓN DEL MUSEO JUDÍO DAVID MELUL
Las donaciones recientes enriquecen el patrimonio del Museo Judío de Béjar, bajo el patrocinio de la familia Melul, mecenas de este proyecto museístico único en la Comunidad
Pedro Samuel Martín
COLECCIÓN DEL MUSEO JUDÍO DAVID MELUL
Las donaciones recientes enriquecen el patrimonio del Museo Judío de Béjar, bajo el patrocinio de la familia Melul, mecenas de este proyecto museístico único en la Comunidad
Ana Vicente
PROYECTO ASOCIATIVO PARA COMPARTIR TÉCNICAS ARTÍSTICAS
BÉJAR | A partir de hoy podrá visitarse la exposición permanente de Zaballos a partir de las 12.00 h. en la Alameda de Riofrío de Palomares de Béjar
M.F. (redacción cultoro)
PROYECTO ASOCIATIVO PARA COMPARTIR TÉCNICAS ARTÍSTICAS
BÉJAR | A partir de hoy podrá visitarse la exposición permanente de Zaballos a partir de las 12.00 h. en la Alameda de Riofrío de Palomares de Béjar
Redacción Béjar
VELADA MUSICAL EN ‘LA ALQUITARA’
BÉJAR | El concierto dará comienzo a las doce de la noche, con entrada libre hasta completar aforo
M.F. (redacción cultoro)
CONCURSO ORGANIZADO POR LA PLATAFORMA PARA LA DEFENSA DE ‘EL BOSQUE’
BÉJAR | La muestra se inaugura el 22 de octubre a las 19.00 h y permanecerá abierta hasta el 30 de octubre
M.F. (redacción cultoro)
NOTIFICACIÓN DE LA UNIVERSIDAD NACIONAL DE EDUCACIÓN A DISTANCIA
BÉJAR | Esta medida afectará a los plazos de las matrículas con pagos fraccionados que se confirmen a partir del 30 de octubre
M.F. (redacción cultoro)
PROGRAMCIÓN MUSICAL
BÉJAR | Concerlírica presentará el 27 de diciembre el Concierto de Navidad a cargo de la Filarmónica de Moldavia y el día uno de enero, el ballet ?La Bella Durmiente?
M.F. (redacción cultoro)
VELADA MUSICAL EN ‘LA ALQUITARA’
BÉJAR | El concierto dará comienzo a las doce de la noche, con entrada libre hasta completar aforo
Redacción Béjar
CONCURSO ORGANIZADO POR LA PLATAFORMA PARA LA DEFENSA DE ‘EL BOSQUE’
BÉJAR | La muestra se inaugura el 22 de octubre a las 19.00 h y permanecerá abierta hasta el 30 de octubre
Redacción Béjar
NOTIFICACIÓN DE LA UNIVERSIDAD NACIONAL DE EDUCACIÓN A DISTANCIA
BÉJAR | Esta medida afectará a los plazos de las matrículas con pagos fraccionados que se confirmen a partir del 30 de octubre
Redacción Béjar
PROGRAMCIÓN MUSICAL
BÉJAR | Concerlírica presentará el 27 de diciembre el Concierto de Navidad a cargo de la Filarmónica de Moldavia y el día uno de enero, el ballet ?La Bella Durmiente?
Redacción Béjar
X PREMIOS NACIONALES DE HOSTELERÍA DE LA FEDERACIÓN ESPAÑOLA
BÉJAR | Las actividades culturales que organiza continuamente el Café-Blues ?La Alquitara? hacen merecedor a Miguel Sánchez Paso de uno de los reconocimientos más prestigiosos del sector hostelero
M.F. (redacción cultoro)
X PREMIOS NACIONALES DE HOSTELERÍA DE LA FEDERACIÓN ESPAÑOLA
BÉJAR | Las actividades culturales que organiza continuamente el Café-Blues ?La Alquitara? hacen merecedor a Miguel Sánchez Paso de uno de los reconocimientos más prestigiosos del sector hostelero
Redacción Béjar
ARTE Y PINTURA
BÉJAR | Apertura de la muestra el 22 de octubre a partir de las 12 de la mañana en Palomares de Béjar
M.F. (redacción cultoro)
ARTE Y PINTURA
BÉJAR | Apertura de la muestra el 22 de octubre a partir de las 12 de la mañana en Palomares de Béjar
Redacción Béjar
ACTIVIDAD LÚDICO-CULTURAL DEL CASINO OBRERO
BÉJAR | El viaje cultural ha llevado a los participantes a disfrutar de la Playa de las Catedrales y visitar las localidades de Modoñedo y Ribadeo
M.F. (redacción cultoro)
ACTIVIDAD LÚDICO-CULTURAL DEL CASINO OBRERO
BÉJAR | El viaje cultural ha llevado a los participantes a disfrutar de la Playa de las Catedrales y visitar las localidades de Modoñedo y Ribadeo
Redacción Béjar
CENTRO INTEGRAL DE FORMACIÓN PROFESIONAL ‘CIUDAD DE BÉJAR’
BÉJAR | Una obra que refleja la injusticia, el caciquismo y la superstición a la que estuvo sometido el género femenino con la denegación del acceso a la educación
M.F. (redacción cultoro)
CENTRO INTEGRAL DE FORMACIÓN PROFESIONAL ‘CIUDAD DE BÉJAR’
BÉJAR | Una obra que refleja la injusticia, el caciquismo y la superstición a la que estuvo sometido el género femenino con la denegación del acceso a la educación
Redacción Béjar
MUESTRA EN EL CASINO OBRERO
BÉJAR | Horario de visitas de la muestra de 19.00 a 21.30 h, hasta el próximo 16 de octubre
M.F. (redacción cultoro)
MUESTRA EN EL CASINO OBRERO
BÉJAR | Horario de visitas de la muestra de 19.00 a 21.30 h, hasta el próximo 16 de octubre
Redacción Béjar
EXPOSICIÓN DEL SERVICIO DE BIBLIOTECAS DE LA USAL
BÉJAR | La muestra estará abierta del 6 al 16 de octubre, de 19.00 a 21.30 h e irá acompañada de dos conferencias los días 10 y 11 a las 20.00 h
M.F. (redacción cultoro)
EXPOSICIÓN DEL SERVICIO DE BIBLIOTECAS DE LA USAL
BÉJAR | La muestra estará abierta del 6 al 16 de octubre, de 19.00 a 21.30 h e irá acompañada de dos conferencias los días 10 y 11 a las 20.00 h
Redacción Béjar
INFORMACIÓN DE LA UNIVERSIDAD DE EDUCACIÓN A DISTANCIA
BÉJAR | El nuevo horario de apertura será de lunes a jueves de 17 a 21 h y los viernes de 17 a 20 h
M.F. (redacción cultoro)
INFORMACIÓN DE LA UNIVERSIDAD DE EDUCACIÓN A DISTANCIA
BÉJAR | El nuevo horario de apertura será de lunes a jueves de 17 a 21 h y los viernes de 17 a 20 h
Redacción Béjar
[ C ]
* ------ ----------
* A Number
* B Number
* E Number
* H Number
* K Letter
* P Letter
* Q Letter
* S Letter
*
*/
var cifRegEx = new RegExp( /^([ABCDEFGHJKLMNPQRSUVW])(\d{7})([0-9A-J])$/gi );
var letter = value.substring( 0, 1 ), // [ T ]
number = value.substring( 1, 8 ), // [ P ][ P ][ N ][ N ][ N ][ N ][ N ]
control = value.substring( 8, 9 ), // [ C ]
all_sum = 0,
even_sum = 0,
odd_sum = 0,
i, n,
control_digit,
control_letter;
function isOdd( n ) {
return n % 2 === 0;
}
// Quick format test
if ( value.length !== 9) {
return false;
}
if(cifRegEx.test( value ) ){
for ( i = 0; i < number.length; i++ ) {
n = parseInt( number[ i ], 10 );
// Odd positions
if ( isOdd( i ) ) {
// Odd positions are multiplied first.
n *= 2;
// If the multiplication is bigger than 10 we need to adjust
odd_sum += n < 10 ? n : n - 9;
// Even positions
// Just sum them
} else {
even_sum += n;
}
}
all_sum = even_sum + odd_sum;
control_digit = ( 10 - ( all_sum ).toString().substr( -1 ) ).toString();
control_digit = parseInt( control_digit, 10 ) > 9 ? "0" : control_digit;
control_letter = "JABCDEFGHI".substr( control_digit, 1 ).toString();
// Control must be a digit
if ( letter.match( /[ABEH]/ ) ) {
return control === control_digit;
// Control must be a letter
} else if ( letter.match( /[KPQS]/ ) ) {
return control === control_letter;
// Can be either
} else {
return control === control_digit || control === control_letter;
}
}
var nieRegEx = new RegExp( /^[MXYZ]{1}[0-9]{7,8}[TRWAGMYFPDXBNJZSQVHLCKET]{1}$/gi );
var validChars = "TRWAGMYFPDXBNJZSQVHLCKET",
letter = value.substr( value.length - 1 ).toUpperCase(),
number;
value = value.toString().toUpperCase();
// Quick format test
if ( value.length > 10 || value.length < 9) {
return false;
}
if(nieRegEx.test( value ) ){
// X means same number
// Y means number + 10000000
// Z means number + 20000000
value = value.replace( /^[X]/, "0" )
.replace( /^[Y]/, "1" )
.replace( /^[Z]/, "2" );
number = value.length === 9 ? value.substr( 0, 8 ) : value.substr( 0, 9 );
return validChars.charAt( parseInt( number, 10 ) % 23 ) === letter;
}
return false;
}, "Please specify a valid NIF number." );
/*
JS FILE: /var/www/vhosts/salamancartvaldia.es/httpdocs/../vper_sal_update/js/clasificados.js
*/$(document).ready(function(){
$("#publiclasificados").validate({
rules: {
nombre: {
required: true,
minlength: 2
},
dni: {
required: true,
minlength: 9,
nifES: true
},
email: {
required: true,
email: true
},
telefono: {
required: true,
digits: true,
minlength: 9
},
anuncio: {
required: true,
minWords: 2,
maxWords: 20
},
terminos: {
required: true
},
direccion: {
required: true
},
provincia: {
required: true
},
localidad: {
required: true,
min: 1
}
},
messages: {
nombre: {
required: "Introduce tu nombre",
minlength: "Debe tener al menos 2 caracteres"
},
dni: {
required: "Debes rellenar tu DNI",
minlength: "Debe tener al menos 9 caracteres",
nifES: "Debe ser un DNI, NIF o NIE válido"
},
email: {
required: "Debes rellenar tu email",
email: "Debe ser un email valido"
},
telefono: {
required: "Introduce tu teléfono",
digits: "Introduce un número de telefono válido",
minlength: "Debe tener al menos 9 números"
},
anuncio: {
required: "Rellene con el texto del anuncio",
minWords: "El anuncio debe tener al menos dos palabras",
maxWords: "El anuncio sólo puede tener 20 palabras como máximo"
},
terminos: {
required: "Debes aceptar las condiciones"
},
direccion: {
required: "Introduce una dirección válida"
},
provincia: {
required: "Selecciona una provincia"
},
localidad: {
required: "Selecciona una localidad",
min: "Selecciona una localidad"
}
}
});
$(".radioedicion").each(function(){
$(this).change(function(){
var id = $(this).attr('id');
$(".spanprecio").each(function(){
$(this).html($(this).data(id));
});
});
});
$("#anuncio").each(function(){
$(this).keyup(function(){
calculaTotal();
});
});
$("input[type=radio][name=edicion]").each(function(){
$(this).change(function(){
calculaTotal();
});
});
$("input[type=radio][name=duracion]").each(function(){
$(this).change(function(){
calculaTotal();
});
});
function cuentaPalabras(text){
if(text.trim()==""){
return 0;
}else{
return text.trim().split(/[\s,\.\-:;/\\_]/).length;
}
}
function calculaTotal(){
var palabras = cuentaPalabras($("#anuncio").val());
var idDuracion = $('input[name=duracion]:checked').val();
var precio = parseFloat($("#precio" + idDuracion).html().replace(",","."));
var mult = 1;
switch(idDuracion){
case "1m":
mult = 2;
break;
case "2m":
mult = 4;
break;
}
$("#totalAnuncio span").html((precio * palabras * mult).toFixed(2).replace(".",","));
}
function apaypal(){
setTimeout(
function(){
$("#btn_paypal").click();
}
, 3000);
}
function geoEvents(){
//alert("geo");
if($("#localidad").val()<1 && $(".respontable").length==0){
$("#localidad").attr("disabled","disabled");
}
$("#provincia,#newprovincia,#elpais,#elpaisenvio").unbind("change");
$("#provincia").change(function(){
//alert("yeeeeeeee");
$.get( DIRECTORY + "js/carga_combo.php", { provincia: $("#provincia").val() },
function(data){
$("#localidad").html(data);
$("#localidad").removeAttr("disabled");
if(localidad!= -1){
$('#localidad').attr('value', localidad);
$('#localidad').val(localidad);
localidad = -1;
}
if($("#hiddlocalidad").val()!=0 && $("#hiddlocalidad").val()!=""){
$('#localidad').val($("#hiddlocalidad").val());
}
if($("#ajaxloaded").val()=="true"){
$("#localidad").attr("disabled", "disabled");
}
}
);
});
$("#newprovincia").change(function(){
$.get( DIRECTORY + "js/carga_combo.php", { provincia: $("#newprovincia").val() },
function(data){
$("#newlocalidad").html(data);
$("#newlocalidad").removeAttr("disabled");
if(localidad!= -1){
$('#newlocalidad').attr('value', localidad);
$('#newlocalidad').val(localidad);
localidad = -1;
}
}
);
});
$("#elpais").change(function(){
//alert($("#elpais").val());
if($("#elpais").val()!=34){
$("#datosesp").hide();
$("#datosint").show();
}
if($("#elpais").val()==34){
$("#datosesp").show();
$("#datosint").hide();
}
});
$("#elpaisenvio").change(function(){
//alert($("#elpais").val());
if($("#elpaisenvio").val()!=34){
$("#datosespenvio").hide();
$("#datosintenvio").show();
}
if($("#elpaisenvio").val()==34){
$("#datosespenvio").show();
$("#datosintenvio").hide();
}
});
$("#elpais, #elpaisenvio").trigger("change");
}
geoEvents();
if( $(".verdatos").length>0 ){
$(".verdatos").click(function(){
$(".verdatos").hide();
$(".losdatos").slideDown(300);
});
}
});
/*
JS FILE: /var/www/vhosts/salamancartvaldia.es/httpdocs/../vper_sal_update/js/contacto.js
*/$(document).ready(function(){
if($("#publildt").length>0){
$("#publildt").validate({
errorPlacement: function(error, element) {
},
rules: {
nombre: {
required: true,
minlength: 2
},
comentario: {
required: false
},
email: {
required: true,
email: true
},
empresa: {
required: true
},
telefono: {
required: true
}
,
terminos: {
required: true
}
},
messages: {
nombre: {
required: "Introduce tu nombre",
minlength: "Debe tener al menos 2 caracteres"
},
empresa: {
required: "Introduce tu empresa",
minlength: "Debe tener al menos 2 caracteres"
}
,telefono: {
required: "Introduce tu telefono",
minlength: "Debe tener al menos 2 caracteres"
},
email: "Introduce un email válido.",
terminos: {
required: "Debes aceptar los terminos"
}
}
});
}
if($("#publi").length>0){
$("#publi").validate({
errorPlacement: function(error, element) {
},
rules: {
nombre: {
required: true,
minlength: 2
},
comentario: {
required: true,
minlength: 5,
maxlength: 600
},
email: {
required: true,
email: true
},
empresa: {
required: true
},
telefono: {
required: true
}
,
terminos: {
required: true
}
},
messages: {
nombre: {
required: "Introduce tu nombre",
minlength: "Debe tener al menos 2 caracteres"
},
comentario: {
required: "Introduce rellenar el comentario",
minlength: "Debe tener al menos 5 caracteres",
maxlength: "600 caracteres maximo"
},
empresa: {
required: "Introduce tu empresa",
minlength: "Debe tener al menos 2 caracteres"
}
,telefono: {
required: "Introduce tu telefono",
minlength: "Debe tener al menos 2 caracteres"
},
email: "Introduce un email válido.",
terminos: {
required: "Debes aceptar los terminos"
}
}
});
}
$("#formCon").validate({
errorPlacement: function(error, element) {
},
rules: {
nombre: {
required: true,
minlength: 2
},
comentario: {
required: true,
minlength: 5,
maxlength: 600
},
email: {
required: true,
email: true
}
,
terminos: {
required: true
}
},
messages: {
nombre: {
required: "Introduce tu nombre",
minlength: "Debe tener al menos 2 caracteres"
},
comentario: {
required: "Introduce tus apellidos",
minlength: "Debe tener al menos 2 caracteres",
maxlength: "600 caracteres maximo"
},
email: "Introduce un email válido.",
terminos: {
required: "Debes aceptar los terminos"
}
}
});
$("#formrectisupre").validate({
/*errorPlacement: function(error, element) {
},*/
rules: {
nombre: {
required: true,
minlength: 2
},
email: {
required: true,
email: true
},
telefono: {
required: true
},
dni: {
required: true
},
noticia: {
required: true
},
archivos: {
required: true
},
comentario: {
required: true,
minlength: 5,
maxlength: 600
},
terminos: {
required: true
}
},
messages: {
nombre: {
required: "Introduce tu nombre",
minlength: "Debe tener al menos 2 caracteres"
},
email: "Introduce un email válido.",
comentario: {
required: "Introduce tus apellidos",
minlength: "Debe tener al menos 2 caracteres",
maxlength: "600 caracteres maximo"
},
terminos: {
required: "Debes aceptar los terminos"
},
telefono: {
required: "El teléfono es obligatorio"
},
dni: {
required: "Introduce tu DNI"
},
noticia: {
required: "Necesitamos que indiques la noticia"
},
archivos: {
required: "Debes adjuntar achivos acreditativos"
}
}
});
/********************** Eliminar atributos de tamaño de imagen ***********************/
$(".delsize").each(function(){
$(this).removeAttr("height");
$(this).removeAttr("width");
});
if($("#col1, #col2").length>0){
if($("#col1").height() > $("#col2").height()){
$("#col2").height($("#col1").height());
}else{
$("#col1").height($("#col2").height());
}
}
/********************* FIN Eliminar atributos de tamaño de imagen ********************/
if($("#aceptocookies").length>0){
$("#aceptocookies").click(function(){
$("#cookiespolicy").animate({
bottom: "-60px",
opacity: "0.0"
}, 700)
});
}
/*if($(".sinop").length>0){
$(".capapeli").each(function(){
var padre=$(this);
padre.children(".sinpi").click(function(){
padre.children(".contsinop").;
});
});
}*/
if($("#promoform").length>0){
$("#promoform").validate({
errorPlacement: function(error, element) {
$("#errorcont").html(error);
},
rules: {
promomail: {
required: true,
email: true
},
terminos: {
required: true
}
},
messages: {
promomail: "Introduce un email válido.",
terminos: {
required: "Debes aceptar la política de privacidad y las bases de la promoción."
}
}
});
}
if($("#buscador").length>0){
var b = $("#buscador").val();
if(b.trim().length==0){
$("#buscador").css({"marginRight":"-270px"});
$("#epcyl_logo").css({"marginLeft":"294px"});
}else{
$("#epcyl_logo").css({"marginLeft":"150px"});
}
$("#busca").hover(function(){
$("#buscador").animate({"marginRight":"0px"});
$("#epcyl_logo").animate({"marginLeft":"150px"});
},function(){
});
$("#busca").click(function(){
if($("#buscador").val().trim()==""){
$("#buscador").animate({"marginRight":"-270px"});
$("#epcyl_logo").animate({"marginLeft":"294px"});
return false;
}
});
}
if($("#conpueblos").length>0){
$("#conpueblos").hover(function(){
$("#pueblos").slideDown("700");
//$("#pueb").css({"background":"#fff","color":"#ac8170"});
},function(){
$("#pueblos").stop(true, true).slideUp("400");
//$("#pueb").css({"background":"#ac8170","color":"#fff"});
});
}
if($("#concanal").length>0){
$("#concanal").hover(function(){
$("#canal").slideDown("700");
//$("#pueb").css({"background":"#fff","color":"#ac8170"});
},function(){
$("#canal").stop(true, true).slideUp("400");
//$("#pueb").css({"background":"#ac8170","color":"#fff"});
});
}
if($("#consoci").length>0){
$("#consoci").hover(function(){
$("#socied").slideDown("700");
//$("#pueb").css({"background":"#fff","color":"#ac8170"});
},function(){
$("#socied").stop(true, true).slideUp("400");
//$("#pueb").css({"background":"#ac8170","color":"#fff"});
});
}
$(".descnot img").each(function(){
$(this).removeAttr("height");
$(this).removeAttr("width");
});
if($("#calendarAgenda").length>0){
$.datepicker.regional['es'] = {
clearText: 'Borra',
clearStatus: 'Borra fecha actual',
closeText: 'Cerrar',
closeStatus: 'Cerrar sin guardar',
prevText: '
',
nextBigText: '>>',
nextStatus: 'Mostrar mes siguiente',
nextBigStatus: 'Mostrar año siguiente',
currentText: 'Hoy',
currentStatus: 'Mostrar mes actual',
monthNames: ['Enero','Febrero','Marzo','Abril','Mayo','Junio','Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'],
monthNamesShort: ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'],
monthStatus: 'Seleccionar otro mes',
yearStatus: 'Seleccionar otro año',
weekHeader: 'Sm',
weekStatus: 'Semana del año',
dayNames: ['Domingo', 'Lunes', 'Martes', 'Miercoles', 'Jueves', 'Viernes', 'Sabado'],
dayNamesShort: ['Do', 'Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'Sa'],
dayNamesMin: ['Do','Lu','Ma','Mi','Ju','Vi','Sa'],
dayStatus: 'Set DD as first week day',
dateStatus: 'Select D, M d',
dateFormat: 'dd/mm/yy',
firstDay: 1,
initStatus: 'Elegir fecha',
isRTL: false
};
$.datepicker.setDefaults($.datepicker.regional['es']);
$("#calendarAgenda").datepicker({
onSelect: function (date) {
window.location.href = "/"+DIRECTORY+"agenda/"+date;
}
});
}
$(".suscribe").click(function(){
console.log("JSTrack Web: click");
if(window.JSInterface){
window.JSInterface.getAction( "SUSCRIBE;10003" );
}
});
});
/*
JS FILE: /var/www/vhosts/salamancartvaldia.es/httpdocs/../vper_sal_update/js/registro.js
*/// JavaScript Document
var masterTop = 0;
var nextnew_enabled = true;
if(typeof DIRECTORY === undefined){
var DIRECTORY = "";
}
$(document).ready(function(){
var window_width = $(window).outerWidth();
if($("#form1").length>0){
$("#form1").validate({
errorPlacement: function(error, element) {
},
rules: {
nombre_registro: {
required: true,
minlength: 2
},
apellidos_registro: {
required: true,
minlength: 2
},
nombrevia_registro: {
required: true,
minlength: 2
},
ni_registro: {
required: true,
minlength: 8
},
email_registro: {
required: true,
email: true
},
remail_registro: {
required: true,
email: true,
equalTo: "#email_registro"
},
telefono_registro: {
required: true,
minlength: 9
},
codigo_registro: {
required: true,
minlength: 5,
number: true
},
clave_registro:{
required: true,
minlength: 5
},
rclave_registro:{
required: true,
equalTo: "#clave_registro",
minlength: 5
},
prov:{
required: true
},
loca:{
required: true
}
},
messages: {
nombre_registro: {
required: "Introduce tu nombre",
minlength: "Debe tener al menos 2 caracteres"
},
apellidos_registro: {
required: "Introduce tus apellidos",
minlength: "Debe tener al menos 2 caracteres"
},
ni_registro: {
required: "Debes rellenar tu DNI",
minlength: "Debe tener al menos 9 caracteres"
},
email_registro: "Introduce un email válido.",
telefono_registro: {
required: "Introduce un teléfono.",
minlength: "Debe tener al menos 9 caracteres"
},
nombrevia_registro: {
required: "Introduce una direccion de envío.",
minlength: "Debe tener al menos 2 caracteres"
},
codigo_registro: {
required: "Introducetu código postal",
minlength: "Debe tener al menos 5 caracteres"
},
clave_registro: {
required: "Introduce la nueva contraseña",
minlength: "Debe tener al menos 5 caracteres"
},
rclave_registro: {
required: "Repite la nueva contraseña",
equalTo: "La contraseña debe conicidir",
minlength: "Debe tener al menos 5 caracteres"
}
}
});
}
var redes = $("#redes");
if(redes.length>0){
var initPos = redes.offset().top;
var topWindow = 0;
$(window).bind('scroll', function() {
topWindow = $(window).scrollTop();
if(topWindow>initPos){
if(!redes.hasClass("fixed")){
redes.addClass("fixed");
}
}else{
redes.removeClass("fixed");
}
});
}
var cabecera = $(".infobar");
var cabDesktop = $(".contsom");
var fix = $(".fixedheader");
var themenuv5 = $("#themenuv5");
var themenucom = $("#themenucom");
var cintillo = "";
var newcintillo = "";
var originalUrl = window.location.href;
var url = originalUrl;
var lasturl = originalUrl;
function social(pp){
//console.log("lydiadebug: social(): " + pp);
var m = 'articulo';
if($(".contsocialdocs").length>0){
m = 'ver_periodico';
}
var paramapp = '';
if($(".appsocial").length>0){
paramapp = '?nextnewapp';
}
if(m=='articulo' && pp.indexOf('noticia')!= -1){
$.get( site_mov + "/includes/share.php" + paramapp , { ajax: "1", permalink: pp, mode: m }, /* "http://m.sorianoticias.com/includes/share.php" */
function(data){
$("#sharecontainer, .contsocial").html( data );
}
);
}
}
function setTitle(cintillo, originalUrl, url, topWindow){
var pasado = false;
var cint = $(".cintillo h2, .cintillo h1, .noti h1")
if(cint.length>0 && $("#slide_nex_new").length==0){
var hay_url = false;
var medium = 'scroll';
cint.each(function(){
if(!cint.hasClass('nottile')){
if($(this).offset().top < (topWindow+30) ){
pasado = true;
newcintillo = $(this).html().replace(/(<([^>]+)>)/ig,"");
if($(this).children("a").length>0){
url = $(this).children("a").attr("href");
hay_url = true;
}
//alert(url)
}
}
});
//if($(".cintillo h2").first().offset().top > (topWindow+30) ){
if(!pasado && $(".bloquev3").length>0){
newcintillo = "Portada";
url = originalUrl;
}
if(pasado && $(".noti").length>0){
if (!hay_url){
url = originalUrl;
}
medium = 'infinite';
}
if(newcintillo!=cintillo && newcintillo!=''){
//alert(newcintillo);
//document.title = newcintillo;
if (typeof url != 'undefined'){
if(url != lasturl){
//console.log("lydiadebug: TEST 0 ");
lasturl = url;
//history.pushState(null, "", url);
//console.log("lydiadebug: TEST 1 ");
if(typeof addthis !== "undefined"){
addthis.toolbox();
addthis.layers.refresh();
//console.log("lydiadebug: addthis(): " + url);
}else{
//console.log("lydiadebug: addthis() ERROR ");
}
//console.log("lydiadebug: TEST 2 ");
url = url.replace( "http://m.sorianoticias.com", "");
url = url.replace( "http://sorianoticias.com", "");
url = url.replace( "https://m.sorianoticias.com", "");
url = url.replace( "https://sorianoticias.com", "");
url = url.replace( site_mov, "");
if($(".androidapp").length>0){
//console.log("lydiadebug: androidapp() TRUE ");
social( url );
}else{
//console.log("lydiadebug: androidapp() FALSE ");
}
//console.log("lydiadebug: TEST 3 ");
var campaignSource = site_mov.replace("https://", "").replace("http://", "").replace("m.", "");
if(typeof ga === "function"){
//url += "?utm_source=sorianoticias.com&utm_medium=scroll";
//console.log("lydiadebug: ga(): " + url);
// 13-04-2020 - Registro de paginas por scroll
//ga('set', 'page', url);
//ga('send', 'pageview', {'campaignSource': campaignSource, 'campaignMedium': medium});//, 'campaignName': 'test'
}else{
console.log("lydiadebug: ga(): " + url +
' campaignSource '+ campaignSource+
' campaignMedium '+ medium);
}
}
}
}else{
//alert(newcintillo + " " + cintillo)
}
cintillo = newcintillo;
$(".fixedheader .titlefixed").html( cintillo );//
if($(".infobar").length>0){
if($(".titlefixed").html()=="Portada"){
$(".titlefixed").hide();
}
}
}
}
if(cabecera.length>0){
var initPos = cabecera.offset().top;
var topWindow = 0;
$(window).bind('scroll', function() {
topWindow = $(window).scrollTop();
if(topWindow>initPos){
if(!fix.hasClass("socialv")){
fix.addClass("socialv");
}
}else{
fix.removeClass("socialv");
}
//setTitle(cintillo, originalUrl, url, topWindow);
});
}
//
webName = $("meta[name=contributor]");
if(webName.attr("content") != "SoriaNoticias"){
if(cabDesktop.length>0){
var initPos2 = cabDesktop.offset().top
$(window).bind('scroll', function() {
topWindow = $(window).scrollTop();
if(topWindow>initPos2){
if(!fix.hasClass("visible")){
fix.addClass("visible");
}
if(!themenuv5.hasClass("fixed")){
themenuv5.addClass("fixed");
}
/*if(themenucom.length>0){
if(!themenucom.hasClass("fixed")){
themenucom.addClass("fixed");
}
}*/
}else{
fix.removeClass("visible");
themenuv5.removeClass("fixed");
if(themenucom.length>0){
themenucom.removeClass("visible");
}
}
setTitle(cintillo, originalUrl, url, topWindow);
});
}
}
if($("#snapp").length>0){
$("#general").addClass("withsnapp");
$("#cerrarapp").click(function(){
$("#snapp").animate({
marginTop: "-60px",
opacity: 0
}, 1000, function() {
$("#snapp").remove();
});
$("#general").removeClass("withsnapp");
});
}
/*$(".imgport a img, #Gallery .thumbnail").unveil(600, function() {
$(this).load(function() {
this.style.opacity = 1;
$(this).removeClass("unvy");
});
});*/
$(".descnot img").each(function(){
$(this).removeAttr("height");
$(this).removeAttr("width");
});
$("#btn_back").click(function(){
var back = site_url; //;"http://m.sorianoticias.com"; //site_mov
if (document.referrer != "") {
back = document.referrer;
}
window.location.href = back;
});
$(".menumobile, .menuv5 button").click(function(){
$("body").toggleClass("withmenu");
$("#themenu").removeClass("searchmode");
});
var shc = $("#showhidcats");
if(shc.length>0){
$("#showhidcats").click(function(){
var c = "visible";
$("#collapsecats, #showhidcats").toggleClass(c);
if($("#collapsecats").hasClass(c)){
shc.html("Ocultar secciones");
}else{
shc.html("Más secciones");
}
});
}
/*
$(".searchmobile").click(function(){
if( !$("#themenu").hasClass("searchmode")){
$("#themenu").addClass("searchmode");
$("#movbus").focus();
}else{
if($("#movbus").val()!=""){
$("#form_busca_mobile").submit();
}else{
$("#themenu").removeClass("searchmode");
}
}
});*/
if(themenucom.length>0){
var btncabcomarcas = $(".btncabcomarcas");
btncabcomarcas.removeAttr("href");
btncabcomarcas.click(function(e){
e.preventDefault();
e.stopPropagation();
themenucom.toggleClass("visible");
//alert('yuuu');
});
}
var menuv5 = $(".menuv5 button");
if(menuv5.length>0){
//alert('yooo');
menuv5.click(function(){
$(".menuv5 button").toggleClass("is-active");
$(".menuv5").toggleClass("menu-active");
$("#principal").toggleClass("desplegado");
$("#themenuv5").toggleClass("visible");
//alert('yuuu');
});
}else{
//alert('yeee');
}
var menu_clasificados = $(".menu_clasificados button");
if(menu_clasificados.length>0){
menu_clasificados.click(function(){
$(this).toggleClass("is-active");
$("#cont_menu_clasificados").toggleClass("desplegado");
});
}
var cats_with_news = [];
//Banners fixed
var fxbn = $(".fixedbanner");
if(fxbn.length>0){
var debug = false;
var cont = 1;
fxbn.each(function(){
cont++;
var fx = $(this);
var fxbn_inicial = fx.offset().top;
var fxbn_alto = fx.find("ins").first().innerHeight();
if(debug){
console.log("lydiadebug() fixed "+cont );
console.log("Clase: "+fx.attr("class"));
}
var selector = "article, div:not(.clear)"
var prev_element = fx.prev(selector);
//console.log("PREV: "+prev_element.length);
var next_element = fx.next(selector);
//console.log("NEXT: "+next_element.length);
if( (prev_element.length>0 || next_element.length>0) && fxbn_alto>0){
var prev_alto = next_alto = 0;
if(prev_element.length>0){
prev_alto = prev_element.outerHeight() + prev_element.offset().top;
if(debug){
console.log("lydiadebug() prev_element:" + prev_element.attr("class"));
console.log("lydiadebug() prev_alto: " + prev_alto + " = "+prev_element.outerHeight() +" + " + prev_element.offset().top);
}
}
if(next_element.length>0){
next_alto = next_element.outerHeight() + next_element.offset().top;
if(debug){
console.log("lydiadebug() next_alto: " + next_alto + " = "+next_element.outerHeight() +" + " + next_element.offset().top);
console.log("lydiadebug() next_element:" + next_element.attr("class"));
console.log("lydiadebug() fxbn_inicial: " + fxbn_inicial);
console.log("lydiadebug() fxbn_alto: " + fxbn_alto);
}
if(next_element.offset().top > (fxbn_inicial)){ //+fxbn_alto
if(debug){
console.log("lydiadebug() eliminamos next_alto: " + next_alto );
}
next_alto = 0;
}
}
if(debug){
//console.log("lydiadebug() next_alto: " + next_alto );
}
var m = prev_alto;
if(next_alto>prev_alto){
m = next_alto;
if(debug){
//console.log("lydiadebug() next_alto: " + next_alto );
}
}
var max = m - fxbn_inicial - fxbn_alto;
//console.log("Calculo de max: "+max+" = "+m+" - "+fxbn_inicial+" - "+fxbn_alto);
if(debug){
console.log("lydiadebug() max: " + max );
console.log(fxbn_alto+" | "+prev_alto+" | "+next_alto+" | "+max);
}
//if(max>0){
var topWindow = 0;
var fxins = fx.find("ins");
$(window).bind('scroll', function() {
topWindow = $(window).scrollTop();
fxbn_inicial = fx.offset().top ;
var iframes = fx.find("iframe, ins");
if( (topWindow> (fxbn_inicial-80)) && iframes.length<2){
var margin = topWindow - fxbn_inicial + 80 ;
if(margin<=max){ //(margin + topWindow)
fx.css({"padding-top": margin+"px"});
//fxins.css({"margin-top": margin+"px"});
if(debug){
console.log(
"lydiadebug() Previo: " + prev_alto +
" ; Banner top: " + fxbn_inicial +
" ; Banner alto: " + fxbn_alto +
" ; Banner padding: " + margin +
" ; MAX: " + max +
" ; margin + topWindow: " + (margin + topWindow) );
}
}
}else{
fx.css({"padding-top":"0px"});
//fxins.css({"margin-top":"0px"});
//Recalculamos
fxbn_alto = fx.find("ins").first().innerHeight();
/*fxbn_alto = fx.innerHeight();
prev_alto = fx.prev().height() + fx.prev().offset().top;
m = prev_alto;
if(next_alto>prev_alto){
m = next_alto;
console.log("lydiadebug() next_alto: " + next_alto );
}
max = m - fxbn_inicial - fxbn_alto;*/
prev_alto = prev_element.outerHeight() + prev_element.offset().top;
if(next_element.length>0){
next_alto = next_element.outerHeight() + next_element.offset().top;
if(next_element.offset().top > (fxbn_inicial)){ //+fxbn_alto
next_alto = 0;
}
}
m = prev_alto;
if(next_alto>prev_alto){
m = next_alto;
}
max = m - fxbn_inicial - fxbn_alto;
}
//$(".titlefixed").html(topWindow + " " + fxbn_inicial + " " + margin);
});
//}
}else{
if(debug){
console.log("lydiadebug() no entra en if fxbn_alto: " + fxbn_alto );
}
}
});
}
//Banners fixed noticia
function fixed_banners_news(){
var ntbn = $(".asidenoticia .banner");
if(ntbn.length>0 ){
//console.log("lydiadebug: asidenoticia() ");
ntbn.each(function(){
var fx = $(this);
if(!fx.hasClass("binding")){
var fxbn_inicial = fx.offset().top;
var fxbn_alto = fx.innerHeight();
var aside = fx.parent("aside").parent(".contsom").children(".noti, .sinnoti");
if(aside.length>0){
//alert(fx.parents(".contsom").children(".noti").innerHeight())
var aside_inicial = aside.offset().top;
var aside_alto = aside.innerHeight();
var topWindow = 0;
var max = (aside_alto - fxbn_alto);
//console.log("lydiadebug: noti: "+aside_alto+"; max: "+max+"; fxbn_inicial: "+fxbn_inicial+"; ");
$(window).bind('scroll', function() {
topWindow = $(window).scrollTop();
var ww = $(window).height();
fxbn_alto = fx.innerHeight();
if( (topWindow > (fxbn_inicial-80)) && ww>800 ){
aside_alto = aside.innerHeight();
max = (aside_alto - fxbn_alto) -20; //+ 80
var margin = topWindow - fxbn_inicial + 80 ;
if(margin<=max){
fx.css({"margin-top":margin+"px"});
}
}else{
fx.css({"margin-top":"0px"});
fxbn_inicial = fx.offset().top;
}
//$(".titlefixed").html(topWindow + " " + fxbn_inicial + " " + margin);
});
fx.addClass("binding");
}
}
});
}
}
fixed_banners_news();
//Del modulo contenidos
/*var orderb = $("#orderb");
var orderurl = $("#url");
if(orderb.length>0 && orderurl.length>0){
orderb.change(function(){
window.location.href = orderurl.val() + "?orderb=" + orderb.val();
});
}*/
var mySwiper = null;
function swiper_load(){
if($(".swiper-container:not(.swiper-book)").length>0){
if($(".slidelight").length==0){
if($(".btn_mercado_dia").length>0){
mySwiper = new Swiper ('.swiper-container', {
simulateTouch: false,
allowTouchMove: false,
autoHeight: true
});
var i = 0;
var dclass = 'diactivo';
var first_trigger = true;
$(".btn_mercado_dia").each(function(){
$(this).data('dia', i);
$(this).click(function(){
var dia = $(this).data('dia');
console.log("ir a:"+dia);
mySwiper.slideTo(dia, 500);
$(".btn_mercado_dia").removeClass(dclass);
$(this).addClass(dclass);
if(!first_trigger){
$('html,body').animate({
scrollTop: $(".cinticine-4").offset().top - 60
}, 'slow');
}
});
i++;
});
setTimeout(function(){
$(".btn_mercado_dia:first-child").trigger('click');
first_trigger = false;
}, 300);
}else{
/*mySwiper = new Swiper ('.swiper-container', {
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
}
});*/
$('.swiper-container').each(function(){
if($(this).find('.swiper-button-next').length>0){
mySwiper = new Swiper ($(this), {
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
}
});
}else if($(this).find('.agenda-next').length>0){
mySwiper = new Swiper ($(this), {
navigation: {
nextEl: '.agenda-next',
prevEl: '.agenda-prev',
},
autoHeight: true
});
}
if($(this).find('.marquesina_ultimas_noticias_cuerpo').length>0){
const mySwiper = new Swiper($(this), {
// Optional parameters
direction: "horizontal",
loop: true,
// If we need pagination
pagination: {
el: ".swiper-pagination",
},
// Navigation arrows
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev",
},
});
}
});
}
}
$(".swiper-button-next, .swiper-button-prev, .agenda-next, .agenda-prev,.ultima-hora-next, .ultima-hora-prev").click(function(){
$(window).trigger('scroll');
});
}
}
swiper_load();
/*function remove_zones(){
$(".divVideoStep").remove();
}*/
function disqus(){
//console.log("lydiadebug: disqus() ");
$(".commentsshowhide").each(function(){
//console.log("lydiadebug: disqus capa ");
var disqusLoaded = false;
$(this).unbind("click");
$(this).click(function(){
//console.log("lydiadebug: disqus click() ");
var commentscont = $(this).parent().children(".commentscont");
commentscont.slideToggle();
if(!disqusLoaded){
var id_noticia = commentscont.attr("id");
//console.log("lydiadebug: disqus id_noticia() " + id_noticia);
var iframeDisqus = "";
commentscont.html(iframeDisqus);
//$(".commentscont iframe").load();
commentscont.children("iframe").load();
disqusLoaded = true;
}
});
});
}
disqus();
//console.log("lydiadebug: test()");
var ic = $(".nextnew");
var m = 1;
var h = "";
var ip = 0; //
var btnw = 0;
var trigger = true;
var trigger_slide = false;
function infiniteLoad(){ //m, h
ic = $(".nextnew");
slide_nex_new = $("#slide_nex_new")
if(ic.length>0){
ip = ic.offset().top + ic.height() ;//+ 200; //
//console.log("lydiadebug: infiniteLoad() ip: "+ip+" | btnw:"+btnw);
trigger = true;
trigger_slide = false;
}else if(slide_nex_new.length>0){
ip = slide_nex_new.offset().top ;//+ 200; //
//console.log("lydiadebug: infiniteLoad( MODE 2) ip: "+ip+" | btnw:"+btnw);
trigger = false;
trigger_slide = true;
}else{
trigger_slide = false;
trigger = false;
}
disqus();
fixed_banners_news();
}
if( ic.length>0 ){
h = $("#hashnews").val();
var mp = 0;
if($("#movpath").length>0){
mp = 1;
}
if(ic.hasClass("mode1")){ m = 1; }
if(ic.hasClass("mode2")){ m = 2; }
if(ic.hasClass("mode3")){ m = 3; }
if(ic.hasClass("mode4")){ m = 4; }
setTimeout(function(){
infiniteLoad(); //mode, h
}, 3000);
$(window).bind('scroll', function() {
btnw = $(window).scrollTop() + $(window).height();
btnw2 = $(window).scrollTop() ;
//console.log("lydiadebug: scroll() ip: " + ip + " | btnw:" + btnw);
if( (btnw > ip ) && trigger ){
trigger = false;
//console.log("lydiadebug: scroll() triggered!");
//$(window).unbind('scroll');
var para = "";
var arg = $("#NmZiZDFhZTdhZGVi");
if(arg.length>0){
para = "&NmZiZDFhZTdhZGVi";
//alert("NmZiZDFhZTdhZGVi")
}
if(ic.hasClass("nextnewapp")){
para += '&nextnewapp';
}
$.get( "/" + DIRECTORY + "js/actions.php?action=nextnew"+para, { mode: m, hash: h, movpath: mp},
function(data){
//console.log("lydiadebug: data()");
//remove_zones();
ic.replaceWith(data);
infiniteLoad(m, h);
}
);
}
//console.log("lydiadebug: TEST ip: "+ip+" | btnw:"+ (btnw-200));
/*if(nextnew_enabled){
if( btnw > 500 && (btnw-200 > ip ) && trigger_slide && $("#slide_nex_new").length>0){
trigger_slide = false;
var goto = $("#slidelink").attr("href");
console.log("lydiadebug: slide() triggered! GOTO: "+goto);
$("#slide_nex_new").addClass("triggered").html("Cargando siguiente noticia...");
$(".slide #slidelink")[0].click();
//window.location.href = goto;
}else{
if($("#slide_nex_new").length>0){
ip = $("#slide_nex_new").offset().top ;
}
}
}*/
});
$(window).trigger('scroll');
}
//Ahora mismo deprecado
//Carga asíncrona de categorías
if($(".async_cointainer").length>0){
var loadable = true;
$("body").css({"padding-bottom":"700px"});
$(window).bind('scroll', function() {
if(loadable){
topWindow = $(window).scrollTop();
wheigh = $( window ).height();
marg = 400;
marg2 = -50;
//var c = $(".async_cointainer").first();
$(".async_cointainer").each(function(){
var c = $(this);
var h = c.offset().top;
var plid = c.attr("id");
var id = plid.split("-");
if( (topWindow + wheigh + marg > h) && (topWindow + marg2 < h) && loadable){ //
//$("script.revivescript").remove();
loadable = false;
console.log("lydiadebug: async() triggered!");
console.log("lydiadebug: CAT: "+id[2]+" "+(topWindow + wheigh + marg)+" > " + h + " | " + (topWindow+ marg2)+" < " + h );
//"/" + DIRECTORY +
/*$.get( "./js/actions.php?action=async_cat", { hash: id[1], cat: id[2], num: id[3]},
function(data){
console.log("lydiadebug: data()");
$("#"+plid).replaceWith(data);
$("body").css({"padding-bottom":"0px"});
if(masterTop>0){
window.scrollTo(0, masterTop);
}
masterTop = 0;
loadable = true;
swiper_load();
lazy_func();
//document.write('-->