Skip to content

AppServiceProvider/Decimal-to-Binary-converter-with-digital-Clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Decimal to Binary Converter With Digital Clock

Screenshot_57

usage

setTimeout(function show() {
            var snd = new Audio('..src');
            snd.play()
        }, 500 );
hours = hours < 10 ? '0' + hours : hours;
    minute = minute < 10 ? '0' + minute : minute;
    second = second < 10 ? '0' + second : second;
  • or uses if/else statement
if(hours<10){ 
    hours="0"+ hours;
    } if(minute<10){ 
        minute="0"+ minute;
    } if(second<10){ 
        second="0"+ second;
    } 
  • Date Methods new Date() call this id days month year
function dayMonthYear() {
    let currentDay = new Date();
    document.getElementById("days").innerText = currentDay.getDate();
    let months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
    document.getElementById("month").innerHTML = months[currentDay.getMonth()];
    document.getElementById("year").innerHTML = currentDay.getFullYear();
    setInterval(dayMonthYear, );
} dayMonthYear();

Followes design code starter file

Saidur Rahman Setu

It can be seen at:

https://romanofficial.github.io/Decimal-to-Binary-converter-with-digital-Clock/

About

Decimal Value Convert To Binary With Digital Clock

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published