add top 10 or 20 server.py fetch

This commit is contained in:
Justin 2023-05-15 16:27:01 +08:00 committed by GitHub
parent f7ef105125
commit 4eae72d1e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2695,3 +2695,13 @@ function saveSchedulerSettings() {
document.getElementById('saved').style.display = "block";
}
// CHANGE TOP 20 OR TOP 10 WORLD GOLF RANKING
function setTop20() {
let top20 = document.getElementById("golf-ranking-number").value;
fetch("/setTop20or10", {
method: "POST",
body: JSON.stringify(top20),
});
}