diff --git a/apps.js b/apps.js new file mode 100644 index 0000000..c88c4ff --- /dev/null +++ b/apps.js @@ -0,0 +1,60 @@ +const baseURL ="https://lit-fortress-6467.herokuapp.com/object"; +document.querySelector('#choose').addEventListener('click',function(event){ + + + + + + + + +axios.get(baseURL) +.then(function(event){ + event.preventDefualt() + alert('sup') + }) + + + + + + + +}) + + +axios.post(baseURL) +.then(function(response){ + console.log(response) +}) + + + + + +const button = querySelector('#submit').addEventListener('click',function(resopnse){ + + +axios.get(baseURL) +.then(function(event){ + event.preventDefualt() + alert('sup') + + + + }) +}) + + + + +const button = querySelector('#clear').addEventListener('click',function(resopnse){ + + + +axios.get(baseURL) +.then(function(event){ + event.preventDefualt() + alert('sup') + }) +}) diff --git a/index.html b/index.html index 8e0abfd..207cd03 100644 --- a/index.html +++ b/index.html @@ -1,11 +1,32 @@ +
-