테스트 사이트 - 개발 중인 베타 버전입니다

카운트를 넣으려는데 주말 노출 질문 드려요~ 채택완료

새로고침중 2년 전 조회 2,264

</strong></p>

<p><span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">function remaindTime() {</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">var now = new Date();</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">var end = new Date(</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">now.getFullYear(),</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">now.getMonth(),</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">now.getDate(),</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">15,</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">00,</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">00</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">);</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">var nt = now.getTime();</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">var et = end.getTime();</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">sec = parseInt(et - nt) / 1000;</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">day = parseInt(sec / 60 / 60 / 24);</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">sec = sec - day * 60 * 60 * 24;</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">hour = parseInt(sec / 60 / 60);</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">sec = sec - hour * 60 * 60;</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">min = parseInt(sec / 60);</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">sec = parseInt(sec - min * 60);</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">var day = now.getDay();</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">// console.log(day);</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">if (hour <= 0 && min <= 0 && sec <= 0) {</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">$(".hours").html("행사가 종료되었습니다.");</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">$(".col").html("");</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">} else {</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">$(".hours").html("행사 종료 마감시까지 " + hour + "시간");</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">$(".minutes").html(min + "분");</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">$(".seconds").html(sec + "초 남았습니다.");</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">}</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">}</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">setInterval(remaindTime, 1000);</span><br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<br style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />
<span style="color: rgb(0, 0, 0); font-family: NanumBarunGothic, 나눔바른고딕, "Nanum Barun Gothic", "맑은 고딕", "Malgun Gothic"; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(246, 246, 246); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">});</span></p>

<p><strong>

 

이걸 주말이나 공휴일에는 노출을 안시키려고 하는데요 뭘 추가해야 할지 모르겠어요

댓글을 작성하려면 로그인이 필요합니다.

답변 2개

채택된 답변
+20 포인트

today = new Date();
if (today.getDay() % 6 === 0) {
    alert("주말(토,일)에는 글쓰기를 할 수 없습니다");
    location.href = "이동할 페이지 주소";
}

 

주말이 아닌 공휴일의 경우

 

holiday = ["3:1", "8:15", "12:25", ......] 등으로 공휴일을 배열에 담아서

today.getMonth() + 1 + ":" +  today.getDate() 와 일치할 경우 마찬가지로 튕겨내는 코드를 적용해 주세요.

 

그래서 최종코드는

 

</p>

<p><script>

holiday = ["3:1", "8:15", "12:25"]; 

today = new Date();

if (today.getDay() % 6 === 0) {

    alert("주말(토,일)에는 글쓰기를 할 수 없습니다");

    location.href = "이동할 페이지 주소";

}

for (i in holiday) if (holiday[i] === today.getMonth() + 1 + ":" + today.getDate()) {

    alert("공휴일에는 글쓰기를 할 수 없습니다");

    location.href = "이동할 페이지 주소";

}

</script></p>

<p>

 

 

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

새로고침중
6개월 전
해결되었네요~답변 감사합니다~

댓글을 작성하려면 로그인이 필요합니다.

플라이
2년 전

주말은 date(w) 부분을 참고하셔서 적용하시면 되시는데

공휴일은 별도로 공휴일 일정을 설정해서 처리되도록 수정해야 하는 부분이 있습니다.

일단 주말에 관련 부분은 참고 주소 드릴테니 참고하셔서 적용하시면 됩니다.

참고: https://www.habonyphp.com/2020/07/php-date.html

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

새로고침중
6개월 전
답변 감사드립니다~

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인