Ver Mensaje Individual
  #20 (permalink)  
Antiguo 10/01/2016, 12:42
Avatar de IsaBelM
IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 15 años, 10 meses
Puntos: 1012
Respuesta: agregar variable a funcion de horarios

Intentaré interpretarte. Te refieres a esto??
Cita:
If (day == 6 || day == 0) {
console.log('cerrado');
} else {
if(hours >= 800 && hours <= 1224) {console.log(hours + " Abierto")}
else if(hours >= 1225 && hours <= 1529) {console.log(hours + " Cerrado")}
else if(hours >= 1530 && hours <= 2000) {console.log(hours + " Abierto")}
else if(hours >= 2001 && hours <= 2359) {console.log(hours + " Cerrado")}
}
__________________
if(ViolenciaDeGénero) {alert('MUJER ASESINADA');}