-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSource.html
More file actions
54 lines (54 loc) · 1.91 KB
/
Source.html
File metadata and controls
54 lines (54 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<html>
<head>
<title>Javascript Stopwatch</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="http://dev.marketlytics.com/suleman/Timer-4.js" ></script>
<style type="text/css">
input{
height: 40px;
width: 300px;
font: normal 8pt verdana;
}
#forms{
position:fixed;
left:5px;
top:10px;
}
</style>
</head>
<body onload="startTimer();timeCookietoArray();returnValue();" onbeforeunload="saveIt();">
<table bgcolor="#c0c0c0" align="center" border="3, solid" width="300" cellspacing="0">
<tr>
<td align="center">
<font face="verdana, arial, helvetica, sans-serif" size="2">
<b>STOPWATCH</b></font>
</td>
</tr>
<tr>
<td align="center">
<form name="clock">
<input id="clock" type="text" value="00:00:00" style="text-align: center;background-color:white;border:1px solid gray;font-weight:bold;font-size:14pt;" readonly><br>
<input id="startstoptimer" type="button" value="Start" onClick="startTimer();" style="font-weight:bold"><br>
<input type="button" name="reset" value="Reset" onClick="resetIt();" /><br />
<input type="button" name="saver" value="Save Time" onClick="saveIt(); myArray.push(document.getElementById('').innerHTML); setCookie('timerCookie', myArray, exp);"/>
<span id="saveTime" style="text-align:center; font-family:arial; font-size:10pt"></span><br>
<span id="saveDate" style="text-align:center; font-family:arial; font-size:10pt"></span><br>
</form>
</td>
</tr>
</table>
<div id="forms">
<form>
<input type="button" value="Get Time And Date" onClick = "returnValue();">
<table bgcolor="#c0c0c0" align="left" border="3, solid" width="300" cellspacing="0" style="text-align:center;position:fixed;">
<td>
<div id="tt" name="tt" style="top:50px;"></div><br>
</td>
<td>
<div id="df" name="df" style="top:50px;"></div><br>
</td>
</table>
</form>
</div>
</body>
</html>