1var last_src = ""; 2 3 4function cms_vote_postDo(formName, inputName, nstext) { 5 var fObjColl = document.getElementsByName(formName); 6 7 var fObj = ''; 8 if (fObjColl) { 9 fObj = fObjColl[fObjColl.length-1]; 10 } 11 12 if(typeof(fObj) !== "object") return false; 13 14 iObj = fObj.elements[inputName]; 15 16 if(typeof(iObj) === "undefined") return false; 17 18 res = false; 19 for(i = 0; i < iObj.length; i++) 20 if(iObj[i].checked) 21 res = iObj[i].value; 22 23 24 if(res) { 25 sc = document.createElement("script"); 26 sc.src = "/vote/post/" + res + "/?m=" + new Date().getTime(); 27 oTemplate = fObj.elements['system_template']; 28 if((oTemplate instanceof Object) && (oTemplate.value.length)) { 29 sc.src = sc.src + "&template="+oTemplate.value; 30 } 31 32 fObj.appendChild(sc); 33 } else { 34 if(nstext) { 35 alert(nstext); 36 } 37 } 38} 39 40function rateElement(element_id, num) { 41 lLib.getInstance().makeRequest("/vote/setElementRating/" + element_id + "/" + num + "/", function() {} ); 42}
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.