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
04a297df
authored
Jun 21, 2022
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
06cf5c9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
yazhaiTest/lib/login.js
yazhaiTest/lib/login.js
View file @
04a297df
...
...
@@ -8,9 +8,9 @@ function loginGo(){
html
+=
' <div class="google-login-btn" id="buttonDiv"></div>'
;
html
+=
' <div class="more-login"><img src="https://www.footseen.xyz/yazhaiTest/images/more-login.png" alt=""></div>'
;
html
+=
' <div class="more-login-box">'
;
html
+=
' <div class="more-login-icon"><img
id
="twitter_btn" src="https://www.footseen.xyz/yazhaiTest/images/login-icon2.png" alt=""></div>'
;
html
+=
' <div class="more-login-icon"><img
class
="twitter_btn" src="https://www.footseen.xyz/yazhaiTest/images/login-icon2.png" alt=""></div>'
;
html
+=
' <div class="more-login-icon"><img class="facebook_btn" src="https://www.footseen.xyz/yazhaiTest/images/login-icon3.png" alt=""></div>'
;
html
+=
' <div class="more-login-icon"><img src="https://www.footseen.xyz/yazhaiTest/images/login-icon4.png" alt=""></div>'
;
html
+=
' <div class="more-login-icon"><img
class="line_btn"
src="https://www.footseen.xyz/yazhaiTest/images/login-icon4.png" alt=""></div>'
;
html
+=
' </div>'
;
html
+=
' </div>'
;
html
+=
' <div style="display: none;" class="login-box2">'
;
...
...
@@ -137,10 +137,12 @@ function loginGo(){
// console.log("Image URL: " + responsePayload.picture);
// console.log("Email: " + responsePayload.email);
}
$
(
'#twitter_btn'
).
on
(
'click'
,
function
()
{
$
(
'.twitter_btn'
).
on
(
'click'
,
function
()
{
login_twitter
(
'twitter'
);
})
$
(
".line_btn"
).
on
(
"click"
,
function
(){
lineLog
()
})
$
(
'.facebook_btn'
).
on
(
'click'
,
function
()
{
FB
.
login
(
function
(
response
)
{
if
(
response
.
status
===
'connected'
)
{
...
...
@@ -1090,4 +1092,17 @@ function testAPI() { // Testing Graph API after login. See
// 'Thanks for logging in, ' + response.name + '!';
// window.location.href = "footseenlogin://" + encodeURIComponent("www.firefly.live?token=" + info.authResponse.accessToken + "&name=" + response.name + "&id=" + response.id);
});
}
//line
function
lineLog
()
{
var
client_id
=
'1654468829'
;
var
redirect_uri
=
' https://www.footseen.xyz/'
;
var
link
=
'https://access.line.me/oauth2/v2.1/authorize?'
;
link
+=
'response_type=code'
;
link
+=
'&client_id='
+
client_id
;
link
+=
'&redirect_uri='
+
redirect_uri
;
link
+=
'&state=login'
;
link
+=
'&scope=openid%20profile'
;
window
.
location
.
href
=
link
;
}
\ No newline at end of file
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