#7 of 25 Beginner Projects - HTML, CSS, & JavaScript - Digital Clock ( Responsive Design )

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 พ.ย. 2024

ความคิดเห็น • 26

  • @powderberrykun
    @powderberrykun 2 ปีที่แล้ว +3

    Another project I had fun with.
    I made it so when you click on the container, the time will switch from military time to standard time and back and forth and created a way for the user to customize the background.

  • @c0nsumption
    @c0nsumption 2 ปีที่แล้ว +2

    Another complete. Your projects have me so friggin motivated. I keep putting everything on hold because of how much I’m getting a beginners grasp on these three languages

  • @rosen.espinoza9477
    @rosen.espinoza9477 3 ปีที่แล้ว +1

    I am really learning lot from this series of videos, just wanted to thank you.

  • @nate1988
    @nate1988 3 ปีที่แล้ว +4

    I'm about halfway through your list of 15 projects (found via Google) and I am finding all of your teaching incredibly useful. There are so many resources out there but not every style of teaching clicks -- yours does for me, and I've had a lot of fun building these projects and learning.

    • @codefoxx
      @codefoxx  3 ปีที่แล้ว +2

      That means a lot thank you

  • @TheWolfAmongSheep
    @TheWolfAmongSheep ปีที่แล้ว

    I have no idea why you dont have more subscribers. Your content is gold.

  • @gopixus
    @gopixus 2 ปีที่แล้ว +3

    2:02 HTML
    4:50 CSS
    13:19 JS

  • @rbiswas352
    @rbiswas352 2 ปีที่แล้ว +11

    {hour = hour ? 12: "12";} is leading to the hour always being 12
    need to write this instead {hour = hour == 12 ? '12' : hour; }

    • @k.ibrahimilhan2217
      @k.ibrahimilhan2217 ปีที่แล้ว

      thanks

    • @saran.r7444
      @saran.r7444 ปีที่แล้ว

      thanks buddy

    • @aaronparker8141
      @aaronparker8141 9 หลายเดือนก่อน

      nice catch

    • @aleortiz9740
      @aleortiz9740 9 หลายเดือนก่อน

      Thank you I was looking for this fix like a madman

    • @trumppence3834
      @trumppence3834 9 หลายเดือนก่อน +1

      Alternatively hour = hour ? hour : '12';
      Just to check whether hours equals zero. '?' in this context is called the ternary operator if you want to read about it, basically a way to write an if/else statement in one line.

  • @velikorossnationalist4259
    @velikorossnationalist4259 2 ปีที่แล้ว

    Good stuff. Thanks!

  • @eceerol1509
    @eceerol1509 2 ปีที่แล้ว

    i really owe you, your videos are very helpful just want to thank you so much :)

  • @paulcortesquijano5548
    @paulcortesquijano5548 2 ปีที่แล้ว

    first this serie is gold and thanks for the good quality of the this serie, second the page for testing is fall, do you know anything else for testing?, your medium page is fall too

    • @codefoxx
      @codefoxx  2 ปีที่แล้ว +1

      medium.com/@codefoxx

  • @shangguanwang
    @shangguanwang ปีที่แล้ว

    Thank you, I found my time doesn't update itself unless I change the JS variable definition to let date= new Date() instead of const; just FYI for anyone who made the same mistake

  • @thisizavian3691
    @thisizavian3691 ปีที่แล้ว +2

    Hey! How does let dayNumber = date.getDay( ) ; store the number 0 to be used as the index in dayNames[dayNumber]. What about the date.getDay( ) expression allows it to compute to zero?

    • @codefoxx
      @codefoxx  ปีที่แล้ว +1

      Theres 7 days in a week, date.getDay() returns the days as a number between 0 to 6, as oppose to 1 to 7. Therefore, we can use 0 to grab the correct day name from the dayNames array

  • @wildmemes2530
    @wildmemes2530 ปีที่แล้ว

    That responsive website seems to be down, what do you use nowadays to check for responsiveness?

  • @chumbuzzy4694
    @chumbuzzy4694 ปีที่แล้ว

    Why you use setTimeout? Why not setInterval?

  • @alexstyle8654
    @alexstyle8654 2 ปีที่แล้ว +1

    как секунды запилить

  • @me_sumit_0
    @me_sumit_0 2 ปีที่แล้ว

    Getting error after writing "window.addEventListener("load",calculateTime)" on the top of the code.
    Error is - Uncaught ReferenceError: Cannot access 'calculateTime' before initialization
    Please help.

    • @codefoxx
      @codefoxx  2 ปีที่แล้ว

      Your attempting to call on the calculateTime function before its been created . Try placing the event listener right after the function