+ 3
What time is it?
Copy and paste into the Playground: <!DOCTYPE html> <html> <head> <title>Page Title</title> <style> body { padding: 60px; background-color: #000; color: lime; font-size: 46pt; } </style> </head> <body> <script> function printTime() { var d = new Date(); var hours = d.getHours(); var mins = d.getMinutes(); var secs = d.getSeconds(); document.body.innerHTML = hours+":"+mins+":"+secs; } setInterval(printTime, 1000); </script> </body> </html>
5 Answers
0
Nickel comme code, merci beaucoup :)
0
@Aman Nice addition. Thanks!
0
how to copy paste?
0
@Killua, press and hold anywhere on the text you want to copy. You'll see a bit of text got selected and a new menu shows up in top-right with small icons. One of them means "select all". Click on it. Then click the next one to copy. Go to Playground and create a new doc. Paste what you've copied under 'html' then hit 'Run'.
0
I adore you zinc đ