rafaOC / index.html
rafaeltrc's picture
Update index.html
82cb1f5 verified
Raw History Blame Contribute Delete
1.04 kB
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>My static Space</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="card">
<h1>Welcome to your static Space!</h1>
<p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
<p>
Also don't forget to check the
<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
</p>
</div>
</body>
</html>
<!doctype html>
<html>
<body>
<h1>WHOOP Callback</h1>
<p>Authorization code:</p>
<pre id="code"></pre>
<p>State:</p>
<pre id="state"></pre>
<script>
const params = new URLSearchParams(window.location.search);
document.getElementById("code").textContent =
params.get("code") || "Nenhum code recebido";
document.getElementById("state").textContent =
params.get("state") || "Nenhum state recebido";
</script>
</body>
</html>