From 85c6ad62648478551106e728c900e6b3cee17f71 Mon Sep 17 00:00:00 2001 From: Ccccadyrov Date: Wed, 30 Nov 2022 01:04:19 +1000 Subject: [PATCH] fuck kors --- index.html | 16 ++++++++++++++++ js.js | 13 +++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 index.html create mode 100644 js.js diff --git a/index.html b/index.html new file mode 100644 index 0000000..2d7bc4d --- /dev/null +++ b/index.html @@ -0,0 +1,16 @@ + + + + + + + Document + + +
+ +
+ + + + \ No newline at end of file diff --git a/js.js b/js.js new file mode 100644 index 0000000..86b1e42 --- /dev/null +++ b/js.js @@ -0,0 +1,13 @@ +alert('work') +let post = 'vdk2ch' +let button = document.querySelector('button') +const push1= function() {fetch('http://vault.vdk2ch.ru:8200/v1/sys/wrapping/wrap', +{ method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + body: JSON.stringify(post), + }) + .then((response) => response.json()) + .then((posts) => console.log(posts));} + button.addEventListener('click', push1) \ No newline at end of file