Seite 1 von 1

actual_time_extension Darstellung ändern

Verfasst: 28.12.2015 21:43
von Marcuss
Hallo zusammen!

Wie kann ich bei der genannten Extension die Darstellung so ändern, das folgende Ausgabe erscheint:

Es ist 'Wochentag', der 'Datum' - Uhrzeit

Danke im voraus

Re: actual_time_extension Darstellung ändern

Verfasst: 29.12.2015 12:41
von Kirk
Hallo
Öffne: root/ext/kirk/actual_time/jquery/actualtime_de.js
Finde:

Code: Alles auswählen

	// Set the text to display before the clock:
	var mypre_text = "Aktuelle Zeit: ";
Ersetzen mit:

Code: Alles auswählen

	// Set the text to display before the clock:
	var mypre_text = "Es ist ";

	// Set the text to display after the day:
	var mypre_text2 = "der ";
Finde:

Code: Alles auswählen

		myclock += hours+':'+minutes;
Ersetzen mit:

Code: Alles auswählen

		myclock += DaysOfWeek[day]+' '+mypre_text2+' '+mday+'. '+MonthsOfYear[month]+' '+year+' - '+hours+':'+minutes;
		//myclock += hours+':'+minutes;
Finde:

Code: Alles auswählen

if (DisplayDate) { myclock += ' - '+DaysOfWeek[day]+' '+mday+'. '+MonthsOfYear[month]+' '+year; }
Ersetzen mit:

Code: Alles auswählen

//if (DisplayDate) { myclock += ' - '+DaysOfWeek[day]+' '+mday+'. '+MonthsOfYear[month]+' '+year; }