From 65713a14a0596a3493ca60696121c69b1e872b8c Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 24 Dec 2020 12:17:46 +0100 Subject: Add dynamic Functionality --- webroot/index.html | 3 +++ webroot/js/example.js | 14 ++++++++++++++ webroot/template.html | 28 ---------------------------- 3 files changed, 17 insertions(+), 28 deletions(-) create mode 100644 webroot/js/example.js delete mode 100644 webroot/template.html (limited to 'webroot') diff --git a/webroot/index.html b/webroot/index.html index 59922a2..a406de7 100644 --- a/webroot/index.html +++ b/webroot/index.html @@ -20,8 +20,11 @@

Web Template

+
+ + diff --git a/webroot/js/example.js b/webroot/js/example.js new file mode 100644 index 0000000..59cf1ee --- /dev/null +++ b/webroot/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); + +} + diff --git a/webroot/template.html b/webroot/template.html deleted file mode 100644 index 59922a2..0000000 --- a/webroot/template.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - Web Template - - - - - - - - - -
- HOME -
- -
-

Web Template

-
- - - - - -- cgit v1.2.3-70-g09d2