From a4bf262b12d61f3d0057cbf68d54f9aa18153912 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 18 Sep 2020 17:04:05 +0200 Subject: Some fixes :) --- motto/public/script.js | 6 +++--- motto/public/style.css | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'motto') diff --git a/motto/public/script.js b/motto/public/script.js index 112b023..7b27ce0 100644 --- a/motto/public/script.js +++ b/motto/public/script.js @@ -4,7 +4,7 @@ document.querySelector(".wrapper").style.opacity = 1; function send(id, vote) { var xhp = new XMLHttpRequest(); - xhp.open("POST", "/abi/api/vote"); + xhp.open("POST", "/api/vote"); xhp.setRequestHeader("Content-type", "application/json"); xhp.onreadystatechange = () => { if (xhp.readyState == 4 && xhp.status == 200) console.log(xhp.responseText); @@ -16,7 +16,7 @@ function send(id, vote) { function add(main, description) { var xhp = new XMLHttpRequest(); - xhp.open("POST", "/abi/api/add"); + xhp.open("POST", "/api/add"); xhp.setRequestHeader("Content-type", "application/json"); xhp.onreadystatechange = () => { if (xhp.readyState == 4 && xhp.status == 200) console.log(xhp.responseText); @@ -141,7 +141,7 @@ function createButtonListener(yay) { } var xhp = new XMLHttpRequest(); -xhp.open("GET", "/abi/api/list"); +xhp.open("GET", "/api/list"); xhp.onreadystatechange = () => { if (xhp.readyState == 4 && xhp.status == 200) { let list = JSON.parse(xhp.responseText); diff --git a/motto/public/style.css b/motto/public/style.css index d9b1e02..143f2db 100644 --- a/motto/public/style.css +++ b/motto/public/style.css @@ -67,7 +67,8 @@ body { z-index: 100000; width: 100vw; height: 100vh; - overflow: scroll; + overflow-y: scroll; + overflow-x: hidden; padding-top: 20px; text-align: center; transition: all 0.3s ease-in-out; -- cgit v1.2.3