s1.
s1.
,
,
s1.
s1.
s1.
s1.
false
false
s1.
s1.
s1.
s1.
s1.
s1.
1
|
static
javascript
statichlistjavascriptjavascript
static
/collection//browse/
javascript:toggleHListSection('');
javascript:toggleSection('');
function decodeJwtResponse(jwt) {
// Split the JWT into its three parts
var parts = jwt.split('.');
// Decode the header and payload parts using base64
var header = JSON.parse(atob(parts[0]));
var payload = JSON.parse(atob(parts[1]));
return payload;
}
function googleSigninHandleCredentialResponseUNUSED(response)
{
//console.log("onGoogleSignin() called");
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);
//console.log("Email verified: " + responsePayload.email_verified);
var google_fullname = responsePayload.name;
console.log('Google-authenicated login as: ' + google_fullname);
}
$(document).ready(function() {
$("#loginTable input[name=\"username\"]").focus();
})