working jsonp but with no invalid username warning

This commit is contained in:
spbeach46
2023-11-26 09:59:01 -07:00
parent 3462cd3101
commit b4df03c1f5
5 changed files with 294 additions and 92 deletions

View File

@@ -1,16 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chess Game Downloader</title>
<title>Chess.com API Request</title>
</head>
<body>
<h1>Chess Game Downloader</h1>
<input type="text" id="username" placeholder="Enter username">
<button onclick="downloadGames()">Download Games</button>
<script src="main.js"></script>
<label for="username">Enter Chess.com Username:</label>
<input type="text" id="username" placeholder="Enter username">
<button onclick="makeRequest()">Fetch Games</button>
<script src="./main.js"></script>
</body>
</html>