<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="//work6.kr/plugin/plugin_link/48"></script> <script> $(function(){ countTimer = $('#timer').countTimePro(); countTimer.setting({ time:'2019-05-29 23:58:00',//기준시간 endstop:false,//기준시간에 도달한 경우 멈출지 여부 format:'00:00'//00:00:00, 00:00, 00 중 택 1 }); $('#reset').click(function(){ countTimer.reset('2019-05-29 24:01:00'); }); }); </script> <span id="timer"></span> <button id="reset">reset</button>
설치방법
1. Line1 : 제이쿼리를 연결합니다.
2. Line2 : 플러그인 사용하기 후 도메인을 등록 합니다. 코드를 복사 그리고 붙여넣기 합니다.
3. Line19 ~ 20 : 시간을 표시 할 영역과 리셋 버튼을 추가 합니다.
4. Line5 ~ 14 : 스크립트를 복사 그리고 붙여넣기 합니다.
Install
1. Line1: Connect the jquery.
2. Line2: Register the domain after using the plug-in. Copy and paste code.
3. Line19 ~ 20: Add an area to display time and a reset button.
4. Line5 ~ 14: Copy and paste the script.