Zum Inhalt
Zur Navigation
Dieser Inhalt kann aufgrund Ihrer Cookie-Einstellungen nicht angezeigt werden.
Date.prototype.getWeek = function() {
var date = new Date(this.getTime());
date.setHours(0, 0, 0, 0);
// Thursday in current week decides the year.
date.setDate(date.getDate() + 3 - (date.getDay() + 6) % 7);
// January 4 is always in week 1.
var week1 = new Date(date.getFullYear(), 0, 4);
// Adjust to Thursday in week 1 and count number of weeks from date to week1.
return 1 + Math.round(((date.getTime() - week1.getTime()) / 86400000
- 3 + (week1.getDay() + 6) % 7) / 7);
}
jQuery(function(){
var today = new Date();
var weekno = today.getWeek();
var weiz = "APOTHEKENDIENST: APOTHEKE WEIZ (SPAR MARKT)";
var steirer= "APOTHEKENDIENST: STEIRER APOTHEKE";
var paracelsus = "APOTHEKENDIENST: PARACELSUS APOTHEKE";
if(weekno == 1) { $("#cta-button a").text(steirer); }
else if (weekno == 2) { $("#cta-button a").text(paracelsus); }
else if (weekno == 3) { $("#cta-button a").text(weiz); }
else if (weekno == 4) { $("#cta-button a").text(steirer); }
else if (weekno == 5) { $("#cta-button a").text(paracelsus); }
else if (weekno == 6) { $("#cta-button a").text(weiz); }
else if (weekno == 7) { $("#cta-button a").text(steirer); }
else if (weekno == 8) { $("#cta-button a").text(paracelsus); }
else if (weekno == 9) { $("#cta-button a").text(weiz); }
else if (weekno == 10) { $("#cta-button a").text(steirer); }
else if (weekno == 11) { $("#cta-button a").text(paracelsus); }
else if (weekno == 12) { $("#cta-button a").text(weiz); }
else if (weekno == 13) { $("#cta-button a").text(steirer); }
else if (weekno == 14) { $("#cta-button a").text(paracelsus); }
else if (weekno == 15) { $("#cta-button a").text(weiz); }
else if (weekno == 16) { $("#cta-button a").text(steirer); }
else if (weekno == 17) { $("#cta-button a").text(paracelsus); }
else if (weekno == 18) { $("#cta-button a").text(weiz); }
else if (weekno == 19) { $("#cta-button a").text(steirer); }
else if (weekno == 20) { $("#cta-button a").text(paracelsus); }
else if (weekno == 21) { $("#cta-button a").text(weiz); }
else if (weekno == 22) { $("#cta-button a").text(steirer); }
else if (weekno == 23) { $("#cta-button a").text(paracelsus); }
else if (weekno == 24) { $("#cta-button a").text(weiz); }
else if (weekno == 25) { $("#cta-button a").text(steirer); }
else if (weekno == 26) { $("#cta-button a").text(paracelsus); }
else if (weekno == 27) { $("#cta-button a").text(weiz); }
else if (weekno == 28) { $("#cta-button a").text(steirer); }
else if (weekno == 29) { $("#cta-button a").text(paracelsus); }
else if (weekno == 30) { $("#cta-button a").text(weiz); }
else if (weekno == 31) { $("#cta-button a").text(steirer); }
else if (weekno == 32) { $("#cta-button a").text(paracelsus); }
else if (weekno == 33) { $("#cta-button a").text(weiz); }
else if (weekno == 34) { $("#cta-button a").text(steirer); }
else if (weekno == 35) { $("#cta-button a").text(paracelsus); }
else if (weekno == 36) { $("#cta-button a").text(weiz); }
else if (weekno == 37) { $("#cta-button a").text(steirer); }
else if (weekno == 38) { $("#cta-button a").text(paracelsus); }
else if (weekno == 39) { $("#cta-button a").text(weiz); }
else if (weekno == 40) { $("#cta-button a").text(steirer); }
else if (weekno == 41) { $("#cta-button a").text(paracelsus); }
else if (weekno == 42) { $("#cta-button a").text(weiz); }
else if (weekno == 43) { $("#cta-button a").text(steirer); }
else if (weekno == 44) { $("#cta-button a").text(paracelsus); }
else if (weekno == 45) { $("#cta-button a").text(weiz); }
else if (weekno == 46) { $("#cta-button a").text(steirer); }
else if (weekno == 47) { $("#cta-button a").text(paracelsus); }
else if (weekno == 48) { $("#cta-button a").text(weiz); }
else if (weekno == 49) { $("#cta-button a").text(steirer); }
else if (weekno == 50) { $("#cta-button a").text(paracelsus); }
else if (weekno == 51) { $("#cta-button a").text(weiz); }
else if (weekno == 52) { $("#cta-button a").text(steirer); }
else return;
});