Hello everyone, I would like to include in the code below an included message (or simple alert) every time you arrive on specific dates and also a vibration (if possible) example: when it is Mother's Day, display the message Mother's Day and vibrate, in the same Christmas thing ... and etc ...
function setCookie1(e,t,n) {
var i=new Date;
i.setTime(i.getTime()+24*n*60*60*1e3);
var o="expires="+i.toUTCString();
document.cookie=e+"="+t+"; "+o
}
function getCookie1(e){
for(var t=e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){
for(var o=n[i];""==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(t))
return o.substring(t.length,o.length)}return 0
}
var datum = new Date()
var jahr = datum.getFullYear()
var tag = datum.getDate()
function monat1(){
var monat = datum.getMonth()
if (monat==0) document.write("Janeiro");
if (monat==1) document.write("Fevereiro");
if (monat==2) document.write("Março");
if (monat==3) document.write("Abril");
if (monat==4) document.write("Maio");
if (monat==5) document.write("Junho");
if (monat==6) document.write("Julho");
if (monat==7) document.write("Agosto");
if (monat==8) document.write("Setembro");
if (monat==9) document.write("Outubro");
if (monat==10) document.write("Novembro");
if (monat==11) document.write("Dezembro");
}
function wotag(){
var datum = new Date();
var wochentag = datum.getDay();
if (wochentag==0) document.write("Domingo");
if (wochentag==1) document.write("Segunda");
if (wochentag==2) document.write("Terça");
if (wochentag==3) document.write("Quarta");
if (wochentag==4) document.write("Quinta");
if (wochentag==5) document.write("Sexta");
if (wochentag==6) document.write("Sabado");
}
wotag();
document.write(", ");
document.write(tag,". ");
monat1();
document.write(" ",jahr);
<div style="font-size: 0.8em;margin-top: 50px;color: #000000;text-align:
center;"> Hoje é - </div>