본문으로 이동

사용자:분당선앰/vector.js

위키백과, 우리 모두의 백과사전.

참고: 설정을 저장한 후에 바뀐 점을 확인하기 위해서는 브라우저의 캐시를 새로 고쳐야 합니다. 구글 크롬, 파이어폭스, 마이크로소프트 엣지, 사파리: ⇧ Shift 키를 누른 채 "새로 고침" 버튼을 클릭하십시오. 더 자세한 정보를 보려면 위키백과:캐시 무시하기 항목을 참고하십시오.

/*** Start ***/
$(function() {
 
        /*** Edit ***/
 
 
        var date = { year: 2099, month: 8, day: 13};
        var time = { hours: 0, minutes: 0, seconds: 0 };
 
        /*** Edit ***/
 
        var currentDate = new Date();
        var enforcedBreakEnd = new Date(
                date.year,date.month-1,date.day,time.hours,time.minutes,time.seconds);
        if (currentDate <= enforcedBreakEnd) {
                alert("인포서는 "+enforcedBreakEnd.toLocaleString()
                        + "까지 설정되었습니다.\n(지금 시각은 "+currentDate.toLocaleString()+"입니다.)");
                location = "http://"+location.host+"/w/index.php?title="
                        + "Special:Userlogout&returnto=Main_Page";
        }
});
/*** End ***/