Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sejong25
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Tear of Sejong
sejong25
Commits
8aeab709
Commit
8aeab709
authored
Aug 20, 2019
by
18신대성
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
모바일 지원 차단
parent
14a0c0c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
+18
-5
index.html
index.html
+2
-0
FirebaseClient.js
js/FirebaseClient.js
+16
-5
No files found.
index.html
View file @
8aeab709
...
...
@@ -31,6 +31,7 @@
<style>
img
{
position
:
relative
;
width
:
100%
;
height
:
100%
;
z-index
:
0
;}
#dvLogin
{
position
:
absolute
;
left
:
65%
;
top
:
35%
;
width
:
30%
;
height
:
30%
;
padding
:
10px
;
background
:
black
;
z-index
:
1
;}
#notSupport
{
position
:
absolute
;
left
:
25%
;
top
:
25%
;
background
:
white
;
z-index
:
1
;
width
:
50%
;
height
:
50%
;
display
:
none
;}
</style>
</head>
<body>
...
...
@@ -43,6 +44,7 @@
<button
id=
"emailBtn"
style=
"width: 100%; height: 10%;"
>
이메일로 로그인
</button></br>
<button
id=
"googleBtn"
style=
"width: 10%; height: 10%;"
><img
src=
"/assets/title/googleBtn.png"
style=
"object-fit: contain"
></button></br>
</div>
<p
id=
"notSupport"
>
해당하는 환경에서는 지원되지 않습니다. PC에서 이용 부탁드립니다.
</p>
</div>
<script
src=
"https://www.gstatic.com/firebasejs/6.3.3/firebase-app.js"
></script>
...
...
js/FirebaseClient.js
View file @
8aeab709
...
...
@@ -243,12 +243,23 @@ FirebaseClient.prototype.updateUserData = function(key, valueChanged, replace =
document
.
addEventListener
(
'
DOMContentLoaded
'
,
function
()
{
window
.
fbClient
=
new
FirebaseClient
();
document
.
onkeydown
=
function
(
e
)
{
if
(
!
fbClient
.
isGameStarted
&&
e
.
keyCode
===
13
)
var
filter
=
"
win16|win32|win64|mac|macintel
"
;
if
(
navigator
.
platform
){
if
(
filter
.
indexOf
(
navigator
.
platform
.
toLowerCase
())
<
0
){
document
.
getElementById
(
'
dvLogin
'
).
style
.
display
=
'
none
'
;
document
.
getElementById
(
'
notSupport
'
).
style
.
display
=
'
block
'
;
}
else
{
fbClient
.
onEmailBtnClick
();
window
.
fbClient
=
new
FirebaseClient
();
document
.
onkeydown
=
function
(
e
)
{
if
(
!
fbClient
.
isGameStarted
&&
e
.
keyCode
===
13
)
{
fbClient
.
onEmailBtnClick
();
}
}
}
}
console
.
log
(
'
done load
'
);
...
...
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