Skip to content

Commit

Permalink
owwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
Browse files Browse the repository at this point in the history
  • Loading branch information
techsideofficial committed Nov 22, 2023
1 parent f09120d commit b0ee836
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions percentages/indiv/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,13 @@
}

async function getText() {
let myObject = await fetch("https://us-central1-joysteem.cloudfunctions.net/getrwprog?query=" + getUrlParameter('level'));
let searchParams = new URLSearchParams(window.location.search)
let myObject = await fetch("https://us-central1-joysteem.cloudfunctions.net/getrwprog?query=" + searchParams.get('level'));
let myText = await myObject.text();
SetImage(myText);
}

var getUrlParameter = function getUrlParameter(sParam) {
var sPageURL = window.location.search.substring(1),
sURLVariables = sPageURL.split('&'),
sParameterName,
i;

for (i = 0; i < sURLVariables.length; i++) {
sParameterName = sURLVariables[i].split('=');

if (sParameterName[0] === sParam) {
return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]);
}
}
return false;
};
</script>
</head>
</html>

0 comments on commit b0ee836

Please sign in to comment.