1function vtoggle(el_id) 2{ 3 var el_v = document.getElementById(el_id).style.display; 4 document.getElementById(el_id).style.display = ((el_v == "none") || (el_v == "") || (el_v === undefined)) ? "block" : "none"; 5} 6function vshow(el_id) 7{ 8 document.getElementById(el_id).style.display = "block"; 9} 10function vhide(el_id) 11{ 12 document.getElementById(el_id).style.display = "none"; 13} 14function btoggle(el_id) 15{ 16 var el_id_btn = el_id + '-toggler'; 17 var el_id_div = el_id + '-div'; 18 var eb_class = document.getElementById(el_id_btn).className; 19 var ed_class = document.getElementById(el_id_div).className; 20 var class_in = "expanded"; 21 var class_out = "collapsed"; 22 if (/(^|\s)expanded(\s|$)/g.test(eb_class)) 23 { 24 class_in = "collapsed"; 25 class_out = "expanded"; 26 } 27 var class_re = new RegExp(class_out, "g"); 28 document.getElementById(el_id_btn).className = eb_class.replace(class_re, class_in); 29 document.getElementById(el_id_div).className = ed_class.replace(class_re, class_in); 30} 31 32function __getWidthClass(w) 33{ 34 if (w >= 960) return 0; 35 if (w < 768) return 1; 36 return 2; 37} 38 39var __resize_width, __resize_timeout; 40 41function __resize_reload() 42{ 43 var f = document.createElement("form"); 44 f.setAttribute('method', "post"); 45 f.setAttribute('action', window.location.href); 46 f.setAttribute('style', "visibility:hidden;"); 47 var i = document.createElement("input"); 48 i.type = "text"; 49 i.name = "__width"; 50 i.value = __resize_width; 51 f.appendChild(i); 52 var b = document.getElementsByTagName("body")[0]; 53 b.appendChild(f); 54 f.submit(); 55} 56 57function __resize(w, timeout) 58{ 59 if (arguments.length < 2) { 60 timeout = 200; 61 } 62 var n = __getWidthClass(w); 63 if (n != __width_class) { 64 __resize_width = n; 65 clearTimeout(__resize_timeout); 66 __resize_timeout = setTimeout(__resize_reload, timeout); 67 } 68} 69 70function __force_desktop(d) 71{ 72 var f = document.createElement("form"); 73 f.setAttribute('method', "post"); 74 f.setAttribute('action', window.location.href); 75 f.setAttribute('style', "visibility:hidden;"); 76 var i = document.createElement("input"); 77 i.type = "text"; 78 i.name = "__desktop"; 79 i.value = d; 80 f.appendChild(i); 81 var b = document.getElementsByTagName("body")[0]; 82 b.appendChild(f); 83 f.submit(); 84}
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.