1jQuery(function() { 2 var $discussionli = jQuery('#more-discussion'); 3 var $discussionlink = jQuery('#more-discussion a'); 4 5 $discussionlink.click(function() { 6 var url = $discussionlink.attr('href'); 7 var uri = new URI(url); 8 var query = uri.search(true); 9 query.d = parseInt(query.d) + 1; 10 uri.search(query); 11 12 jQuery.get(uri, function(data) { 13 $discussionli.before(data); 14 $discussionlink.attr('href', uri); 15 }); 16 return false; 17 }); 18 19 var $fileli = jQuery('#more-files'); 20 var $filelink = jQuery('#more-files a'); 21 22 $filelink.click(function() { 23 var url = $filelink.attr('href'); 24 var uri = new URI(url); 25 var query = uri.search(true); 26 query.f = parseInt(query.f) + 1; 27 uri.search(query); 28 29 jQuery.get(uri, function(data) { 30 $fileli.before(data); 31 $filelink.attr('href', uri); 32 }); 33 return false; 34 }); 35}); 36 37function toggle_tab(def,instance,onTab) { 38 var oldtab = ''; 39 if(!window.tabs) { 40 window.tabs = []; 41 window.tabs[instance] = onTab; 42 oldtab = def; 43 } else { 44 if (!window.tabs[instance]) { 45 window.tabs[instance] = onTab; 46 oldtab = def; 47 } else { 48 oldtab = window.tabs[instance]; 49 window.tabs[instance] = onTab; 50 } 51 } 52 $(document.getElementById(oldtab).parentNode).removeClass('active'); 53 $(document.getElementById(onTab).parentNode).addClass('active'); 54 $(document.getElementById(oldtab)).removeClass('active'); 55 $(document.getElementById(onTab)).addClass('active'); 56} 57 58function toggle_panel(def,instance,onPanel) { 59 var oldpanel = ''; 60 if (!window.panels) { 61 window.panels = []; 62 window.panels[instance] = onPanel; 63 oldpanel = def; 64 } else { 65 if (!window.panels[instance]) { 66 window.panels[instance] = onPanel; 67 oldpanel = def; 68 } else { 69 oldpanel = window.panels[instance]; 70 window.panels[instance] = onPanel; 71 } 72 } 73 document.getElementById(oldpanel).style.display = 'none'; 74 document.getElementById(onPanel).style.display = 'block'; 75} 76 77function toggle_edit( discussion ) 78{ 79 jQuery(".discussion-edit").hide(); 80 jQuery("#discussion-"+discussion).show(); 81}
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.