backup
This commit is contained in:
1 parent
95193bc3f3
commit
ee602ee891
4 files changed
+31
-16
No files matched your search
@@ -1,21 +1,24 @@
|
||||
console.log("starting");
|
||||
fetch("http://localhost:3000/flasher/getProjects", {
|
||||
method: "POST",
|
||||
body: "body",
|
||||
headers: {
|
||||
// "Content-Type": "multipart/form-data",
|
||||
// "content-type": "text/html; charset=utf-8",
|
||||
},
|
||||
})
|
||||
.then(function (res) {
|
||||
console.log("hello world");
|
||||
console.log(res);
|
||||
location.reload();
|
||||
window.addEventListener("load", function () {
|
||||
fetch("http://localhost:3000/flasher/getProjects", {
|
||||
method: "POST",
|
||||
body: "body",
|
||||
headers: {
|
||||
// "Content-Type": "multipart/form-data",
|
||||
// "content-type": "text/html; charset=utf-8",
|
||||
},
|
||||
})
|
||||
.catch((err) => ("Error occured", err));
|
||||
.then(function (res) {
|
||||
console.log(res);
|
||||
})
|
||||
.catch((err) => ("Error occured", err));
|
||||
});
|
||||
|
||||
var socket = io();
|
||||
|
||||
socket.on("test", (s) => {
|
||||
console.log(s);
|
||||
});
|
||||
|
||||
form.addEventListener("submit", function (e) {
|
||||
e.preventDefault();
|
||||
if (input.value) {
|
||||
|
||||
Reference in new issue
Block a user