diff --git a/Stopwatch.js b/Stopwatch.js new file mode 100644 index 0000000..3fbe775 --- /dev/null +++ b/Stopwatch.js @@ -0,0 +1,58 @@ +let sec=0; +let min=0; +let hr=0; +let displaySec=0; +let displayMin=0; +let displayHr=0; +let interval= null; +let status= "stopped"; +function stopwatch(){ + sec++; + if(sec/60 === 1){ + sec=0; + min++; + if(min/60 === 1){ + min=0; + hr++; + } + } + if(sec<10){ + displaySec="0" + sec.toString(); + } + else { + displaySec=sec; + } + if(min<10){ + displayMin="0" + min.toString(); + } + else { + displayMin=min; + } + if(hr<10){ + displayHr="0" + hr.toString(); + } + else { + displayHr=hr; + } + document.getElementById("display").innerHTML = displayHr + ":" + displayMin + ":" + displaySec; +} +function startstop(){ + if(status==="stopped"){ + interval=window.setInterval(stopwatch,1000); + document.getElementById("startstop").innerHTML="Stop"; + status="started"; + } + else{ + window.clearInterval(interval); + document.getElementById("startstop").innerHTML="Start"; + status="stopped"; + } +} +function reset(){ + window.clearInterval(interval); + sec=0; + min=0; + hr=0; + document.getElementById("display").innerHTML="00:00:00"; + document.getElementById("startstop").innerHTML="Start"; +} diff --git a/newStopwatch.html b/newStopwatch.html new file mode 100644 index 0000000..fbc403c --- /dev/null +++ b/newStopwatch.html @@ -0,0 +1,16 @@ + + + Stopwatch + + + +
+
+ 00:00:00 +
+
+ +
+
+ + \ No newline at end of file diff --git a/registration.html b/registration.html new file mode 100644 index 0000000..c2af870 --- /dev/null +++ b/registration.html @@ -0,0 +1,22 @@ + + + registration form + +
+
+ Name:
+ Surname:
+ Gender: M + F
+ Address:
+ Contact:
+ City:
+ +
+
+ + + diff --git a/sijquery.html b/sijquery.html new file mode 100644 index 0000000..9bcba8a --- /dev/null +++ b/sijquery.html @@ -0,0 +1,54 @@ + + + Simple Interest Calculation + + + +
+ + + + + + + + + + + + + +
+ Amount: + + +
+ Rate: + + +
+ No. of Years: + + +
+
+ +

+ + + diff --git a/simpleinterest.html b/simpleinterest.html new file mode 100644 index 0000000..5abbcb2 --- /dev/null +++ b/simpleinterest.html @@ -0,0 +1,50 @@ + + + + Simple Interest Calculation + + +
+ + + + + + + + + + + + + +
+ Amount: + + +
+ Rate: + + +
+ No. of Years: + + +
+ +
+

+ +

+

+ + + diff --git a/test.html b/test.html new file mode 100644 index 0000000..d5b8295 --- /dev/null +++ b/test.html @@ -0,0 +1,3 @@ + +this is test + diff --git a/transform.html b/transform.html new file mode 100644 index 0000000..47f4931 --- /dev/null +++ b/transform.html @@ -0,0 +1,34 @@ + + + Rotation and Scale effect in CSS + + + +
+
+
+
+
+
+
+
+
+ + +