-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenhancement.html
143 lines (139 loc) · 4.82 KB
/
enhancement.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fedipol Enhancement</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
.sticky-header {
position: sticky;
top: 0;
background: white;
z-index: 1000;
padding: 1rem 0;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.main-content {
padding-top: 1rem;
}
.loading-progress {
font-size: 0.9rem;
color: #666;
}
.progress {
width: 150px;
height: 6px;
}
.table {
font-size: 0.875rem;
}
.table td, .table th {
padding: 0.5rem;
}
.posts-col {
width: 90px;
white-space: nowrap;
}
.name-col {
min-width: 180px;
}
.position-col {
min-width: 200px;
}
.party-col {
width: 80px;
}
.date-col {
width: 90px;
}
.bot-col {
width: 50px;
}
.link-col {
min-width: 160px;
max-width: 160px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.small-text {
font-size: 0.8rem;
line-height: 1;
}
</style>
</head>
<body>
<!-- Sticky Header -->
<div class="sticky-header">
<div class="container">
<div class="d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center gap-3">
<h1 class="h3 mb-0">Fedipol Enhancement</h1>
<button id="scanButton" class="btn btn-primary btn-sm">
Scan starten
</button>
<button id="updateButton" class="btn btn-info btn-sm">
Update fehlende Accounts
</button>
<button id="exportButton" class="btn btn-secondary btn-sm" disabled>
Export
</button>
<div class="loading-progress d-none align-items-center gap-2" id="loadingProgress">
<div class="progress">
<div class="progress-bar" id="loadingBar" role="progressbar" style="width: 0%"></div>
</div>
<span id="loadingCounter">0/0 geladen</span>
</div>
</div>
<div class="d-flex align-items-center">
<div class="input-group" style="width: 300px;">
<input type="search"
class="form-control"
id="searchInput"
placeholder="Suchen..."
aria-label="Suchen">
<button class="btn btn-outline-secondary"
type="button"
id="clearSearch">
×
</button>
</div>
</div>
</div>
</div>
</div>
<div class="container main-content">
<div class="card mt-4">
<div class="card-header">
<h2 class="h5 mb-0">Accounts</h2>
</div>
<div class="card-body p-0">
<div class="table-responsive">
<table class="table table-striped table-hover mb-0">
<thead>
<tr>
<th class="name-col">Name</th>
<th class="position-col">Position</th>
<th class="party-col">Partei</th>
<th class="link-col">Link</th>
<th class="date-col">Erstellt</th>
<th class="posts-col">Gesamt</th>
<th class="posts-col">60 Tage</th>
<th class="bot-col">Bot</th>
</tr>
</thead>
<tbody id="accountsTableBody">
<!-- Data will be inserted here -->
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="js/enhancement.js"></script>
</body>
</html>