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
0f2ceee7
authored
2 years ago
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
54e73360
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
1 deletions
lineBack.html
mTest/index.html
mTest/lib/login.js
lineBack.html
View file @
0f2ceee7
...
@@ -75,8 +75,16 @@
...
@@ -75,8 +75,16 @@
uid
:
localStorage
.
uid
uid
:
localStorage
.
uid
},
},
success
:
function
(
data
){
success
:
function
(
data
){
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
if
(
/iphone|ipad|ipod/
.
test
(
ua
))
{
window
.
location
.
href
=
'mTest/index.html'
}
else
if
(
/android/
.
test
(
ua
))
{
window
.
location
.
href
=
'mTest/index.html'
}
else
{
window
.
location
.
href
=
'index.html'
window
.
location
.
href
=
'index.html'
}
}
}
})
})
}
}
...
...
This diff is collapsed.
Click to expand it.
mTest/index.html
View file @
0f2ceee7
...
@@ -261,7 +261,7 @@
...
@@ -261,7 +261,7 @@
<div
class=
"login-line"
></div>
<div
class=
"login-line"
></div>
<div
class=
"login-line-text"
>
其他方式登入
</div>
<div
class=
"login-line-text"
>
其他方式登入
</div>
<ul
class=
"login-more-btn"
>
<ul
class=
"login-more-btn"
>
<li><img
src=
"images/d2.png"
alt=
""
></li>
<li
class=
"line_btn"
><img
src=
"images/d2.png"
alt=
""
></li>
<li
class=
"facebook_btn"
><img
src=
"images/d3.png"
alt=
""
></li>
<li
class=
"facebook_btn"
><img
src=
"images/d3.png"
alt=
""
></li>
<li
class=
"twitter_btn"
><img
src=
"images/d4.png"
alt=
""
></li>
<li
class=
"twitter_btn"
><img
src=
"images/d4.png"
alt=
""
></li>
</ul>
</ul>
...
...
This diff is collapsed.
Click to expand it.
mTest/lib/login.js
View file @
0f2ceee7
...
@@ -713,3 +713,22 @@ function login_twitter(network) { //登录方法,并将twitter 作为参数
...
@@ -713,3 +713,22 @@ function login_twitter(network) { //登录方法,并将twitter 作为参数
},
log
);
},
log
);
}
}
$
(
".line_btn"
).
on
(
"click"
,
function
(){
lineLog
()
setInterval
(
function
(){
if
(
localStorage
.
uid
!=
undefined
){
window
.
location
.
reload
()
}
},
1000
)
})
function
lineLog
()
{
var
client_id
=
'1654468829'
;
var
redirect_uri
=
'https://www.footseen.xyz/lineBack.html'
;
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
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