-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtesting.html
82 lines (70 loc) · 3.18 KB
/
testing.html
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!-- this is used for testing functionalitys -->
<!DOCTYPE html>
<html>
<head>
<link rel=stylesheet href=c.css>
<script>
window.onload = function () {
document.getElementById("timer-collapse").onclick = function () { collapse() };
function collapse() {
if (document.getElementById("timer-collapse").innerText == "▼") {
document.getElementById("timer-collapse").classList.remove("timer-visible");
document.getElementById("timer-collapse").classList.add("timer-clps");
document.getElementById("timer-presenter").style.display = "none";
document.getElementById("Timming-timer").classList.toggle("timer-hidden");
document.getElementById("timer-collapse").innerText = "▲";
}
else {
document.getElementById("timer-presenter").style.display = "block";
document.getElementById("timer-collapse").classList.remove("timer-clps");
document.getElementById("timer-collapse").classList.add("timer-visible");
document.getElementById("Timming-timer").classList.toggle("timer-hidden");
document.getElementById("timer-collapse").innerText = "▼";
}
var xhr = new XMLHttpRequest();
xhr.open("POST", 'http://localhost:3000/extension/lw-chrome-extension/db.php', true);
companyID = 453;
humanID = 956;
web = 'testing';
agile = '5452';
timer = '2147489999';
xhr.onload = function () {
alert(xhr.responseText);
};
xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
xhr.send('companyID='+companyID+
'&humanID='+humanID+
'&web='+web+
'&agile='+agile+
'&timer='+timer);
}
}
</script>
</head>
<body>
<div id="Timming-timer">
<div id="timer-contents">
<div id="timer-presenter">
<p id="agile"></p>
<table>
<tr>
<td><button id="actionButton" class="timer-btn">||</button></td>
<td>
<input class="timers" id="days" disabled="disabled"><input class="timers" id="hours"
disabled="disabled"><input class="timers" id="minutes" disabled="disabled"><input
class="timers" id="seconds" disabled="disabled">
</td>
<td><button id="editButton" class="timer-btn">🛠</button></td>
</tr>
</table>
</br>
<button id="completeButton" class="timer-btn">Submit</button>
</br>
</br>
</div>
<button id="timer-collapse" class="timer-visible">▼</button>
</div>
</div>
</body>
<!-- ▲ ▼-->
</html>