Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
footseen-large-website
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
98d3890a
authored
2 years ago
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
dfa08682
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
17 deletions
yazhaiTest/pc.html
yazhaiTest/pc.html
View file @
98d3890a
...
...
@@ -305,10 +305,7 @@
<div class="layer-register-right"></div>
</div> -->
</div>
<div
id=
"g_id_onload"
data-client_id=
"534183685500"
data-callback=
"handleCredentialResponse"
>
</div>
</body>
<script
src=
"lib/jquery-3.1.1.min.js"
></script>
...
...
@@ -320,23 +317,11 @@
$
(
function
(){
var
html
=
[]
html
+=
'
<
meta
name
=
"google-signin-scope"
content
=
"profile email"
>
'
html+='
<
meta
name
=
"google-signin-client_id"
content
=
"534183685500.apps.googleusercontent.com"
>
'
html+='
<
meta
name
=
"google-signin-client_id"
content
=
"534183685500
-5paq0eqq7mkkk1lkfnlv7e6h3b0avpg7
.apps.googleusercontent.com"
>
'
$("head").append(html)
$(".google-login").attr("src","https://apis.google.com/js/platform.js")
function handleCredentialResponse(response) {
// decodeJwtResponse() is a custom function defined by you
// to decode the credential response.
const responsePayload = decodeJwtResponse(response.credential);
console.log("ID: " + responsePayload.sub);
console.log('
Full
Name
:
' + responsePayload.name);
console.log('
Given
Name
:
' + responsePayload.given_name);
console.log('
Family
Name
:
' + responsePayload.family_name);
console.log("Image URL: " + responsePayload.picture);
console.log("Email: " + responsePayload.email);
}
loginGo()
var scrollOk=true;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment