diff --git a/Orloj.otf b/Orloj.otf deleted file mode 100644 index ade1d62..0000000 Binary files a/Orloj.otf and /dev/null differ diff --git a/fonts/EurostileRound-Medium.ttf b/fonts/EurostileRound-Medium.ttf new file mode 100644 index 0000000..750cbac Binary files /dev/null and b/fonts/EurostileRound-Medium.ttf differ diff --git a/fonts/EurostileRoundExtended-Black.ttf b/fonts/EurostileRoundExtended-Black.ttf new file mode 100644 index 0000000..0a39deb Binary files /dev/null and b/fonts/EurostileRoundExtended-Black.ttf differ diff --git a/fonts/EurostileRoundExtended-Regular.ttf b/fonts/EurostileRoundExtended-Regular.ttf new file mode 100644 index 0000000..3175d6c Binary files /dev/null and b/fonts/EurostileRoundExtended-Regular.ttf differ diff --git a/fullscreen-style.css b/fullscreen-style.css index 3f7da15..c8392e0 100644 --- a/fullscreen-style.css +++ b/fullscreen-style.css @@ -1,6 +1,6 @@ @font-face{ font-family: '7Digital'; - src: url('Orloj.otf'); + src: url('DigitalDismay-VAKw.ttf'); font-weight: normal; font-style: monospace; } diff --git a/script.js b/script.js index b76832e..da44635 100644 --- a/script.js +++ b/script.js @@ -17,8 +17,10 @@ var language_user = window.navigator ? (window.navigator.language || window.navigator.userLanguage) : "ru"; language_user = language_user.substr(0, 2).toLowerCase(); language_site = (language_user == "ru" || language_user == "by" || language_user == "ua") ? "ru" : "en"; -var date_to_local = new Intl.DateTimeFormat(language_site, {timeZone: 'UTC', weekday: 'short', year: 'numeric', month: 'short', day: 'numeric', hour: 'numeric', minute: 'numeric', second: 'numeric', timeZoneName: 'short'}); -var relative_to_local = new Intl.RelativeTimeFormat(language_site, {numeric: 'auto', style: 'long'}); +const local_date_settings = {timeZone: 'UTC', weekday: 'short', year: 'numeric', month: 'short', day: 'numeric', hour: 'numeric', minute: 'numeric', second: 'numeric', timeZoneName: 'short'}; +var date_to_local = new Intl.DateTimeFormat(language_site, local_date_settings); +const local_relative_settings = {numeric: 'auto', style: 'long'}; +var relative_to_local = new Intl.RelativeTimeFormat(language_site, local_relative_settings); function ReadableTimerSwitcher(){ readable_timer_mode++ if(readable_timer_mode > 2){readable_timer_mode = 0} @@ -68,8 +70,8 @@ function languageSwitcher(lang_code){ language_site = "en"; break; } - date_to_local = new Intl.DateTimeFormat(language_site, {timeZone: 'UTC', weekday: 'short', year: 'numeric', month: 'short', day: 'numeric', hour: 'numeric', minute: 'numeric', second: 'numeric', timeZoneName: 'short'}); - relative_to_local = new Intl.RelativeTimeFormat(language_site, {numeric: 'auto', style: 'long'}); + date_to_local = new Intl.DateTimeFormat(language_site, local_date_settings); + relative_to_local = new Intl.RelativeTimeFormat(language_site, local_relative_settings); } languageSwitcher(language_site); function msecDisplaySwitcher(){ @@ -99,7 +101,7 @@ function SpawnOtherCounters(){ } catch (e) { date_to = ((element[3] / 60n / 60n / 24n / 365n) + 1970n).toLocaleString(language_site, {style: "unit", unit: "year"}) } - other_counters_html = other_counters_html + '