1/************************************ 2* 3* Universal JavaScript Extensions 4* v1.3.1b 5* last update 16.06.2014 6* 7************************************/ 8 9// formating function for numbers 10function RSDevFunc_NumberFormat(number,decimals,dec_point,thousands_sep){ 11 var i, j, kw, kd, km; 12 if(isNaN(decimals = Math.abs(decimals))){decimals = 2;} 13 if(dec_point == undefined){dec_point = ".";} 14 if(thousands_sep == undefined){thousands_sep = " ";} 15 i = parseInt(number = (+number || 0).toFixed(decimals)) + ""; 16 if( (j = i.length) > 3 ){j = j % 3;}else{j = 0;} 17 km = (j ? i.substr(0, j) + thousands_sep : ""); 18 kw = i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + thousands_sep); 19 kd = (decimals ? dec_point + Math.abs(number - i).toFixed(decimals).replace(/-/, 0).slice(2) : ""); 20 return km + kw + kd; 21} 22 23// get url vars 24function RSDevFunc_GetUrlVars(){ 25 var vars = [],hash; 26 var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); 27 for(var i=0;i<hashes.length;i++){ 28 hash = hashes[i].split('='); 29 vars.push(hash[0]); 30 vars[hash[0]] = hash[1]; 31 } 32 return vars; 33} 34 35// ending of the word depending on the number 36function RSDevFunc_BasketEndWord(num,end1,end2,end3){ 37 if(!end1) end1 = RSDevFunc_BasketEndWord_end1; 38 if(!end2) end2 = RSDevFunc_BasketEndWord_end2; 39 if(!end3) end3 = RSDevFunc_BasketEndWord_end3; 40 var val = num % 100; 41 if (val>10 && val<20){ 42 return end3; 43 }else{ 44 val = num % 10; 45 if (val == 1){ 46 return end1; 47 }else if((val > 1) && (val < 5)){ 48 return end2; 49 }else{return end3;} 50 } 51} 52 53var RSDevFunc_PHONETABLET = false; 54if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i.test(navigator.userAgent) ) { RSDevFunc_PHONETABLET = true };
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.