diff --git a/static/js/index.js b/static/js/index.js new file mode 100644 index 0000000..3ea9de4 --- /dev/null +++ b/static/js/index.js @@ -0,0 +1,11 @@ +function begin(){ + var xhr = new XMLHttpRequest(); + xhr.open('get','/begin?begin=1'); + xhr.onload = function (){ + var response = xhr.responseText; + console.log(response); + var json_data = eval('('+response+')'); + console.log(json_data); + } + xhr.send(null); +}