From 3a78df7d613c61bf74a43ec023af23b47c9b5635 Mon Sep 17 00:00:00 2001 From: a Date: Mon, 11 Aug 2025 05:09:55 +0000 Subject: fixes http in url --- web_page/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'web_page/main.js') diff --git a/web_page/main.js b/web_page/main.js index 5b0bf05..8d83b4c 100644 --- a/web_page/main.js +++ b/web_page/main.js @@ -2,7 +2,7 @@ function click_send(){ data = document.getElementById("inp1").value; console.log(data); - fetch("http://localhost:5556/add/"+data).then(response => { + fetch("https://sl.azuminha.com/add/"+encodeURIComponent(data)).then(response => { if (!response.ok) { throw new Error('Network response was not ok'); } @@ -10,7 +10,7 @@ function click_send(){ }).then(result => { console.log(result); const res = document.createElement("p"); - res.textContent = data + " => " + "localhost:5556/" + result; + res.textContent = data + " => " + "sl.azuminha.com/" + result; document.body.appendChild(res); }) return 10 * 3; @@ -23,4 +23,4 @@ document.addEventListener("DOMContentLoaded", function () { if (event.key === "Enter") click_send(); }); -}); \ No newline at end of file +}); -- cgit v1.2.3