1function addFavorite() { 2 var bookmarkURL = window.location.href; 3 var bookmarkTitle = document.title; 4 var triggerDefault = false; 5 6 if (window.sidebar && window.sidebar.addPanel) { 7 // Firefox version < 23 8 window.sidebar.addPanel(bookmarkTitle, bookmarkURL, ''); 9 } else if ((window.sidebar && (navigator.userAgent.toLowerCase().indexOf('firefox') > -1)) || (window.opera && window.print)) { 10 // Firefox version >= 23 and Opera Hotlist 11 var $this = $(this); 12 $this.attr('href', bookmarkURL); 13 $this.attr('title', bookmarkTitle); 14 $this.attr('rel', 'sidebar'); 15 $this.off(e); 16 triggerDefault = true; 17 } else if (window.external && ('AddFavorite' in window.external)) { 18 // IE Favorite 19 window.external.AddFavorite(bookmarkURL, bookmarkTitle); 20 } else { 21 // WebKit - Safari/Chrome 22 alert((navigator.userAgent.toLowerCase().indexOf('mac') != -1 ? 'Cmd' : 'Ctrl') + '+D í¤ë¥¼ ëë¬ ì¦ê²¨ì°¾ê¸°ì ë±ë¡íì¤ ì ììµëë¤.'); 23 } 24 25 return triggerDefault; 26}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.