유희정

modify some functions

......@@ -85,6 +85,14 @@ p.float_left{
height:60px;
float : left;
}
#d{
float:top;
margin-top: -3px;
}
#n{
float:top;
margin-top: -16px;
}
.check{
width : 40px;
height:60px;
......
......@@ -100,9 +100,11 @@
path = result[i].path;
var num = path.indexOf("DCIM");
var folder_path = new String();
var time = new Date(Number(result[i].date_added)*1000);
var month = time.getMonth()+1;
folder_path = "../../photos/"+ path.substring(num);
myHTML += '<div class="photo"><div class="top"><img id="p" src="'+folder_path
+'"></div><div class="bottom"><div class="name"><p id="title">'+result[i].display_name+'</p></div>';
+'"></div><div class="bottom"><div class="name"><p id="d">['+month+'/'+time.getDate()+']</p><p id="n">'+result[i].display_name+'</p></div>';
var replacement = folder_path.replace(/ /g, "#%&!");
myHTML +="<div class='check'><input type='checkbox' name='save' value="+replacement+"></div></div></div>"
}
......
......@@ -34,8 +34,8 @@ closeBtn.addEventListener("click", () => {
var st = new Date(start_date);
var et = new Date(end_date);
st.setHours(st.getHours() - 9);
et.setHours(et.getHours() + 15);
st.setHours(st.getHours());
et.setHours(et.getHours() + 24);
et.setMilliseconds(et.getMilliseconds() -1);
var sTimestamp =st.getTime();
......
......@@ -193,7 +193,7 @@ function makeTimeline(){
type = "부재 중"
}
else{
type = "스팸"
return;
}
myHTML += '<div class="timeline">'
+'<a href="#" class="timeline-content">'
......