-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.js
More file actions
31 lines (23 loc) · 859 Bytes
/
test.js
File metadata and controls
31 lines (23 loc) · 859 Bytes
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
document.addEventListener("DOMContentLoaded", () => {
const ts_open = document.getElementById("ts_open");
const ts_closed = document.getElementById("ts_closed");
const ts_all = document.getElementById("ts_all");
const urlParams = new URLSearchParams(window.location.search);
const post_controll = document.getElementById("pc_button");
const status = urlParams.get("status");
if (status=="open") {
ts_open.classList.add("c2_b");
ts_closed.classList.add("b1_b");
ts_all.classList.add("b1_b");
}
if (status=="closed") {
ts_open.classList.add("b1_b");
ts_closed.classList.add("c2_b");
ts_all.classList.add("b1_b");
}
if (status=="all") {
ts_open.classList.add("b1_b");
ts_closed.classList.add("b1_b");
ts_all.classList.add("c2_b");
}
});