0

Help Me With This Code. Am/Pm problem & css problem. Help me out.

https://code.sololearn.com/W23Mgu2Hk9vw/?ref=app

11th Aug 2020, 5:46 PM
Ahmad Talha
Ahmad Talha - avatar
3 ответов
+ 4
On line 13&14 you override variable ampm from holding a document element to holding a string which prevents you from later writing a value to the element. On line 36 you write target variable ap when trying to write to the DOM instead of variable ampm. To center the clock while using display flex you can just add this to your css #time{ justify-content: center; }
11th Aug 2020, 7:36 PM
JME
+ 1
Thanks a lot brother! ❤
11th Aug 2020, 8:57 PM
Ahmad Talha
Ahmad Talha - avatar
0
Brother! After adding this as you said. Yesterday it was Alright. The time this now 14:59:00 but in clock showing AM 😥
12th Aug 2020, 8:59 AM
Ahmad Talha
Ahmad Talha - avatar