-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
31 lines (29 loc) · 1.15 KB
/
script.js
File metadata and controls
31 lines (29 loc) · 1.15 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
function private() {
send(
"xhr=1&sid=82e6e71d64dbd1c2&lang=de&no_sidrenew=&name=400&fonbook=0&out_num=400&num_selection=sel_nums&num_1=400&num_5=7152&num_6=9299161&idx=1&back_to_page=%2Ffon_devices%2Ffondevices_list.lua&popup_url=&button_save=&oldpage=%2Ffon_devices%2Fedit_dect_num.lua"
);
document.getElementById("private").classList.add("click");
setTimeout(
() => document.getElementById("private").classList.remove("click"),
400
);
}
function work() {
send(
"xhr=1&sid=82e6e71d64dbd1c2&lang=de&no_sidrenew=&name=9299162&fonbook=0&out_num=9299162&num_selection=sel_nums&num_1=400&num_5=7152&num_6=9299161&num_7=9299162&idx=1&back_to_page=%2Ffon_devices%2Ffondevices_list.lua&popup_url=&button_save=&oldpage=%2Ffon_devices%2Fedit_dect_num.lua"
);
document.getElementById("work").classList.add("click");
setTimeout(
() => document.getElementById("work").classList.remove("click"),
400
);
}
async function send(body) {
await fetch("https://fritz.box:41544/data.lua", {
method: "POST", // *GET, POST, PUT, DELETE, etc.
headers: {
"Content-Type": "application/x-www-form-urlencoded",
},
body: body,
});
}