$(document).ready(function() { $('#favorite').on('click', function(e) { var bookmarkURL = window.location.href; var bookmarkTitle = document.title; var triggerDefault = false; if (window.sidebar && window.sidebar.addPanel) { // Firefox version < 23 window.sidebar.addPanel(bookmarkTitle, bookmarkURL, ''); } else if ((window.sidebar && (navigator.userAgent.toLowerCase().indexOf('firefox') > -1)) || (window.opera && window.print)) { // Firefox version >= 23 and Opera Hotlist var $this = $(this); $this.attr('href', bookmarkURL); $this.attr('title', bookmarkTitle); $this.attr('rel', 'sidebar'); $this.off(e); triggerDefault = true; } else if (window.external && ('AddFavorite' in window.external)) { // IE Favorite window.external.AddFavorite(bookmarkURL, bookmarkTitle); } else { // WebKit - Safari/Chrome alert((navigator.userAgent.toLowerCase().indexOf('mac') != -1 ? 'Cmd' : 'Ctrl') + '+D Å°¸¦ ´­·¯ Áñ°Üã±â¿¡ µî·ÏÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.'); } return triggerDefault; }); }); $(document).ready(function(){ $("a").tooltip(); }); /* ¿ìÃø ¸Þ´º ÆîÄ¡±â */ $(document).ready(function() { $("#contents_right").hover( function() { //mouse in $("#contents_right").animate( { width : $(".right_menu").width() } ); $(".right_menu").find("dt").find("i").attr("class",".icon ion-ios-arrow-right"); }, function() { //mouse leave $("#contents_right").animate( { width : '53px' } ); $(".right_menu").find("dt").find("i").attr("class",".icon ion-ios-arrow-left"); } ); }); /* ¿ìÃø ¸Þ´º ÆîÄ¡±â */ // F12 ¹öÆ° ¹æÁö $(document).ready(function(){ $(document).bind('keydown',function(e){ if ( e.keyCode == 123 /* F12 */) { e.preventDefault(); e.returnValue = false; } }); }); // ¿ìÃø Ŭ¸¯ ¹æÁö document.onmousedown=disableclick; status="Right click is not available."; function disableclick(event){ if (event.button==2) { alert(status); return false; } }