summaryrefslogtreecommitdiff
path: root/web_page
diff options
context:
space:
mode:
authora <a@a.com>2025-08-11 05:09:55 +0000
committera <a@a.com>2025-08-11 05:09:55 +0000
commit3a78df7d613c61bf74a43ec023af23b47c9b5635 (patch)
treeef323247d381405804db61507449ad9592d5518b /web_page
parent445d90bd38e600617933124a1579579f6b905303 (diff)
fixes http in urlHEADmaster
Diffstat (limited to 'web_page')
-rw-r--r--web_page/main.js6
1 files changed, 3 insertions, 3 deletions
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
+});