-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TMS-1032: Add seconds to countdown-timer block #506
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kts. huomiot
@@ -61,11 +63,13 @@ export default class Countdown { | |||
diff = targetTime - now, | |||
days = Math.floor( diff / ( 1000 * 60 * 60 * 24 ) ), | |||
hours = Math.floor( ( diff % ( 1000 * 60 * 60 * 24 ) ) / ( 1000 * 60 * 60 ) ), | |||
minutes = Math.floor( ( diff % ( 1000 * 60 * 60 ) ) / ( 1000 * 60 ) ); | |||
minutes = Math.floor( ( diff % ( 1000 * 60 * 60 ) ) / ( 1000 * 60 ) ), | |||
seconds = Math.floor( ( diff % ( 1000 * 60 ) ) / 1000 ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Näissä ois varmaan voinut käyttää näitä laskettuja arvoja hyödyksi, esim. days = Math.floor( ( diff % days ) / ( 1000 * 60 * 60 ) )
tjsp. Mutta ei tarvi nyt alkaa muuttamaan.
|
||
@include from($tablet) { | ||
&--seconds { | ||
width: 125px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Saisko laitettua remeinä?
msgstr "" | ||
|
||
#: assets/dist/vendor.js:1 | ||
msgid "Wrong length!" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nää vendor-filun käännökset kannattaisi jättää pois, mutta ei tarvi nyt muuttaa kun ei näitä kauheeta läjää tullut
lib/ACF/Fields/CountdownFields.php
Outdated
'countdown' => 'Laskuri (päivät, tunnit, minuutit)', | ||
'countdown_date' => 'Laskuri (päivät)', | ||
'date' => 'Päivämäärä', | ||
'countdown_seconds' => 'Laskuri (päivät, tunnit, minuutit, sekuntit)', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'countdown_seconds' => 'Laskuri (päivät, tunnit, minuutit, sekuntit)', | |
'countdown_seconds' => 'Laskuri (päivät, tunnit, minuutit, sekunnit)', |
Severa-ID: 2108
Severa-kuvaus: TMS-1032 Sekunnit näkyviin count down -laskuriin
Task: https://hiondigital.atlassian.net/browse/TMS-1032
Description
Types of changes