1 2/** 3 * Adds a abouturation window for fonts, colors, and sizes 4 * 5 * @author John Dyer (http://j.hn/) 6 */ 7 8 9docs.plugins.push({ 10 11 init: function(docManager) { 12 13 // create about menu and button 14 var 15 aboutWindow = docs.createModal('about', 'About').size(450, 300), 16 isLoaded = false; 17 18 19 20 $('#top-logo').css('cursor','pointer').on('click', function(e) { 21 e.preventDefault(); 22 23 // show about menu 24 if (aboutWindow.window.is(':visible')) { 25 aboutWindow.hide(); 26 } else { 27 if (!isLoaded) { 28 29 isLoaded = true; 30 $.ajax({ 31 url: 'content/about.html', 32 dataType: 'html', 33 success: function(d) { 34 aboutWindow.content.append( $(d) ); 35 } 36 }); 37 } 38 39 aboutWindow.show(); 40 aboutWindow.center(); 41 } 42 43 return false; 44 45 }); 46 } 47});
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.