-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
60 lines (53 loc) · 1.66 KB
/
popup.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
<!DOCTYPE html>
<html>
<head>
<title>KROS Request logger</title>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
<style>
.trim-url {
overflow-wrap: break-word;
word-wrap: break-word;
white-space: normal;
display: block;
/* Zabezpečí, že sa správanie aplikuje konzistentne */
}
table {
width: 100%;
table-layout: auto;
/* Meníme z 'fixed' na 'auto', aby sa šírky stĺpcov prispôsobili obsahu */
}
table,
th,
td {
word-wrap: break-word;
/* Zabezpečí, že všetok text v tabuľke sa bude zalamovať */
}
.content {
width: 100%;
height: 100%;
margin: 10px;
}
</style>
</head>
<body>
<div class="content">
<h1 class="my-3">KROS Request logger</h1>
<input type="text" id="filterInput" class="form-control mb-3" placeholder="Filter requests...">
<table id="requestTable" class="table">
<thead class="thead-light">
<tr>
<th>Request URL</th>
<th>Count</th>
<th>Average Duration</th>
</tr>
</thead>
<tbody>
<!-- Sem sa budú dynamicky vkladať údaje -->
</tbody>
</table>
<button id="clearButton" class="btn btn-danger">Clear Results</button>
<button id="exportButton" class="btn btn-success">Export to CSV</button>
</div>
<script src="popup.js"></script>
</body>
</html>