Skip to content
/ timer Public

This is a timer just for fun :) and enjoying Javascript

Notifications You must be signed in to change notification settings

Mekaeil/timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

timer

This is a timer just for fun :) and enjoying Javascript

Usage

  • Add this code in script tag :)
  • Input value in simpleTimer function base this format : YYY-MM-DDTHH:MM:SS
    <script src="timer.js"></script>
    <script>
        simpleTimer("2019-07-14T20:12:00"); // YYY-MM-DDTHH:MM:SS
    </script>

About Codes :)

I created function with $ we can find elements by tagName, className and ID.

$('span', "style.color", 'red');

$('.title', "style.color", 'blue');

$('#test', "style.color", 'pink');

$("#test").style.color = "green";

$("#anotherID #test").style.color = "green";

$("#anotherID #test", "style.color", 'pink');

Nested Access to element:

$('#anotherID #testAgain .hi', "style.color", "green"); // Tags with "hi" ClassName

$('#anotherID .section .content',"style.border", "1px solid #ccc");

$('#anotherID #testAgain .hi'); // output is HTMLCollection

Demo

SimpleTimer

image


DigitalTimer

image


Package or Libraries

About

This is a timer just for fun :) and enjoying Javascript

Resources

Stars

Watchers

Forks

Packages

No packages published