PageSourceSearch

https://steelblue-starling-118246.hostingersite.com/wp-content/plugins/zakah-calculator/js/zakah.js?ver=1

js steelblue-starling-118246.hostingersite.com collected 2026-10-03 04:56:40 UTC 1,325 bytes, 58 lines download raw bytes

1function zakah_check_empty(empty){
2	if (empty.value == ""){
3		empty.value = 0;
4	}
5	if (empty.value< 0) {
6		alert("The value must be equal or greater than 0 !");
7		empty.focus();
8	}
9	zakah_calculate();
10}
11	
12function zakah_lostfocus(current_field){
13	zakah_calculate();
14	
15}
16
17function reset_zakah_print(){
18		var div_id = document.getElementById("zakah_result");
19		div_id.innerHTML  = "";
20}
21	
22function zakah_blankfield(field_name){
23	if (field_name.value == "0"){
24	field_name.value = ""; }
25} 
26	
27function zakah_calculate(){
28	with(document.calculate_zakah){
29		var zakah_format = 0;
30		total_amount.value=eval(amount.value); 
31		if(eval(total_amount.value)< 0){ 
32			alert("The total cannot be less than Zero");
33		}else{
34			zakah_format = zakah_formated(Math.round(eval(total_amount.value)*0.025*100)/100);
35			zakah.value=zakah_format;
36			zakah_print(zakah_format);
37		}
38	}
39
40}
41	
42function zakah_formated(source){
43	 var temp1=new String(source);
44	 if(temp1.indexOf(".")!=-1){
45		 var position=temp1.indexOf(".");
46		 if(temp1.charAt(position+3)!="" && temp1.charAt(position+3)>4){
47			 a=temp1.substring(0,position+3);
48			 a=eval(a)*100;
49			 a=eval(a)+1;
50			 a=eval(a)/100;
51			 return a;
52		 }else{
53			 return temp1.substring(0,position+3);
54		}
55	 } else {
56		 return temp1.valueOf();
57	 }
58}

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.