Commit 85b6348f by libai

测试

parent 59dc6537
Showing with 2 additions and 4 deletions
......@@ -128,8 +128,9 @@ function loginGo(){
function handleCredentialResponse(response) {
console.log("Encoded JWT ID token: " + response.credential);
}
googleLogin()
window.onload = function () {
function googleLogin(){
google.accounts.id.initialize({
client_id: "534183685500-ag0vai0jh6todldi4rg6lvp0gcsojk0n.apps.googleusercontent.com",
callback: handleCredentialResponse
......@@ -140,9 +141,6 @@ function loginGo(){
);
google.accounts.id.prompt(); // also display the One Tap dialog
}
function google(){
}
var html=[];
html+='<div style="display: none;" class=nav-login-btn>登入/註冊</div>';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment