Last active
April 25, 2020 10:11
-
-
Save sirateek/64abc71ef3f9255d1ad792336bf693a0 to your computer and use it in GitHub Desktop.
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
<!DOCTYPE html> | |
<head> | |
<title>กำลังเข้าสู่ Form</title> | |
<style> | |
.centerScreen { | |
margin-top: 20; | |
margin-right: auto; | |
margin-bottom: 20; | |
margin-left: auto; | |
} | |
</style> | |
</head> | |
<body style="background-color: powderblue;"> | |
<div class="centerScreen"> | |
<center> | |
<img src="https://drive.google.com/uc?id=1mEyShWSX9rPf4klIDeMTlHAOc4BsySFK" height="200px" , width="200px" /> | |
<h1> | |
กำลังเข้าสู่ Google Form กรุณารอซักครู่ | |
</h1> | |
</center> | |
</div> | |
</body> | |
<footer> | |
<script src="https://static.line-scdn.net/liff/edge/2.1/sdk.js"></script> | |
<script> | |
/// Config Your LIFF ID Here | |
const liffId = ""; | |
/// Config Your LIFF ID Here | |
liff.ready | |
.then(() => { | |
if (liff.isLoggedIn()) { | |
return liff.getProfile(); | |
} else { | |
liff.login({ | |
redirectUri: "Redirect URL", | |
}); | |
} | |
}) | |
.then((profile) => { | |
window.location.replace( | |
`Paste Google Form URL and map your parameters here` | |
); | |
}); | |
liff.init( | |
{ | |
liffId: liffId, | |
}, | |
() => {}, | |
(err) => { | |
window.alert(err); | |
} | |
); | |
</script> | |
</footer> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment