박종현

Fix D-0 comment

...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
9 .dday { 9 .dday {
10 padding: 50px 0; 10 padding: 50px 0;
11 } 11 }
12 +
12 .wrapper { 13 .wrapper {
13 margin: 0 auto; 14 margin: 0 auto;
14 padding: 30px; 15 padding: 30px;
......
...@@ -40,8 +40,8 @@ function getTodayDate() { ...@@ -40,8 +40,8 @@ function getTodayDate() {
40 var month = ("0" + (today.getMonth() + 1)).slice(-2); 40 var month = ("0" + (today.getMonth() + 1)).slice(-2);
41 var day = ("0" + today.getDate()).slice(-2); 41 var day = ("0" + today.getDate()).slice(-2);
42 var dateString = year + "-" + month + "-" + day; 42 var dateString = year + "-" + month + "-" + day;
43 - // return "2022-11-27"; // 테스트용 날짜를 입력하세요. 테스트가 끝나면 주석처리 하세요. ex) 2022-09-12, 2022-09-15, 2022-10-04 43 + return "2022-06-06"; // 테스트용 날짜를 입력하세요. 테스트가 끝나면 주석처리 하세요. ex) 2022-09-12, 2022-09-15, 2022-10-04
44 - return dateString; 44 + // return dateString;
45 } 45 }
46 46
47 // To get modified date from locdate 47 // To get modified date from locdate
...@@ -92,7 +92,7 @@ function getData() { ...@@ -92,7 +92,7 @@ function getData() {
92 var xmlToJson = convert.xml2json(result, { compact: true, spaces: 4 }); 92 var xmlToJson = convert.xml2json(result, { compact: true, spaces: 4 });
93 fs.writeFileSync("holi.xml", result); // Create/Modify holi.xml 93 fs.writeFileSync("holi.xml", result); // Create/Modify holi.xml
94 fs.writeFileSync("holi.json", xmlToJson); // Create/Modify holi.json 94 fs.writeFileSync("holi.json", xmlToJson); // Create/Modify holi.json
95 - var parser = new xml2js.Parser(); 95 + var parser = new xml2js.Parser();
96 parser.parseString(result, function (err, res) { 96 parser.parseString(result, function (err, res) {
97 text = JSON.stringify(res); 97 text = JSON.stringify(res);
98 // Get dataName method 98 // Get dataName method
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
32 32
33 <!--comment part--> 33 <!--comment part-->
34 <div id="comment"> 34 <div id="comment">
35 - <% if (data[2] << 7) { %> 35 + <% if (data[2] << 7 ) { %>
36 <h2>벌써 <%= data[0] %>이(가) <font color="pink">일주일</font>도 남지 않았습니다! </h2> 36 <h2>벌써 <%= data[0] %>이(가) <font color="pink">일주일</font>도 남지 않았습니다! </h2>
37 37
38 <% } else if (data[2] << 10) { %> 38 <% } else if (data[2] << 10) { %>
...@@ -40,9 +40,12 @@ ...@@ -40,9 +40,12 @@
40 40
41 <% } else if (data[2] << 31) { %> 41 <% } else if (data[2] << 31) { %>
42 <h2><%= data[0] %>이(가) <font color="pink">한 달</font>도 남지 않았습니다! </h2> 42 <h2><%= data[0] %>이(가) <font color="pink">한 달</font>도 남지 않았습니다! </h2>
43 +
44 + <% } else if (data[2] == 0) { %>
45 + <h2>오늘은 즐거운 공휴일!</h2>
43 46
44 <% } else { %> 47 <% } else { %>
45 - <h2>오늘부터 한 달 안에 공휴일이 없습니다..</h2> 48 + <h2>오늘부터 한 달 안에 공휴일이 없습니다..</h2>
46 <% } %> 49 <% } %>
47 </div> 50 </div>
48 51
...@@ -162,21 +165,10 @@ ...@@ -162,21 +165,10 @@
162 <div class="frame"> 165 <div class="frame">
163 <button class="custom-btn btn-12" onclick ="location.href='http://buncheon.k7788.com/index.html?Midx=366&ct_pg=781'"><span>click!</span><span>분천역 산타마을</span></button> 166 <button class="custom-btn btn-12" onclick ="location.href='http://buncheon.k7788.com/index.html?Midx=366&ct_pg=781'"><span>click!</span><span>분천역 산타마을</span></button>
164 </div> 167 </div>
165 -
166 <% } else { %> 168 <% } else { %>
167 - <h2>Just Take some rest!</h2> 169 + <h2>Just Take some rest!</h2>
168 - 170 + <% } %>
169 - <% } %>
170 -
171 -
172 -
173 -
174 -
175 -
176 -
177 </div> 171 </div>
178 -
179 -
180 </body> 172 </body>
181 </center> 173 </center>
182 </html> 174 </html>
...\ No newline at end of file ...\ No newline at end of file
......