summaryrefslogtreecommitdiff
path: root/lib/js
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2021-02-11 13:01:43 +0100
committerxengineering <mail2xengineering@protonmail.com>2021-02-11 13:01:43 +0100
commitbc6b03ab29703dfff857b63727657ca3127eb381 (patch)
tree009fc7df794754917ddb3fecfde8b2f739e7b1df /lib/js
parent7293dae63a07ec23e779fef20fbe81104ebc7d3f (diff)
downloadweb-template-bc6b03ab29703dfff857b63727657ca3127eb381.tar
web-template-bc6b03ab29703dfff857b63727657ca3127eb381.tar.zst
web-template-bc6b03ab29703dfff857b63727657ca3127eb381.zip
Refactoring: Reimplement Webroot Deployment
Diffstat (limited to 'lib/js')
-rw-r--r--lib/js/example.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/js/example.js b/lib/js/example.js
new file mode 100644
index 0000000..59cf1ee
--- /dev/null
+++ b/lib/js/example.js
@@ -0,0 +1,14 @@
+
+function example_post() {
+
+ var data = {
+ "key":"value",
+ }
+ var json = JSON.stringify(data);
+
+ var xhr = new XMLHttpRequest();
+ xhr.open("POST", "api", true);
+ xhr.send(json);
+
+}
+