Toggle navigation
Toggle navigation
This project
Loading...
Sign in
유희정
/
Reminder-Talk
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
유희정
2019-11-30 17:11:29 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2b79337541e5f093f5cdfd1448da7b4ff717dac0
2b793375
1 parent
ce7db1bb
modify error
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
routes/events.js
views/events.ejs
routes/events.js
View file @
2b79337
var
express
=
require
(
'express'
);
var
router
=
express
.
Router
();
var
gcal
=
require
(
'google-calendar'
);
const
{
localISOdt
}
=
require
(
'local-iso-dt'
);
var
accessToken
;
var
id
;
...
...
@@ -65,6 +64,10 @@ router.post('/remove', function(req, res, next) {
});
router
.
get
(
'/kakao'
,
function
(
req
,
res
,
next
){
console
.
log
(
"success"
);
});
var
timestamp
=
function
(
date
)
{
var
pad
=
function
(
amount
,
width
)
{
var
padding
=
""
;
...
...
@@ -85,6 +88,7 @@ var timestamp = function (date) {
+
":"
+
pad
(
Math
.
abs
(
offset
)
%
60
,
2
);
}
module
.
exports
=
router
;
//timestamp(new Date(1983, 4, 9, 11, 5, 17));
\ No newline at end of file
...
...
views/events.ejs
View file @
2b79337
...
...
@@ -2,6 +2,7 @@
<html>
<head>
<link
rel=
'stylesheet'
href=
'/stylesheets/style.css'
/>
<a
href=
"/events/kakao"
>
kakao login
</a>
</head>
<body>
<h1>
<
%= id %>
</h1>
...
...
Please
register
or
login
to post a comment