{"id":437,"date":"2013-11-04T10:21:17","date_gmt":"2013-11-04T19:21:17","guid":{"rendered":"\/blog\/?p=437"},"modified":"2023-09-21T09:38:48","modified_gmt":"2023-09-21T00:38:48","slug":"%ed%83%80%ec%9d%b4%eb%a8%b8-%ed%91%9c%ec%8b%9c-%ec%98%88%ec%a0%9c","status":"publish","type":"post","link":"https:\/\/hasu0707.duckdns.org\/blog\/?p=437","title":{"rendered":"\ud0c0\uc774\uba38 \ud45c\uc2dc \uc608\uc81c"},"content":{"rendered":"\n<div style=\"border-style: double; border-width: 3px; border-color: rgb(159, 211, 49); background-color: rgb(231, 253, 181); padding: 10px;\" class=\"txc-textbox\"><p><span style=\"font-family: Courier New;\">&lt;!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01\/\/EN\" \"http:\/\/www.w3.org\/TR\/html4\/strict.dtd\"&gt;<\/span><br \/><span style=\"font-family: Courier New;\">&lt;html&gt;<\/span><br \/><span style=\"font-family: Courier New;\">&lt;head&gt;<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp; &lt;meta content=\"text\/html; charset=EUC-KR\" http-equiv=\"content-type\"&gt;<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp; &lt;title&gt;TEST&lt;\/title&gt;<\/span><br \/><span style=\"font-family: Courier New;\">&lt;\/head&gt;<\/span><br \/><br \/><span style=\"font-family: Courier New;\">&lt;body&gt;<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp; &lt;div&gt;\ub0a8\uc740\uc2dc\uac04:&lt;\/div&gt;<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp; &lt;div id=\"timer_msg\"&gt;&lt;\/div&gt;<\/span><br \/><span style=\"font-family: Courier New;\">&lt;\/body&gt;<\/span><br \/><span style=\"font-family: Courier New;\">&lt;\/html&gt;<\/span><br \/><br \/><span style=\"font-family: Courier New;\">&lt;script language=\"javascript\"&gt;<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp; &lt;!--<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp; \/* lifetime\uc744 \uc218\uc815\ud558\uc5ec \ucd5c\ucd08 \ub0a8\uc740\uc2dc\uac04\uc744 \uc815\uc758 *\/<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp; var lifetime = 60;<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp; var hour, min, sec;<\/span><br \/><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp; \/* \ucd08\ub2e8\uc704 \uc2dc\uac04\uc744 \uc2dc\/\ubd84\/\ucd08\ub85c \ubd84\ub9ac\ud558\uc5ec \uacc4\uc0b0 *\/<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp; function calc_time() {<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hour = Math.floor(lifetime \/ 3600);<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; min = Math.floor(lifetime \/ 60 - (hour * 60));<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sec = Math.floor(lifetime % 60);<\/span><br \/><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (hour &lt; 10) hour = \"0\" + hour;<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (min &lt; 10) min = \"0\" + min;<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (sec &lt; 10) sec = \"0\" + sec;<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp; }<\/span><br \/><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp; \/* \uc2dc\uac04 \ucd9c\ub825 *\/<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp; function print_timer() {<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; calc_time();<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.getElementById('timer_msg').innerHTML = hour + \":\" + min + \":\" + sec;<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp; }<\/span><br \/><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp; \/* 1\ucd08\ub9c8\ub2e4 \ud638\ucd9c\ub418\uc5b4 \ucc98\ub9ac\ub418\ub294 \ucf5c\ubc31\ud568\uc218 *\/<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp; function count() {<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lifetime--;<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (lifetime &lt;= 0) {<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; clearInterval(timer);<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.close();<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lifetime = 0;<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print_timer();<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp; }<\/span><br \/><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp; print_timer();<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp; timer = setInterval(\"count()\", 1000);<\/span><br \/><span style=\"font-family: Courier New;\">&nbsp;&nbsp;&nbsp; \/\/--&gt;<\/span><br \/><span style=\"font-family: Courier New;\">&lt;\/script&gt;<\/span><span style=\"font-family: Courier New;\"><\/span><\/p><\/div><p><br \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&lt;!DOCTYPE html PUBLIC &#8220;-\/\/W3C\/\/DTD HTML 4.01\/\/EN&#8221; &#8220;http:\/\/www.w3.org\/TR\/html4\/strict.dtd&#8221;&gt;&lt;html&gt;&lt;head&gt;&nbsp;&nbsp;&nbsp; &lt;meta content=&#8221;text\/html; charset=EUC-KR&#8221; http-equiv=&#8221;content-type&#8221;&gt;&nbsp;&nbsp;&nbsp; &lt;title&gt;TEST&lt;\/title&gt;&lt;\/head&gt; &lt;body&gt;&nbsp;&nbsp;&nbsp; &lt;div&gt;\ub0a8\uc740\uc2dc\uac04:&lt;\/div&gt;&nbsp;&nbsp;&nbsp; &lt;div id=&#8221;timer_msg&#8221;&gt;&lt;\/div&gt;&lt;\/body&gt;&lt;\/html&gt; &lt;script language=&#8221;javascript&#8221;&gt;&nbsp;&nbsp;&nbsp; &lt;!&#8211;&nbsp;&nbsp;&nbsp; \/* lifetime\uc744 \uc218\uc815\ud558\uc5ec \ucd5c\ucd08 \ub0a8\uc740\uc2dc\uac04\uc744 \uc815\uc758 *\/&nbsp;&nbsp;&nbsp; var lifetime = 60;&nbsp;&nbsp;&nbsp; var hour, min, sec; &nbsp;&nbsp;&nbsp; \/* \ucd08\ub2e8\uc704 \uc2dc\uac04\uc744 \uc2dc\/\ubd84\/\ucd08\ub85c \ubd84\ub9ac\ud558\uc5ec \uacc4\uc0b0 *\/&nbsp;&nbsp;&nbsp; function calc_time() {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hour = Math.floor(lifetime \/ 3600);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; min = Math.floor(lifetime \/ 60 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[23],"tags":[],"class_list":["post-437","post","type-post","status-publish","format-standard","hentry","category-development_web"],"_links":{"self":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=437"}],"version-history":[{"count":0,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/437\/revisions"}],"wp:attachment":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}