Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김가영
/
Probability Death
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Ubuntu
2019-05-23 13:11:40 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8495c8e6f5877aab40fec5a0e01d8b3a7092c2b1
8495c8e6
1 parent
38e97390
Add address info. - Complete
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
lib/socketio.js
views/index.ejs
lib/socketio.js
View file @
8495c8e
...
...
@@ -3,9 +3,6 @@ const secret_key = require('./keys/api_option').key;
const
requesting
=
require
(
'request'
);
const
key
=
require
(
'./keys/api_map'
).
key
;
//const city = client_data.city;
//const county = client_data.county;
//const village = client_data.village;
module
.
exports
=
(
server
,
app
)
=>
{
const
io
=
require
(
'socket.io'
)(
server
,
{
...
...
@@ -174,11 +171,10 @@ var options = {
function
callback
(
error
,
response
,
body
)
{
if
(
!
error
&&
response
.
statusCode
==
200
)
{
console
.
log
(
body
);
lat
=
body
.
documents
[
0
].
x
;
lat
=
lat
.
substring
(
0
,
6
);
console
.
log
(
lat
);
lon
=
body
.
documents
[
0
].
y
;
lon
=
lon
.
substring
(
0
,
6
);
lat
=
body
.
documents
[
0
].
y
;
lat
=
lat
.
substring
(
0
,
8
);
lon
=
body
.
documents
[
0
].
x
;
lon
=
lon
.
substring
(
0
,
8
);
}
}
...
...
views/index.ejs
View file @
8495c8e
...
...
@@ -93,7 +93,7 @@
},
title
:
{
text
:
"<%=name%>님의 실시간 사망 확률"
,
text
:
"<%=name%>님의 실시간 사망 확률
In <%=city%> <%=county%> <%=village%>
"
,
style
:
{
color
:
"#FFFFFF"
,
fontWeight
:
"bold"
,
...
...
Please
register
or
login
to post a comment