Commit fde6dcaa by libai

测试

parent c5e998ee
Showing with 15 additions and 16 deletions
......@@ -91,21 +91,7 @@
</div>
<div class="m-box">
<div style="height: 60px;"></div>
<div class="mc-list-box">
<h2 class="box-title"><img src="images/front/category1.png" alt=""><span>在線美女</span></h2>
<div id="g_id_onload"
data-client_id="534183685500-ag0vai0jh6todldi4rg6lvp0gcsojk0n.apps.googleusercontent.com"
data-login_uri="https://www.footseen.xyz/yazhaiTest/pc.html"
data-auto_prompt="false">
</div>
<div class="g_id_signin"
data-type="standard"
data-size="large"
data-theme="outline"
data-text="sign_in_with"
data-shape="rectangular"
data-logo_alignment="left">
</div>
<div id="buttonDiv"></div>
<ul class="live-box-ul clearfix">
<!-- <li>
<div class="live-top-box">
......@@ -335,7 +321,20 @@ $(function(){
// $("head").append(html)
// $(".google-login").attr("src","https://apis.google.com/js/platform.js")
function handleCredentialResponse(response) {
console.log("Encoded JWT ID token: " + response.credential);
}
window.onload = function () {
google.accounts.id.initialize({
client_id: "YOUR_GOOGLE_CLIENT_ID",
callback: handleCredentialResponse
});
google.accounts.id.renderButton(
document.getElementById("buttonDiv"),
{ theme: "outline", size: "large" } // customization attributes
);
google.accounts.id.prompt(); // also display the One Tap dialog
}
loginGo()
var scrollOk=true;
......
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