Free tickets to my first concert for anyone that can guess the song I butchered in the intro. 🎫
@BabyDespair5 жыл бұрын
Black Sabbath - Iron Man. Just the song alone would have been enough for the like and sub, but the class too was very good and greatly helpful. Great Job!
@WebDevSimplified5 жыл бұрын
@@BabyDespair The song is such a classic. Looks like you will be getting VIP tickets to my first concert. If you are lucky I'll play Smoke On The Water and Wonderwall.
@bryantgrimminger54815 жыл бұрын
kzbin.info/www/bejne/emOlgY2IYrqUj6s
@alecthomasquinn44385 жыл бұрын
Darude - Sandstorm
@Hemu1464 жыл бұрын
Man You are the BEST.I like your videos.its more easy to understand JS through your Videos.thanks for sharing your knowledge through these videos bro. Love you bro 👍
@kienboy9999 Жыл бұрын
man the placement of numbers around the clock is just magic
@filon8615 жыл бұрын
My top favorite web dev channels 1. Web Dev Simplified 2. Dev Ed 3. Kevin Powell 4. Darkcode
yes. more often since then cyber native toddlers fiddle with systems online
@uzair0044 жыл бұрын
was searching for a way to add curve text or numbers inside clock , found out there is no easy way except jquery or another library, BUT then i found Web Dev Simplified, yeah Simplified
@zawadahmed54843 жыл бұрын
honestly speaking, among all the javascript devs, Kyle is the most talented. That's my opinion
@TheWorldlife833 жыл бұрын
Thanks for this, all your videos are very useful, short and precise. 🙂 we can add this JavaScript to rotate numbers without writing 12 different css - let allNum = document.querySelectorAll('.number'); for(let num of allNum){ num.style.transform = `rotate(${30*num.innerText}deg)`; }
@harunjonuzi Жыл бұрын
it doesnt seem to work though? we need to transform the innerText to number, because 30 * "1", it uses strings to multiply...
@Suneriins2344 жыл бұрын
Only This due to 'defer'in script src,I troubled for hour. Finally got it.Thanks!
@vingram1002 жыл бұрын
Good gosh, thank you so much! I'm going to read about defer now, I was so confused!
@zamankhan12555 жыл бұрын
Best programming channel I found so far for begginers, nice videos with best projects, keep it up!
@WebDevSimplified5 жыл бұрын
Thank you!
@gxc20004 жыл бұрын
A really nice, enjoyable project. I was expecting it to contain some complex drawing in the JavaScript file. It was very surprising to see that almost all of the work is actually done in the CSS file! Many thanks and really well presented.
@WebDevSimplified4 жыл бұрын
Thank you. I like using CSS when I can for designs since it is so fun to work with.
@mandihaase27443 жыл бұрын
Awesome simple, straight-forward tutorial. Did this with my daughter and she loved it!
@levezinet2 жыл бұрын
Thank you so much for an incredibly great video. I have been struggling to make clocks and gauges and this provides a superb implementation of the design patterns I need. Bravo. But my clock would not move, and debugging showed null values for the hands. Toward the end of the comments here a large number of people appear to have the same issue. It seems to me that the call to document.querySelector is using search by attribute (['date-hour-hand'] etc) but these attributes do not exist in the sample HTML given for the hands. I simply added an id to the hand divs and used document.getElementById instead and all works perfectly. I thought others may like to know. It would seem that this is an inconsistency in the code in the video, and I suppose videos are hard to go back and edit corrections in. I'll be adapting this to make clocks and compasses for use in Node-RED. I owe you much gratitude. All the best from Down Under in Australia!
@rawoofahamed1785 Жыл бұрын
hey can you show me how is it ?
@256paveliko5 жыл бұрын
I'm a beginner programmer and your explanations are excellent
@WebDevSimplified5 жыл бұрын
Thank you!
@lapto46762 жыл бұрын
I figured out how to rotate the numbers to their upright position on my own and it felt so good! I don't know if it was intentional but it's a great method, leaving things out for the learner to add.
@vishmapdas78982 жыл бұрын
Keep learning! That's the joy!
@pixelum20232 жыл бұрын
Interesting! I had not noticed that basically all clocks have their numbers upright. One more challenge.
@noidea53722 жыл бұрын
how did you do that? can you share your code?
@Sara-rs4oq Жыл бұрын
@@noidea5372 1 2 3 4 5 6 7 8 9 10 11 12
@lapto4676 Жыл бұрын
@WebTricks this is what i did
@saaddogar85632 жыл бұрын
i love how serious he is in his intro even when joking
@sergten4 жыл бұрын
Geez Christ, this channel is golden!
@marcdonvito64855 жыл бұрын
Very good project to learn how HTML, CSS, and JavaScript work together.
@mykhailomikhnovych83034 жыл бұрын
Your awkward acting at the beginning deserves the Oscar my man. Keep it going, you're doing a great job!
@randyrandall66224 жыл бұрын
For complete beginners, I recommend putting video to half speed. Question: How did you learn what all of these individual instructions mean? It seems like it is easy just to copy cat this project but learning the logic is something different and so important. Did you learn how to create this clock after learning W3 Schools? What gave you the logic? Thank you!
@marcusaureliusregulus28333 жыл бұрын
How to make the tip of the hands pointy like an arrow?
@salehabdullah11543 жыл бұрын
@@marcusaureliusregulus2833 By using CSS For example, .clock .hand{ border-top-right-radius: 20px(You can use any other value); border-top-left-radius: 20px; }
@marcusaureliusregulus28333 жыл бұрын
@@salehabdullah1154 thnx mate
@shrn3 жыл бұрын
@@marcusaureliusregulus2833 I remember the joke from the dictator movie after reading this. I want my Nuke heads pointy😂
@MrKnaldperlen2 жыл бұрын
I would like to add to this: Program it while you watch the video. Play around with the code, try and set left to 75% and not 50%. What does it do? Play around, to see how the logic works.
@raphaelmachado71972 жыл бұрын
Your code is so simple and easy for beginners to read
@alexgomez90335 жыл бұрын
Man you definitely are underrated! i am thankful to Dev Ed for introducing me to you. I enjoy all your videos. KEEP UP THE GOOD WORK!!!
@WebDevSimplified5 жыл бұрын
Thanks! I love Dev Ed as well. He has such a great personality.
@medilies3 жыл бұрын
"Absolute children indise an relative container" changed my life I used to make a JS scirpt that follows the container position to update children positions
@andrei91152 жыл бұрын
So basically, in your javascript program you call the current Date every time and then you just display that date accordingly. I think, a more practical way would be if you get the currentDate() once and then from second to second increment all the hands accordingly and then check the currentTime from the Internet and your clock and see if they are the same...I mean, your way is much simpler than trying to calculate how many degrees does the minute and hour move in 1 second and increment it every second :) Keep up the good work!
@iliashterev383 жыл бұрын
Greeting from Bulgaria. Thank you again for the (one more) nice tutorial.
@Risehack4 жыл бұрын
Cool, man! I am new to this topic, and the Internet search did not give much results. But I came across your channel and you helped me. A huge thank you from Russia.
@code_south3 жыл бұрын
I made a tiny improvement where the numbers are not upside down/rotated themselves, so they look straight (just wrap every number and then use the wrapper to correctly position the number around the circle, and then rotate the number inside the wrapper by compensating the angle just with a - before) and also added a tick tock sound to each movement lol.
@jaishrikrishna57552 жыл бұрын
how you added the sound can you please share .Thanks
@code_south2 жыл бұрын
@@jaishrikrishna5755 Of course buddy. //It plays 2 different audio clips depending on if it's even or not, to have more variety haha... It's an old code and haven't revised it but here it is. This goes inside the same setClock function: let factorX = currentDate.getSeconds(); if (factorX % 2 == 0) { let audio = new Audio('snds/clock1.mp3'); } else { let audio = new Audio('snds/clock2.mp3'); } audio.play();
@oguzozdemir88862 жыл бұрын
Awesome and sipmle project. Thank you...
@lauris52753 жыл бұрын
I hope that a junior front end, dont have to really build things like this. I prefer smaller , less complex things. More like actual design. Navbars, sidebars, portfolio making etc. I wouldnt be able to create something like this by myself ever. I understand the logic and the code, but to build by urself from 0, thats another level. edit: i take my words back. Today i can builkd clock by my own. :D Biggest challenge actually is css not the js
@jaishrikrishna57552 жыл бұрын
would you be able to explain the logic if possible
@usama579265 жыл бұрын
this channel is amazing.......... sir you deserve a millions subs and likes
@alecthomasquinn44385 жыл бұрын
Finally finished this project after like a week of on-and-off effort. Tips/a vid on sustaining effort perhaps? I can only concentrate on this stuff for like 2-4 hours before my mind refuses to absorb anything more.
@WebDevSimplified5 жыл бұрын
That is a good idea. 4 hours of focused concentration pretty good if you ask me. My best advice would be to take a break when you start to lose focus and come back after 30 minutes or so. That will freshen your mind up.
@aamirmasood010 Жыл бұрын
amazing!it's lot better than using clock svg image as background.You really made it simplified with that number transform degree property man.....loved it
@markvincentlaboy885810 ай бұрын
Dude you're great at explaining what and why you're doing it. Thank you. I'm currently in a coding bootcamp and am dreding JS dueto lack of explanation. This really helped me. What I would like to add to this are the minute lines within the hours. I'd like to make a game out of this for my kids to mlearn how to tell time. Any pointers?
@computersciencewithpeter2 жыл бұрын
Thanks so much for your tutorials 💕😘
@balalnaeem4 жыл бұрын
`div.number.number${$}*12` would do the job. Double multiplication of 12 is redundant.
@kamal-purohit4 жыл бұрын
Great video... Not at all complecated.. Can use Transtion : 1s ; under hand class For better animation
@anujshany86593 жыл бұрын
Just Loved this it didn't even feel like 17 minutes ❤️
@Mr.slikko4 жыл бұрын
I absolutely love the sketch at the beginning, perfect 👌😹😹😹
@WiLDeveD2 жыл бұрын
Fine & Useful Content. Thanks...
@savannahlin80635 жыл бұрын
Satisfied! always share your videos with friends to help people live easier.
@WebDevSimplified5 жыл бұрын
Thank you! Hopefully your friends enjoy the video.
@vvvaaal3 жыл бұрын
And I thought i had great css knowledge until I started watching your videos. :D
@darrenhoyne74593 жыл бұрын
Great video bud, clear and to the point, very easy to follow along, good job and keep it up
@toyosisalami64532 жыл бұрын
Thank you very much for this great tutorial! I understand the code but I couldn't have figured out the math of it... I just don't know how to figure out how many degrees the minute and hour hands turn each second
@andrei91152 жыл бұрын
Because that formula that he used is not that easy! I made it by myself using just angles. Think about every second runs through 6 degrees, every minute and every hour 30 degrees(6*5). Then you just increment the angle for each of those and that's it. If you want the minute and hour hand to move gradually with every second that passes, then you will have to make a simple math calculation, is not difficult! That ratio thing that he used literally blew my mind. Css part was incredible, congrats but the javascript side was so difficult to understand!! I dont understand why my minute and hour elements translate on X very little, like 1 degree after I load the page...
@mocococo2877 Жыл бұрын
There are any other version using different ways of calculations. You may find some that are more understandable for you and start from there.
@ahmedbadra92373 жыл бұрын
you provide really great value
@usama579265 жыл бұрын
i learned a lot of thing from this lecture
@priyasharma-rd9kl3 жыл бұрын
Nice project sir👍and the way you explain is very good.thanku
@khanabanana12173 жыл бұрын
You nailed it man. It is a big project for me to get started in this javascript.
@Gormlessostrich3 жыл бұрын
Thanks for another fun tutorial!
@beethoven59843 жыл бұрын
Follow from Spane! Your a good youtuber!
@vijaykumarjee3 жыл бұрын
very nicely describe.. love from India...
@vineboomsoundeffect53953 жыл бұрын
If its not working, at line 18 put rotationRatio * 360 under parantheses and add + "deg" to it
@ahmmadawshaf4 жыл бұрын
Absolutely brilliant tutorial for beginners in JS
@webdevparadise44524 жыл бұрын
Nice intro with guitar WebBoi and thanks for this amazing tutorial. Finally I have my OWN watch. Time to learn JS!
@emmapaul2 жыл бұрын
This is beautiful, well done! One observation I made is that the numbers 3-9 are not displayed in a way a user can easily recognize on the clock screen as it is on a real clock. Is there no way to display them properly on the clock screen? I'll love to learn more.
@ContactBox2 жыл бұрын
If you wanna have digits of hours in natural direction, change in html code for 1 from 1 to 1 for 2, ...11 just add in css code .clock .number span { display: block; transform: rotate(calc(var(--rotation) * -1)); } 😎
@ganjeblerencehanma65772 жыл бұрын
thanks for the project. it really helped
@abhilekhgautam59634 жыл бұрын
You are always exactly to the point.That is what i love about you.
@جواهرالشعرالعربي3 жыл бұрын
You are great ! Thank you so much bro !
@AbdulJalil-bu6ou4 жыл бұрын
Thank you very much for the tutorial.
@kengthe59494 жыл бұрын
very nice explanation!! thank you!!
@elieli25703 жыл бұрын
Awesome project, keep it up!!!
@raresmihalache31894 жыл бұрын
Thank you for the tutorial. Very helpful
@arjunghimire67095 жыл бұрын
You are amazing Bro. Your coding skill is highly impressive and easily understand.
@WebDevSimplified5 жыл бұрын
Thanks!
@shykhabdull522 жыл бұрын
You just rote learned the whole javascript part and typed really fast. Tyats not fair make us understand it properly.....
@iamreg19654 жыл бұрын
Great video on the way that HTML, CSS and JS work so beautifully together.
@georgettebeulah44274 жыл бұрын
This make so much sense and can relate to it a lot and see what you mean. But do not understand a lot from what your saying so wish to understand more
@balporsugu71984 жыл бұрын
Is there any solid reason to use dataset ids for selecting hand elements? I preferred selecting by class names.
@christopherholt37822 жыл бұрын
LOL loved the intro Kyle!
@sanjanaporwal66052 жыл бұрын
Hi, Can you please explain how --rotation can be used for two different classes
@TheUtuber9995 жыл бұрын
It would be nice if the numbers could be positioned at their respective rotational angles while remaining upright. I ended up using an image for the clock face and front bezel, but used the rest of your code as the basis for my clock. Thanks for this!
@crispinthomas29923 жыл бұрын
To do this, I put the numbers in their own div and reversed the angle of rotation like so: 1 2 etc
@SirZyPA Жыл бұрын
to automate it just do transform: rotate(calc(var(-rotation)*-1)); that should work as im pretty sure it inherits the variable An example: HTML:
@GenesisGlobalOfficial Жыл бұрын
@@crispinthomas2992 It worked. Thanks so much for dropping this.
@matejmin5 жыл бұрын
Great job, it's easy to follow along. nice flow..
@WebDevSimplified5 жыл бұрын
Thank you!
@jamezjaz4 жыл бұрын
Completely amazing. Thank you for this tutorial
@pepefubias76544 жыл бұрын
good job and very well explained thank you
@handsomecat72252 жыл бұрын
Excellent!
@progtech71803 жыл бұрын
Number 6 in the clock looks like 9 after the rotation. To fix this just replace 6 in the HTML section with 9.
@crispinthomas29923 жыл бұрын
To do this, I put the numbers in their own div and reversed the angle of rotation like so: 1 2 etc
@mikaelfarro2 жыл бұрын
Well originally the numbers should be the right way up so do that
@jaishrikrishna57552 жыл бұрын
@@crispinthomas2992 will it not be like reversing the angel, will place numbers on the wrong side .like 1 will go the left of 12 than to right ?
@ifeomablessing95782 жыл бұрын
@@crispinthomas2992 it did not work
@anupkhismatrao9280 Жыл бұрын
@@crispinthomas2992 👍
@habiburrahmanhabib37663 жыл бұрын
nailed it! but you should fix the 6(six)!
@nic00la12 жыл бұрын
very cool!! 🤠 i did it today and im proud of myself 💘💫
@muizolaore46303 жыл бұрын
Great Content Definitely subscribing!!
@Blockly8063 жыл бұрын
7:50 A better way to fix that would be to replace "left: 50%;" with "text-align: -webkit-center;"
@k.m.abusyeduzzal6272 Жыл бұрын
Excellent , I learned a lot
@webart55443 жыл бұрын
So beautiful clock
@zdargahi2 жыл бұрын
is there a way to avoid repeating. css for number 1 to 12. define variable or set style in JS?
@deepakbhargav74344 жыл бұрын
Thanks for sharing your knowledge
@kevinwaag9976 Жыл бұрын
freaking brilliant!
@trelala7894 жыл бұрын
This is great tutorial, I really enjoyed it. But the lack of semicolons in JS file makes me very anxious :D.
@WebDevSimplified4 жыл бұрын
I like to live on the edge :P
@balalnaeem4 жыл бұрын
I was thinking the same. I am a semicolon nazi. haha
I really love your work and all what you do . I had a similar exercise and did exactly like you but at the level of the JavaScript the code didn't work don't know why
@burmarysmatova5641 Жыл бұрын
hey, it's a great tutorial and the clock looks really good, but i guess there might be some errors with a js file, I double checked my code, and compared with yours, the hands of the clock are not moving.
@ayecity55053 жыл бұрын
I love the video, but how do you copy and paste so fast?
@zuber32283 жыл бұрын
maan gya bhai , fan of you
@paulneumann77392 жыл бұрын
This is great. Do you have the steps for how to get the browser to show through the server.js and index.js??
@xxninja500xx73 жыл бұрын
the intro is best
@webylancers56072 жыл бұрын
MashAllah Aameen 🙏🤲😍
@dimitarkinov1984 Жыл бұрын
You rock , man!
@martin-xq7te5 жыл бұрын
Great KZbin tutorial, It would be better if the numbers aligned horizontally
@WebDevSimplified5 жыл бұрын
If you want the numbers upright you would need to apply a rotation to the number itself to counteract the rotation used to position it.
@rukaiyaanwar15324 жыл бұрын
Who is that magician? I wish we got that kinda teachers in our schools!
@WebDevSimplified4 жыл бұрын
Thanks!
@saltech20243 жыл бұрын
Well done.... How can I possibly edit and set the time of my choice? Something like a prompt when the page loads "please edit the time of your choice or load the default time".
@alecdannmayr3284 жыл бұрын
Hey, love the vids! One question though, why do you add *, *::after, *::before at the start of every .css file?
@katari154 жыл бұрын
To treat every element and its ::before, after:: content as “box-sizing: border-box...” and so on