유희정

change little bit and add ppt

......@@ -112,7 +112,7 @@ var timestamp = function (date) {
+ pad(Math.floor(Math.abs(offset) / 60), 2)
+ ":" + pad(Math.abs(offset) % 60, 2);
}
//시작 시간까지 10분 이내로 남은 이벤트 확인
function checkEvents(){
var nDate = new Date();
for(var i = 0;i<events.length;i++){
......@@ -133,7 +133,7 @@ var timestamp = function (date) {
}
};
//이벤트 시작 10분 전 동안 카카오톡 나에게메시지 보내기
//10분 이내의 이벤트 카카오톡 나에게 보내기로 알림 보내기
function sendMessage(event,minute){
let template_objectObj = {
"object_type" : 'text',
......
......@@ -6,8 +6,8 @@ var GoogleStrategy = require('passport-google-oauth').OAuth2Strategy;
//구글 로그인
passport.use(new GoogleStrategy({
clientID:'978869138601-u3euf0c04sbdor68r30m599gilvjn91e.apps.googleusercontent.com',
clientSecret:'9ERYhDZJK-CrX3moES2z11ol',
clientID: 'ClientID',
clientSecret:'ClientSecret',
callbackURL:'http://localhost:3000/auth/google/callback',
scope:['openid','email','https://www.googleapis.com/auth/calendar.readonly',
'https://www.googleapis.com/auth/calendar',
......@@ -30,7 +30,7 @@ router.get('/auth/google/callback',passport.authenticate('google',{
//카카오 로그인
const kakaoKey = {
clientID: "cf6ae2286a1b022bafa454588f32878b",
clientID: "Kakao Rest Api ID",
callbackURL: "/oauth/callback"
};
......
......@@ -39,7 +39,7 @@
<body bgcolor="e7ded9">
<center>
<br>
<h1 style="font-size:35px">Calendar Lists</h1>
<h1 style="font-size:35px">Calendar List</h1>
<p>
<form action="/events" method="POST">
<input type=hidden name="googleToken" value=<%= googleToken %>>
......
......@@ -208,7 +208,7 @@ form .question input[type="text"]:valid ~ label {
<form action="/events/remove" method="POST">
<p style="font-size:17px">일정</p>
<p>summary : <%= val.summary %></p>
<p>created : <%= val.created %></p>
<p>description : <%= val.description %></p>
<p>start : <%= val.start.dateTime %></p>
<p>end : <%= val.end.dateTime %></p>
<input type="hidden" name="eId" value=<%= val.id %>>
......
No preview for this file type
No preview for this file type