mirror of
https://github.com/heymoosh/ticktick-quick-add-obsidian.git
synced 2026-07-22 05:43:55 +00:00
25 lines
No EOL
741 B
HTML
25 lines
No EOL
741 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>TickTick OAuth Callback</title>
|
|
</head>
|
|
<body>
|
|
<h1>Authorization Complete</h1>
|
|
<p id="message">Processing...</p>
|
|
<script>
|
|
// Parse query parameters from the URL
|
|
const params = new URLSearchParams(window.location.search);
|
|
const code = params.get('code');
|
|
const state = params.get('state');
|
|
|
|
if (code && state) {
|
|
document.getElementById('message').innerText =
|
|
`Authorization successful!\nYour code is: ${code}\nPlease copy this code and paste it into Obsidian.`;
|
|
} else {
|
|
document.getElementById('message').innerText =
|
|
'Authorization failed or was canceled. Please try again.';
|
|
}
|
|
</script>
|
|
</body>
|
|
</html> |