-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
df54901
commit 1b88e4f
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<style> | ||
body | ||
{ | ||
margin: 0; | ||
background-color: #303030; | ||
} | ||
span | ||
{ | ||
color: #ffffff; | ||
font-family: Arial; | ||
text-align: center; | ||
} | ||
#header | ||
{ | ||
display: block; | ||
margin-top: 20px; | ||
line-height: 50px; | ||
background-color: #202020; | ||
font-size: 20px; | ||
} | ||
#checkmark | ||
{ | ||
color: #00ff00; | ||
} | ||
#message | ||
{ | ||
display: block; | ||
line-height: 50px; | ||
font-size: 15px; | ||
} | ||
</style> | ||
<head> | ||
<title>Simple Google Sign-In</title> | ||
</head> | ||
<body> | ||
<span id="header"><span id="checkmark">✔</span> LOGIN SUCCESSFUL</span> | ||
<span id="message">Now you can return to the app. The tab will be closed in <span id="timer">0</span>.</span> | ||
</body> | ||
<script type="text/javascript"> | ||
const delay = 5; | ||
|
||
for (let i = 0; i <= delay; i++) | ||
{ | ||
if (i < delay) | ||
{ | ||
setTimeout("document.getElementById('timer').innerHTML='" + (delay - i) + "';", 1000 * i); | ||
} | ||
else | ||
{ | ||
setTimeout("window.close();", 1000 * delay); | ||
} | ||
} | ||
</script> | ||
<html> |