1function peregruz(){location.reload();} 2 3function calc_itogo(n,s){ 4 document.getElementById('calc_'+n).value=s; 5 var s1=parseInt(document.getElementById('calc_1').value); 6 var s2=parseInt(document.getElementById('calc_2').value); 7 var s3=parseInt(document.getElementById('calc_3').value); 8 var s4=parseInt(document.getElementById('calc_4').value); 9 var s5=parseInt(document.getElementById('calc_5').value); 10 document.getElementById('zayav_itogo').value=s1+s2+s3+s4+s5; 11 document.getElementById('zayav_itogo_show').innerHTML=s1+s2+s3+s4+s5+' ðóá.'; 12} 13/* 14* Íèæå ìû èñïîëüçóåì îñîáûé ìåõàíèçì ãåòòåðîâ/ñåòòåðîâ áåðóùèõ ñâîè êîðíè åùå 15* ñ íåòñêåéïîâñêèõ âðåì¸í. 16*/ 17//èçáàâëÿåìñÿ îò ãëþ÷íîé íî ïîääåðæèâàþùåé innerText Îïåðû 18//áðîäèëêà èìååò Node, íî íå èìååò Node.prototype - áðåä... =/ 19if(typeof(Node)!="undefined"&&typeof(Node.prototype)!="undefined"&&typeof(Node.prototype.__defineGetter__)=="function") { Node.prototype.__defineGetter__("innerText", function() 20 { 21 var ret = ""; 22 for(var i=0; i<this.childNodes.length; i++) { 23 switch(this.childNodes[i].nodeType) { 24 case 1: ret+=this.childNodes[i].innerText; break; //åñëè ýëåìåíò 25 case 4: ret+=this.childNodes[i].nodeValue; break; //åñëè òåêñò 26 } 27 } return ret; 28 }); 29 30 Node.prototype.__defineSetter__("innerText", function(val) 31 { 32//è íå ïûòàéòåñü èñïîëüçîâàòü removeChild, Ìîçèëëó ãëþ÷èò ïî ÷¸ðíîìó 33//óæ ëó÷øå òàê... ÷åðåç innerHTML =/ 34 this.innerHTML=""; //î÷èùÿåì ñîäåðæèìîå 35 this.appendChild(document.createTextNode(val)); 36 }); 37}
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.