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

Decimal Value Convert To Binary With Digital Clock

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:CSS 65.0%Language:HTML 19.2%Language:JavaScript 15.8%