1jQuery(document).ready( function() {� 2 � 3 function SaveToDisk(fileURL, fileName) {� 4 // for non-IE� 5 if (!window.ActiveXObject) {� 6 var save = document.createElement('a');� 7 save.href = fileURL;� 8 save.target = '_blank';� 9 save.download = fileName || fileURL;� 10 var evt = document.createEvent('MouseEvents');� 11 evt.initMouseEvent('click', true, true, window, 1, 0, 0, 0, 0,� 12 false, false, false, false, 0, null);� 13 save.dispatchEvent(evt);� 14 (window.URL || window.webkitURL).revokeObjectURL(save.href);� 15 }else if (!window.ActiveXObject && document.execCommand) {� 16 var _window = window.open(fileURL, "_blank");� 17 _window.document.close();� 18 _window.document.execCommand('SaveAs', true, fileName || fileURL)� 19 _window.close();� 20 }� 21 }� 22 � 23 jQuery('.DownloadImage').click(function(e){� 24 var title = $(this).attr('title');� 25 var href = $(this).attr('href');� 26 SaveToDisk(href,title);� 27 return false;� 28 });� 29 � 30 jQuery('.SocialShare').click(function(e){� 31 e = (e ? e : window.event);� 32 var t = (e.target ? e.target : e.srcElement),� 33 width = t.data-width || 800,� 34 height = t.data-height || 500;� 35� 36� 37 // popup position� 38 var� 39 px = Math.floor(((screen.availWidth || 1024) - width) / 2),� 40 py = Math.floor(((screen.availHeight || 700) - height) / 2);� 41� 42 // open popup� 43 var popup = window.open($(this).attr('href'), "social",� 44 "width="+width+",height="+height+� 45 ",left="+px+",top="+py+� 46 ",location=0,menubar=0,toolbar=0,status=0,scrollbars=1,resizable=1");� 47� 48 if (popup) {� 49 popup.focus();� 50 if (e.preventDefault) e.preventDefault();� 51 e.returnValue = false;� 52 }� 53� 54 return !!popup;� 55 � 56 });� 57 � 58 � 59 function downloadURI(uri, name) {� 60 var link = document.createElement("a");�
61 link.download = name;� 62 link.href = uri;� 63 link.click();� 64 }� 65 � 66 � 67});�
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.