Тёмный

Build this JS Digital Clock in 10 minutes! 🕐 

Bro Code
Подписаться 2 млн
Просмотров 8 тыс.
50% 1

#JavaScript #tutorial #course
Here is a digital clock project you can build using JavaScript, HTML, and CSS. Impress your friends!
00:00:00 HTML
00:00:45 CSS
00:06:03 JavaScript

Опубликовано:

 

11 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 25   
@BroCodez
@BroCodez 7 месяцев назад
*UPDATE: Add this CSS property to #clock to give your text a shadow text-shadow: 3px 3px 5px hsl(0, 0%, 0%); // DIGITAL CLOCK PROGRAM function updateClock(){ const now = new Date(); let hours = now.getHours(); const meridiem = hours >= 12 ? "PM" : "AM"; hours = hours % 12 || 12; hours = hours.toString().padStart(2, 0); const minutes = now.getMinutes().toString().padStart(2, 0); const seconds = now.getSeconds().toString().padStart(2, 0); const timeString = `${hours}:${minutes}:${seconds} ${meridiem}`; document.getElementById("clock").textContent = timeString; } updateClock(); setInterval(updateClock, 1000); Document 00:00:00 body{ background-image: url(background.jpg); background-position: center; background-repeat: no-repeat; background-size: cover; background-attachment: fixed; margin: 0; } #clock-container{ display: flex; justify-content: center; align-items: center; height: 100vh; } #clock{ font-family: monospace; font-size: 6.5rem; font-weight: bold; text-align: center; color: white; backdrop-filter: blur(5px); background-color: hsla(0, 0%, 100%, 0.1); width: 100%; text-shadow: 3px 3px 5px hsl(0, 0%, 0%); }
@FLOW---
@FLOW--- 7 месяцев назад
🚩🚩🚩 Just finshed your HTML, CSS course Thank you very very much for these AMAZING Tutorials. Very smooth and this is the fisrt time ever i have not felt bored or annoyed this is truly very well put and explained. 👍🏼👍🏼 ✅ just one question please : I am starting Javascript and found 2 courses on your channels : - 1 big 8 hours long video - 2 a playlist with 57 short videos. what's the difference btw these two and which one should i start with and follow as a Javascript beginner : do i start with first long video or the playlist ?? Thank you very much
@fatiukehindehafees1198
@fatiukehindehafees1198 23 дня назад
Well done to the 7k viewers who made it to video 57, your almost done, don't give up soliders!
@p.surendra7058
@p.surendra7058 7 месяцев назад
Iam learning JS with your tutorial, thanks🤝
@ArconicTower
@ArconicTower 5 месяцев назад
So simple yet beautiful !
@rmf11699
@rmf11699 2 месяца назад
Thanks! Just what I need for a project.
@SeniorSteven
@SeniorSteven 7 месяцев назад
Thanks Bro, this is what we wanted!
@immacreaseyourjays
@immacreaseyourjays 7 месяцев назад
Hey, I know you are doing a LOT lol, but is it alright if you think about maybe making a Lua course? My brother needs it. Thanks for maybe considering, you are actually one of my favorite RU-vidrs.
@khalidelgazzar
@khalidelgazzar 5 месяцев назад
Beautiful 😊
@thangavel_st
@thangavel_st 7 месяцев назад
Master ❤
@user-ri7xy7gh2m
@user-ri7xy7gh2m 7 месяцев назад
great❤
@irhamgemok4065
@irhamgemok4065 7 месяцев назад
Hey Bro! You really help me learned Tkinter for the past month, could you make a tutorial for PyQT? I know it would be hard but if you can do it, please...
@Khemarint.
@Khemarint. 7 месяцев назад
Hi I’m learning your JavaScript tutorial and I very curious about API can you make a video about API with JavaScript. I really like your explanation.
@hydrogennetwork
@hydrogennetwork 6 месяцев назад
i don't think API will work with javascript it usually is backend and javascript isn't
@samialvi4226
@samialvi4226 2 месяца назад
just Became your fan!
@SarthakWasNotTaken
@SarthakWasNotTaken 7 месяцев назад
Can you help me make a python calculator? Started learning programming like a week ago. I was able to make a calculator but it can only calculate two numbers. I wanna make a calculator which can calculate more then two numbers using loops?
@BroCodez
@BroCodez 7 месяцев назад
I'll be revisiting Python next year and I'll keep that in mind. You can use eval(expression) for more than two numbers.
@FLACO03
@FLACO03 7 месяцев назад
Yo great stuff I’ve just finished the 1 hour course html and now I moved to the 4 hour html and css vid - is it better to memorize the codes or write them down to comeback to them every now and then and what’s the best way to practice it Ik I’m annoying but I’m brand new in this industry and trying to gather all the info that I can and if you have tips for beginners pls help us beginners
@jamesbandz1
@jamesbandz1 7 месяцев назад
Make projects off of your interest or act like you are working somewhere (like a school or something that needs a website and a database) and create. If you get stuck, google is your friend and when you google make sure you have a concise wording of the problem.
@FLACO03
@FLACO03 7 месяцев назад
@@jamesbandz1 thx bro
@jamesbandz1
@jamesbandz1 7 месяцев назад
@@FLACO03 No problem
@FreeFire-rx9lv
@FreeFire-rx9lv Месяц назад
I have a problem on minute 7:27 when i save it the time doesn't appear its just say on the screen $(hours):$(minutes):$(seconds) can someone help me
@thecrabber4251
@thecrabber4251 7 месяцев назад
Can we do the designing and stuff using plain js ?
@hunin27
@hunin27 7 месяцев назад
you could. but it's very bad practice. you would need so many more lines of code and it will also be slower
Далее
Build this JS STOPWATCH in 18 minutes! ⏱
18:06
Просмотров 20 тыс.
Build this JS calculator in 15 minutes! 🖩
15:20
Просмотров 416 тыс.
Нашли Краша Младшей Сестры !
23:46
Good dad 🥰 #demariki
00:17
Просмотров 9 млн
Learn CSS Subgrid in 14 minutes
14:19
Просмотров 61 тыс.
Learn JavaScript KEY EVENTS in 10+ minutes! ⌨
11:16
Responsive Flexbox Layout in 2 Minutes
2:41
Просмотров 24 тыс.
Learn JavaScript ELEMENT SELECTORS easy! 📑
17:38
Просмотров 16 тыс.
Local Storage Explained In 10 min | Javascript
10:53
Просмотров 56 тыс.
Why I use grid over flexbox for this common layout
7:32
Become A Master Grid CSS In 13 Minutes
13:46
Просмотров 17 тыс.
Tic Tac Toe in JavaScript (Super Simple!)
38:05
Просмотров 8 тыс.
Learn Flexbox CSS in 8 minutes
8:16
Просмотров 1,4 млн
Нашли Краша Младшей Сестры !
23:46