🎉 完成基本的演示和样例
This commit is contained in:
33
internal/serve/handler/serve_approve.html
Normal file
33
internal/serve/handler/serve_approve.html
Normal file
@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>授权成功</title>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.jade.min.css"
|
||||
>
|
||||
<style>
|
||||
body {
|
||||
height: 100vh;
|
||||
width: 100vw;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<span aria-busy="true">授权成功, 正在跳转回原网页...</span>
|
||||
<div style="display: none">
|
||||
<input type="hidden" id="redirect_uri" value="{{ .redirect_uri }}"/>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
setTimeout(() => {
|
||||
console.log('[D] after 1s console')
|
||||
let redirect_uri = document.getElementById('redirect_uri').value
|
||||
window.location.href = redirect_uri
|
||||
}, 1000)
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user