diff options
Diffstat (limited to 'frontend/script.js')
-rw-r--r-- | frontend/script.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/frontend/script.js b/frontend/script.js new file mode 100644 index 0000000..05468dc --- /dev/null +++ b/frontend/script.js @@ -0,0 +1,14 @@ +const endpoint = "http://127.0.0.1:8080/endpoints" + +console.log("hello"); + +document.getElementById("docset-example-parent").onclick = function(){ + document.getElementById("docset-page").src = "https://example.com"; +} + +let xhttp = new XMLHttpRequest(); +xhttp.open("GET", endpoint + "/get_plist.py"); +xhttp.onload = function(){ + console.log(this.response); +} +xhttp.send(); |