Skip to content

Commit

Permalink
base files and work
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Jan 25, 2017
0 parents commit c60f0f6
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
28 changes: 28 additions & 0 deletions index.html
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf=8">

<title>Stopwatch Demo</title>
</head>

<body>
<div class="main">
<h1>Stopwatch Demo</h1>
<p id="timer"></p>

<div class="buttons">
<button>Start/Stop</button>
<button>Record Time</button>
<button>Reset Time</button>
</div>

<div class="output">
</div>

</div>
<script src="script.js"></script>
</body>

</html>
11 changes: 11 additions & 0 deletions script.js
@@ -0,0 +1,11 @@
function scriptCheck(){
alert("JavaScript attached");
}

var seconds = 0;

var timeElapsed = setInterval(function() {
seconds++;
document.getElementById("timer").innerHTML = seconds;
//console.log(seconds);
},500);

0 comments on commit c60f0f6

Please sign in to comment.