PageSourceSearch

http://annhri.org/wp-content/themes/denorious/js/denorious-main.js?ver=1.0.0

js annhri.org collected 2026-10-07 18:59:13 UTC 25,426 bytes, 733 lines download raw bytes

1/* Template: The Denorious Theme | Author: Fluent-Themes */
2/*----------------------------------------------------------*/
3(function($) {
4
5"use strict";
6
7//ISOTOPE
8jQuery(window).load(function($){
9    jQuery('.grid').isotope({
10        itemSelector: '.grid-item',
11        masonry: {
12            gutterWidth: 0,
13            columnWidth: 1
14        }
15    });
16    jQuery("#amount").val('10.00');
17    jQuery("#donation_amount").text('10.00');
18    jQuery("#offline_payment_amount").val('10.00');
19    jQuery("button").attr("aria-expanded","true");
20
21    if(screen.width < 767){
22        jQuery(".dropdown").addClass("open");
23        jQuery("#login-comments").addClass("force-margin");
24    }
25
26    var numItems = jQuery('.col').length;
27    if(numItems == 3){
28        jQuery(".megamenu .dropdown-menu").css("width", "556px");
29    }
30
31});
32
33jQuery(document).ready(function($){
34
35    var strok_color = jQuery("#stroke").val();
36    if(strok_color == ""){
37        strok_color = "#1c57a1";
38    } else {
39        strok_color = strok_color;
40    }    
41
42    var fill_color = jQuery("#fillcolor").val();
43    if(fill_color == ""){
44        fill_color = "#fff";
45    } else {
46        fill_color = fill_color;
47    }
48    
49    // CIRCLE PROGRESSBAR
50    var progress_value = $(".progress-circle small").text().split('%');
51    if(progress_value.length > 0){
52
53        for( var i=0; i<3; i++){
54            $(".circle"+i+"").circliful({
55                animation: 1,
56                animationStep: 5,
57                foregroundBorderWidth: 8,
58                backgroundBorderWidth: 8,
59                backgroundColor: ''+fill_color+'',
60                foregroundColor: ''+strok_color+'',
61                percent: progress_value[i],
62            });
63        }
64
65    } 
66    
67    // TOP POGRESS
68    var get_percentage = $(".top-progress span").text().split('%');
69    var circle2 = get_percentage.toString().replace(/,/g , "");
70
71    if(circle2.length > 0){    
72        $(".progress-circle-2").circliful({
73            animation: 1,
74            animationStep: 5,
75            foregroundBorderWidth: 6,
76            backgroundBorderWidth: 6,
77            backgroundColor: 'rgba(255,255,255,0.3)',
78            foregroundColor: '#ffffff',
79            percent: circle2,
80        }); 
81    } 
82
83    // VC CAUSES CIRCLE
84    var causes      = $(".vc-causes");
85    var el          = $(".vc-causes small");
86    var count       = $(".vc-causes small").length;
87    if( count > 0 ){
88        for (var i = 0; i < count; i++) {
89            var vccause = $(el[i]).text().split('%');
90            var vc_circle = vccause.toString().replace(/,/g , ""); 
91            $(causes[i]).circliful({
92                animation: 1,
93                animationStep: 5,
94                foregroundBorderWidth: 6,
95                backgroundBorderWidth: 6,
96                backgroundColor: '#ffffff',
97                foregroundColor: ''+strok_color+'',
98                percent: vc_circle,
99            });                    
100        } 
101    }
102
103    // CAUSES CIRCLE
104    var causes2      = $(".causes");
105    var el2          = $(".causes small");
106    var count2       = $(".causes small").length;
107    if( count2 > 0 ){
108        for (var i = 0; i < count2; i++) {
109            var vccause2 = $(el2[i]).text().split('%');
110            var vc_circle2 = vccause2.toString().replace(/,/g , ""); 
111            $(causes2[i]).circliful({
112                animation: 1,
113                animationStep: 5,
114                foregroundBorderWidth: 6,
115                backgroundBorderWidth: 6,
116                backgroundColor: '#ffffff',
117                foregroundColor: ''+strok_color+'',
118                percent: vc_circle2,
119            });                    
120        } 
121    }
122     
123
124    // CAUSES SINGPLE PAGE CIRCLE
125    var cause_single = $(".single-circle small").text().split('%');
126    var single_circle = cause_single.toString().replace(/,/g , "");
127    if(single_circle.length > 0){     
128        $(".single-circle").circliful({
129            animation: 1,
130            animationStep: 5,
131            foregroundBorderWidth: 8,
132            backgroundBorderWidth: 8,
133            backgroundColor: '#ffffff',
134            foregroundColor: ''+strok_color+'',
135            percent: single_circle
136        }); 
137    }
138
139    //URGENT CAUSES CIRCLE
140    var urgent_cause_circle = $(".urgent_cause_circle small").text().split('%');
141    var urgent_percentage = urgent_cause_circle.toString().replace(/,/g , "");    
142    $('.urgent_cause_circle').circliful({
143        animation: 1,
144        animationStep: 5,
145        foregroundBorderWidth: 6,
146        backgroundBorderWidth: 6,
147        backgroundColor: '#ffffff',
148        foregroundColor: ''+strok_color+'',
149        percent: urgent_percentage,
150    });        
151
152    // RATINGS JS
153    $('.js-star-rating').on('change', 'input', function() {
154        $('.js-current-rating')
155            .removeClass()
156            .addClass('current-rating js-current-rating current-rating--' + this.value);
157    });
158
159    $('.filter-button-group').on('click', 'li', function() {
160        var filterValue = $(this).attr('data-filter');
161        $('.grid').isotope({
162            filter: filterValue
163        });
164
165        $('.filter-button-group li').removeClass('active');
166        $(this).addClass('active');
167    });
168
169    // COUNTDOWN TIMER
170    var get_date = $('.cc-date').contents().filter(function() {return this.nodeType == Node.TEXT_NODE;}).text();
171    if(get_date.length > 0){
172        $('.countdown').downCount({
173            date: get_date,
174            offset: +1
175        });
176    } else {
177        $('.countdown').downCount({
178            date: '06/06/2018 12:00',
179            offset: +1
180        });
181    }
182	
183	
184	/*Load CSS after full page is loaded*/
185
186	$(window).bind("load", function() {
187		var cssURL = uniqueHomeUrl.denorious_homeurl + '/js/onload-style.css';
188		if($(".star-rating").size()>0){
189            if (document.createStyleSheet){
190                document.createStyleSheet(cssURL);
191            }
192            else {
193                $("head").append($("<link rel='stylesheet' href='" + cssURL + "' type='text/css' media='screen' />"));
194            }
195        }
196	});
197	
198	/*Include fa fa-check icon before every li elements of single page*/
199	$('.single .inner-content .col-sm-8 .dc-single ul li').prepend('<i class="fa fa-check"></i>');
200});
201
202$('.input-number').focusin(function() {
203	$(this).data('oldValue', $(this).val());
204});
205$('.input-number').change(function() {
206
207	var minValue = parseInt($(this).attr('min'));
208	var maxValue = parseInt($(this).attr('max'));
209	var valueCurrent = parseInt($(this).val());
210
211	var name = $(this).attr('name');
212	if (valueCurrent >= minValue) {
213		$(".btn-number[data-type='minus'][data-field='" + name + "']").removeAttr('disabled')
214	} else {
215		alert('Sorry, the minimum value was reached');
216		$(this).val($(this).data('oldValue'));
217	}
218	if (valueCurrent <= maxValue) {
219		$(".btn-number[data-type='plus'][data-field='" + name + "']").removeAttr('disabled')
220	} else {
221		alert('Sorry, the maximum value was reached');
222		$(this).val($(this).data('oldValue'));
223	}
224});
225
226$(".input-number").keydown(function(e) {
227	if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 190]) !== -1 ||
228		(e.keyCode == 65 && e.ctrlKey === true) ||
229		(e.keyCode >= 35 && e.keyCode <= 39)) {
230		return;
231	}
232	if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) {
233		e.preventDefault();
234	}
235});
236
237jQuery('.page-numbers').addClass('page_nav').removeClass('page-numbers');
238jQuery('.page_nav li a').removeClass('page_nav');
239
240if(jQuery("body").hasClass("page-template-page-blog-two")){
241    jQuery(".page_nav").addClass("text-center");
242    jQuery('.current').removeClass('text-center');
243    jQuery('.dots').removeClass('text-center');
244    jQuery('.dots').removeClass('page_nav');
245}
246if(jQuery(".footer .container .row .col-sm-4 a div").hasClass("footer-video")){
247    jQuery(".footer").addClass("m-mobile-top450");
248}
249
250jQuery('.comment-respond').addClass('denorious-list post-review').removeClass('comment-respond');
251jQuery('.btn').removeClass('pull-right');
252
253function isEmpty(obj) {
254    for(var prop in obj) {
255        if(obj.hasOwnProperty(prop))
256            return false;
257    }
258
259    return true;
260}
261
262var regExp = /\(([^)]+)\)/;
263jQuery('.widget_archive ul li').each(function(){
264    var total_post = regExp.exec(jQuery(this).text());
265	if(isEmpty(total_post)) {
266    jQuery(this).replaceWith("<li><a href='"+jQuery('a', jQuery(this)).attr('href')+"'><p>"+jQuery('a', jQuery(this)).text()+"</p></a></li>");
267	} else {
268	jQuery(this).replaceWith("<li><a href='"+jQuery('a', jQuery(this)).attr('href')+"'><p>"+jQuery('a', jQuery(this)).text()+"</p><span>"+total_post[1]+"</span></a></li>");
269	}
270});
271
272var regExp = /\(([^)]+)\)/;
273jQuery('.widget_layered_nav ul li').each(function(){
274    var total_post = regExp.exec(jQuery(this).text());
275    if(isEmpty(total_post)) {
276    jQuery(this).replaceWith("<li><a href='"+jQuery('a', jQuery(this)).attr('href')+"'><p>"+jQuery('a', jQuery(this)).text()+"</p></a></li>");
277    } else {
278    jQuery(this).replaceWith("<li><a href='"+jQuery('a', jQuery(this)).attr('href')+"'><p>"+jQuery('a', jQuery(this)).text()+"</p><span>"+total_post[1]+"</span></a></li>");
279    }
280});
281
282// single sponsore form donation value
283jQuery('.camount').on('click', function(){
284    var set_amount = jQuery(this).val();
285    jQuery("#amount").val(set_amount);
286    jQuery("#donation_amount").text(set_amount);
287});
288
289jQuery("#sponsor-btn").on('click', function(){
290    jQuery("#sponsor_content").hide();
291    jQuery("#sponsor_form_paypal").show();
292});
293
294jQuery(".donation_cancel").on('click', function(){
295    jQuery("#sponsor_content").show();
296    jQuery("#sponsor_form_paypal").hide();
297});
298
299//single child sponsor donation custom amount
300jQuery("#custom_amount").on('keyup', function(){
301
302    var get_this_value = jQuery(this).val().trim();
303    jQuery("#donation_amount").text(parseFloat(get_this_value));
304    jQuery("#amount").text(parseFloat(get_this_value));
305
306    if(get_this_value.length==0){
307        jQuery("#donation_amount").text(10.00);
308        jQuery("#amount").text(10.00);
309    }
310});
311
312// cuase sponsor form
313$(".single-causes #custom_amount").on('click', function(){
314    if( !$(".single-causes #custom_amount").hasClass('input-colored-bg') ) { 
315        $(".single-causes #custom_amount").addClass("input-colored-bg");
316        $(".make-donation .rbox2 input").prop('checked', false);
317    }
318});
319
320$(".make-donation .rbox2 label").on('click', function(){
321    if($(".single-causes #custom_amount").hasClass('input-colored-bg')) { 
322        $(".single-causes #custom_amount").removeClass("input-colored-bg");
323    }
324});
325
326//single cuase custom amount for donation
327jQuery(".single-causes #custom_amount").on('keyup', function(){
328
329    var get_this_value = jQuery(this).val().trim();
330    if( !isNaN(get_this_value) ){
331        if( get_this_value.length < 8 ){
332
333            jQuery("#amount").val(parseFloat(get_this_value));
334            jQuery("#offline_payment_amount").val(parseFloat(get_this_value));
335            if(get_this_value.length==0){
336                jQuery("#amount").val(10.00);
337                jQuery("#offline_payment_amount").val(10.00);
338            }
339
340        } else{
341            alert("Max length 8 digit");
342            jQuery(this).val("");
343        }
344    } else {
345        alert('Input number value');
346        jQuery(this).val("");
347    }
348
349});
350
351// single cuase form donation value
352jQuery('#offline_form .camount').on('click', function(){
353    var set_amount = jQuery(this).val();
354    jQuery("#amount").val(parseFloat(set_amount));
355    jQuery("#custom_amount").val("");
356    jQuery("#offline_payment_amount").val(parseFloat(set_amount));
357});
358
359
360$(".cbox-wrap-donation #c1").on('click', function(){
361    $(".paypal_form").css({"opacity":"1", "cursor":"default","display":"block"});
362    $(".paypal_form .btn").removeAttr("disabled");
363    $(".offline_form_btn_area").css({"display":"none"});
364});
365
366$(".cbox-wrap-donation #c2").on('click', function(){
367    $(".paypal_form").css({"display":"none"});
368    $(".offline_form_btn_area").css({"display":"block"});
369});
370
371
372// cuase sponsor form
373$(".single-sponsor-child #custom_amount").on('click', function(){
374    if( !$(".single-sponsor-child #custom_amount").hasClass('input-colored-bg') ) { 
375        $(".single-sponsor-child #custom_amount").addClass("input-colored-bg");
376        $(".make-donation .rbox2 input").prop('checked', false);
377    }
378});
379
380$(".make-donation .rbox2 label").on('click', function(){
381    if($(".single-sponsor-child #custom_amount").hasClass('input-colored-bg')) { 
382        $(".single-sponsor-child #custom_amount").removeClass("input-colored-bg");
383    }
384});
385
386//single cuase custom amount for donation
387jQuery(".single-sponsor-child #custom_amount").on('keyup', function(){
388
389    var get_this_value = jQuery(this).val().trim();
390    if( !isNaN(get_this_value) ){
391        if( get_this_value.length < 8 ){
392
393            jQuery("#amount").val(parseFloat(get_this_value));
394            jQuery("#offline_payment_amount").val(parseFloat(get_this_value));
395            if(get_this_value.length==0){
396                jQuery("#amount").val(10.00);
397                jQuery("#offline_payment_amount").val(10.00);
398            }
399
400        } else {
401            alert("Max length 8 digit");
402            jQuery(this).val("");
403        }
404    } else {
405        alert('Insert number value');
406        jQuery(this).val("");
407    }
408
409});
410
411// Browse All Menu
412$(".browseallicon a").click(function(){
413	$(".browseallmenu").fadeToggle(200);
414   $(this).toggleClass('btn-open').toggleClass('btn-close');
415});
416$('.browseallmenu').on('click', function(){
417    $(".browseallmenu").fadeToggle(200);   
418    $(".browseallicon a").toggleClass('btn-open').toggleClass('btn-close');
419    open = false;
420});
421
422// QUANTITY
423$('.qty-inner >div').click(function(e) {
424    e.preventDefault();
425    
426    var fieldName = $(this).attr('data-field');
427    var type = $(this).attr('data-type');
428    var input = $("input[name='" + fieldName + "']");
429    var currentVal = parseInt(input.val());
430
431    if (!isNaN(currentVal)) {
432        if (type == 'minus') {
433
434            if (currentVal > input.attr('min')) {
435                input.val(currentVal - 1).change();
436            }
437            if (parseInt(input.val()) == input.attr('min')) {
438                $(this).attr('disabled', true);
439            }
440
441        } else if (type == 'plus') {
442
443            if (currentVal < input.attr('max')) {
444                input.val(currentVal + 1).change();
445            }
446            if (parseInt(input.val()) == input.attr('max')) {
447                $(this).attr('disabled', true);
448            }
449
450        }
451    } else {
452        input.val(0);
453    }
454});
455
456    jQuery(".login-form").submit(function() {
457        var thisform = jQuery(this);
458        jQuery('.required-error',thisform).remove();
459        jQuery('input[type="submit"]',thisform).hide();
460        jQuery('.loader_2',thisform).show().css({"display":"block"});
461        var fields = jQuery('.inputs',thisform);
462        jQuery('.required-item',thisform).each(function () {
463            var required = jQuery(this);
464            if (required.val() == '') {
465                required.after('<span class=required-error>'+ask_error_text+'</span>');
466                return false;
467            }
468        });
469        var data = {
470            action:         'denorious_ask_ajax_login_process',
471            security:       jQuery('input[name=\"login_nonce\"]',thisform).val(),
472            log:            jQuery('input[name=\"log\"]',thisform).val(),
473            pwd:            jQuery('input[name=\"pwd\"]',thisform).val(),
474            redirect_to:    jQuery('input[name=\"redirect_to\"]',thisform).val()
475        };
476        jQuery.post(jQuery('input[name=\"ajax_url\"]',thisform).val(),data,function(response) {
477            var result = jQuery.parseJSON(response);
478            if (result.success == 1) {
479                window.location = result.redirect;
480            }else if (result.error) {
481                jQuery(".ask_error",thisform).hide(10).slideDown(300).html('<strong>'+result.error+'</strong>').delay(3000).slideUp(300);
482            }else {
483                return true;
484            }
485            jQuery('.loader_2',thisform).hide().css({"display":"none"});
486            jQuery('input[type="submit"]',thisform).show();
487        });
488        return false;
489    });
490
491
492
493    jQuery(".login-comments").click(function () {
494        jQuery(".panel-pop").animate({"top":"-100%"},10).hide();
495        jQuery("#login-comments").show().animate({"top":"2%"},500);
496        jQuery("html,body").animate({scrollTop:0},500);
497        jQuery("body").prepend("<div class='wrap-pop'></div>");
498        wrap_pop();
499        return false;
500    });
501    
502    /* Signup */
503    jQuery(".signup,.login-links-r a").click(function () {
504        jQuery(".panel-pop").animate({"top":"-100%"},10).hide();
505        jQuery("#signup").show().animate({"top":"2%"},500);
506        jQuery("html,body").animate({scrollTop:0},500);
507        jQuery("body").prepend("<div class='wrap-pop'></div>");
508        wrap_pop();
509        return false;
510    });
511
512    jQuery(".signup_form").submit(function() {
513        var thisform = jQuery(this);
514        jQuery('.required-item',thisform).each(function () {
515            var required = jQuery(this);
516            if (required.val() == '') {
517                required.after('<span class=required-error>All fields are required</span>');
518                $(".required-error").fadeOut(2000);
519                return false;
520            }
521        }); 
522
523        var data = {
524            action:           'denorious_ajax_ask_signup',
525            security:         jQuery('input[name=\"signonsecurity\"]',thisform).val(),
526            user_name:        jQuery('input[name=\"user_name\"]',thisform).val(),
527            email:            jQuery('input[name=\"email\"]',thisform).val(),
528            pass1:            jQuery('input[name=\"pass1\"]',thisform).val(),
529            pass2:            jQuery('input[name=\"pass2\"]',thisform).val(),
530            redirect_to:      jQuery('input[name=\"redirect_to\"]',thisform).val()
531        };
532
533        jQuery.post(jQuery('input[name=\"ajax_url\"]',thisform).val(),data,function(data) {
534            var data = $.parseJSON(data);
535            jQuery('.ask_error').text(data.message);
536            if (data.loggedin == true) {
537                window.location = jQuery('input[name=\"redirect_to\"]',thisform).val();
538            }
539        }); 
540
541        return false;
542    });
543
544
545   
546
547    jQuery(".panel-pop h2 i").click(function () {
548        jQuery(this).parent().parent().animate({"top":"-100%"},500).fadeOut(function () {
549            jQuery(this).animate({"top":"-100%"},500);
550        });
551        jQuery(".wrap-pop").remove();
552    });
553
554
555    function wrap_pop() {
556        jQuery(".wrap-pop").click(function () {
557            jQuery(".panel-pop").animate({"top":"-100%"},500).fadeOut(function () {
558                jQuery(this).animate({"top":"-100%"},500);
559            });
560            jQuery(this).remove();
561        });
562    }
563
564
565    $("#show-signup").on('click', function(){
566        $(".sign-up-form").show();
567        $("#signup-title").show(); 
568        $("#login-title").hide();
569        $(".login-form-area").hide();
570    });    
571
572    $("#signup-cancel").on('click', function(){
573        $(".sign-up-form").hide();
574        $("#signup-title").hide(); 
575        $("#login-title").show();        
576        $(".login-form-area").show();
577    });
578
579}(jQuery));
580
581// set same height checkout review table and woocommerce-checkout-payment area
582jQuery(document).ajaxStop(function() {
583    if (jQuery(window).width() > 768 ){
584        var table_height = jQuery(".woocommerce-checkout-review-order-table").height();
585        if( table_height != null ){
586            table_height = table_height +2;
587            jQuery("#payment").height(table_height);  
588        }  
589    }
590});
591
592function add_btn(x){
593
594   jQuery("#f"+x+"").addClass('custom-form');
595   jQuery("#"+x+"").hide();
596   jQuery(".added_to_cart").hide();
597   jQuery("."+x+"").show();
598   jQuery("."+x+"").css({"top":"0 !important"});
599   jQuery(".wishlist_icon").css({"top":"0 !important"});
600   var dcart_count = parseInt(jQuery("#dcart_count").text());
601   var add_cart = parseInt(dcart_count)+1;
602   jQuery("#dcart_count").text(add_cart);   
603   
604}
605
606
607function denorious_check_form(){
608
609    var amount = jQuery("#amount").val();
610    var cbox = jQuery("#cbox").val();
611    var denorious_name = jQuery("#denorious_name").val();
612    var denorious_email = jQuery("#denorious_email").val();
613    var site_owner_email = jQuery("#business").val();
614    var denorious_address = jQuery("#denorious_address").val();
615    var denorious_phone_no = jQuery("#denorious_phone_no").val();
616    var denorious_country = jQuery("#denorious_country").val();
617    var denorious_city = jQuery("#denorious_city").val();
618    var denorious_zipcode = jQuery("#denorious_zipcode").val();
619
620    if(jQuery('.cbox').attr('checked')){
621
622    jQuery.ajax({
623         type: 'POST',
624         url: denorious_ajax.denorious_ajaxurl,
625         data: { "action": "sponsor_mail","d_type":cbox,"amount":
625amount,"denorious_name":denorious_name,"denorious_email":denorious_email,"site_owner_email":site_owner_email,"denorious_address":denorious_address,"denorious_phone_no":denorious_phone_no,"denorious_country":denorious_country,"denorious_city":denorious_city,"denorious_zipcode":denorious_zipcode},
626         success: function(data){
627
628         }
629    });
630    return true;
631
632    } else {
633        alert("Select Donation Frequency!");
634        return false;
635    }
636}
637
638
639function getNextMonth(){
640    jQuery(".calendar-inner").addClass("loading-calendar");
641    jQuery('#mySpinner').addClass('spinner');
642
643    var nextmonth = jQuery("#nextmonth").attr("month");  
644    var nextyear = jQuery("#nextmonth").attr("year");
645    jQuery.ajax({
646        type: 'POST',
647        url: denorious_ajax.denorious_ajaxurl,
648        data: { "action": "denorious_displaynextmonth","nextmonth":nextmonth,"nextyear":nextyear},
649        success: function(data){
650           jQuery(".calendar-inner").removeClass("loading-calendar");
651           jQuery('#mySpinner').removeClass('spinner');
652           jQuery("#calendar_area").html(data);
653        }
654    }); 
655}
656
657function getPrevMonth(){
658    jQuery(".calendar-inner").addClass("loading-calendar");
659    jQuery('#mySpinner').addClass('spinner');
660    var prevmonth = jQuery("#premonth").attr("month");  
661    var prevyear = jQuery("#premonth").attr("year"); 
662    jQuery.ajax({
663        type: 'POST',
664        url: denorious_ajax.denorious_ajaxurl,
665        data: { "action": "denorious_displaynextmonth","nextmonth":prevmonth,"nextyear":prevyear},
666        success: function(data){
667            jQuery(".calendar-inner").removeClass("loading-calendar");
668            jQuery('#mySpinner').removeClass('spinner');
669           jQuery("#calendar_area").html(data);
670        }
671    }); 
672}
673
674function event_search(e){
675    var search_text = jQuery("#search_event").val();
676    if(e.which == 13){
677        if( search_text !='' ){
678            jQuery(".calendar-inner").addClass("loading-calendar");
679            jQuery('#mySpinner').addClass('spinner');        
680            jQuery.ajax({
681                type: 'POST',
682                url: denorious_ajax.denorious_ajaxurl,
683                data: { "action": "denorious_eventsearch", "search_text":search_text},
684                success: function(data){
685                    jQuery(".calendar-inner").removeClass("loading-calendar");
686                    jQuery('#mySpinner').removeClass('spinner');
687                   jQuery("#calendar_area").html(data);
688                }
689            });
690        } else {
691            alert("Search text is required");
692            jQuery("#search_event").focus();
693        }
694    } 
695}
696
697
698// Offlien form button for donate 
699function Offline_Donate(){
700
701    var amount              = jQuery("#offline_payment_amount").val();
702    var denorious_name      = jQuery("#denorious_name").val();
703    var denorious_email     = jQuery("#denorious_email").val();
704    var site_owner_email    = jQuery("#business").val();
705    var denorious_message   = jQuery("#denoriouss_message").val();
706    var denorious_phone_no  = jQuery("#denorious_phone_no").val();
707
708    if( amount == "" ){
709        alert("Donation amount is required!");
710    } else if( denorious_name == "" ){
711        alert("Donor name is required!");
712    } else if( denorious_email == "" ){
713        alert("Donor email is required!");
714    } else if( denorious_phone_no == "" ){
715        alert("Donor phone number is required!"); 
716    } else {
717        jQuery("#offline_form").submit(); 
718        return true;          
719    }
720
721}
722
723function Offline_Donate2(){
724
725    var amount              = jQuery("#offline_payment_amount").val();
726    if( amount == "" ){
727        alert("Donation amount is required!");
728    } else {
729        jQuery("#offline_form").submit();
730        return true;        
731    }
732
733}

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.