KKeine Bearbeitungszusammenfassung |
KKeine Bearbeitungszusammenfassung |
||
Zeile 2: | Zeile 2: | ||
var sp_country_codes = document.querySelectorAll('span.sp-country-code'); | var sp_country_codes = document.querySelectorAll('span.sp-country-code'); | ||
for (i = 0; i < sp_country_codes.length; i++) { | for (i = 0; i < sp_country_codes.length; i++) { | ||
sp_country_codes[i].innerHTML = navigator.language; | sp_country_codes[i].innerHTML = (navigator.language).substring(0,2); | ||
} | } |
Version vom 11. Juni 2019, 10:28 Uhr
/* Das folgende JavaScript wird für alle Benutzer geladen. */ var sp_country_codes = document.querySelectorAll('span.sp-country-code'); for (i = 0; i < sp_country_codes.length; i++) { sp_country_codes[i].innerHTML = (navigator.language).substring(0,2); }