1function dw_donations(){var token=$('#token').val();$.ajax({type:'POST',url:'../modules_extra/donation_widget/ajax/actions.php',data:'phpaction=1&load_donations=1&token='+token,success:function(html){$('#dw_donations').empty();$('#dw_donations').append(html);}});} 2function dw_donate(onError=(result)=>{$('#dw_result').html('<div class="dw-message dw-message-error"><i class="fas fa-exclamation-triangle dw-message-icon"></i><span class="dw-message-text">'+result+'</span></div>');},onSuccess=(result)=>{$('#dw_result').html('<div class="dw-message dw-message-success"><i class="fas fa-check-circle dw-message-icon"></i><span class="dw-message-text">'+result+'</span></div>');}){NProgress.start();var token=$('#token').val();var amount=$('#dw_amount').val();amount=encodeURIComponent(amount);if($('#dw_comment').length){var comment=$('#dw_comment').val();comment=encodeURIComponent(comment);}else{comment='';} 3$('#send_button_donate').prop('disabled',true);$.ajax({type:'POST',url:'../modules_extra/donation_widget/ajax/actions.php',data:'phpaction=1&donate=1&token='+token+'&amount='+amount+'&comment='+comment,dataType:'json',success:function(result){$('#send_button_donate').prop('disabled',false);$('#dw_result').fadeIn();NProgress.done();if(result.status==2){setTimeout(show_error,500);onError(result.info);} 4if(result.status==3){setTimeout(show_ok,500);onSuccess(result.info);$('#balance').html(result.shilings);} 5setTimeout(()=>{$('#dw_result').fadeOut()},3000);}});} 6function dw_edit_raising(field){var token=$('#token').val();var id=$('#dw_raising').val();var value=$('#dw_'+field).val();id=encodeURIComponent(id);value=encodeURIComponent(value);if(id==0){$('#dw_edit_'+field+'_result').html('<p class="text-danger">ÐÑбеÑиÑе ÑбоÑ!</p>').show();setTimeout(function(){$('#dw_edit_'+field+'_result').fadeOut();},2000);return;} 7$.ajax({type:'POST',url:'../modules_extra/donation_widget/ajax/actions_panel.php',data:'phpaction=1&edit_value=1&token='+token+'&field='+field+'&value='+value+'&id='+id,success:function(html){$('#dw_edit_'+field+'_result').html(html).show();setTimeout(function(){$('#dw_edit_'+field+'_result').fadeOut();},2000);setTimeout(dw_load_raisings,1000);}});} 8function dw_load_raisings(){var token=$('#token').val();$.ajax({type:'POST',url:'../modules_extra/donation_widget/ajax/actions_panel.php',data:'phpaction=1&load_raisings=1&token='+token,success:function(html){$('#dw_raising').html(html);}});} 9function dw_load_raising_info(){var token=$('#token').val();var id=$('#dw_raising').val();id=encodeURIComponent(id);$.ajax({type:'POST',url:'../modules_extra/donation_widget/ajax/actions_panel.php',data:'phpaction=1&load_raising_info=1&token='+token+'&id='+id,dataType:'json',success:function(result){if(result.status==1){$('#dw_message').val(result.message);$('#dw_target').val(result.target);$('#dw_stopdate').val(result.stopdate);} 10if(result.status==2){$('#dw_message').empty();$('#dw_target').empty();$('#dw_stopdate').empty();$('#dw_edit_raising_result').empty();$('#dw_edit_raising_result').append('<p class="text-danger">'+result.info+'</p>').show();setTimeout(function(){$('#dw_edit_raising_result').fadeOut();},2000);}}});} 11function dw_raising_act(action){var token=$('#token').val();var id=$('#dw_raising').val();id=encodeURIComponent(id);$.ajax({type:'POST',url:'../modules_extra/donation_widget/ajax/actions_panel.php',data:'phpaction=1&raising_act=1&token='+token+'&action='+action+'&id='+id,success:function(html){$('#dw_edit_raising_result').html(html).show();setTimeout(function(){$('#dw_edit_raising_result').fadeOut();},2000);setTimeout(dw_load_raisings,1000);}});} 12function dw_change_value(field){var value=$('#dw_'+field).val();dw_change_config_value(field,value);$('#dw_edit_'+field+'_result').empty();$('#dw_edit_'+field+'_result').append('<p class="text-success">Ðзменено!</p>').show();setTimeout(function(){$('#dw_edit_'+field+'_result').fadeOut();},2000);if(field=='raising'){setTimeout(dw_load_raisings,1000);}} 13function dw_change_config_value(attr,value){var token=$('#token').val();value=encodeURIComponent(value);attr=encodeURIComponent(attr);$.ajax({type:"POST",url:'../modules_extra/donation_widget/ajax/actions_panel.php',data:"phpaction=1&token="+token+"&change_config_value=1&attr="+attr+"&value="+value,success:function(html){}});} 14function dw_open_merchants_modal(){let amount=$('#dw_amount').val();$('#dw_merchant_amount').val(amount);let comment=$('#dw_comment').length?($('#dw_comment').val()||'').trim():'';if(!empty(comment)){$('#dw_merchant_comment_text').text(comment);$('#dw_merchant_comment_display').show();}else{$('#dw_merchant_comment_display').hide();} 15$('#dw_merchant_result').empty();$('#dw_merchant_details').hide();$('#dw_merchants_list').html('<div class="dw-loader">ÐагÑÑзка...</div>');let token=$('#token').val();$.ajax({type:'POST',url:'../modules_extra/donation_widget/ajax/actions.php',data:'phpaction=1&load_merchants=1&token='+token,success:function(html){if(html.trim()===''){html='<div class="dw-loader">ÐÐµÑ Ð´Ð¾ÑÑÑпнÑÑ ÑпоÑобов оплаÑÑ</div>'} 16$('#dw_merchants_list').html(html);},});$('#dw_merchants_modal').modal('show');} 17function dw_select_merchant(slug){$('.merchant-card').removeClass('selected');$('.merchant-card[data-merchant="'+slug+'"]').addClass('selected');let $card=$('.merchant-card[data-merchant="'+slug+'"]');let title=$card.find('.merchant-title').text();let desc=$card.find('.merchant-desc').text();$('#dw_selected_merchant_name').text(title);$('#dw_selected_merchant_desc').text(desc);$('#dw_merchant_details').show();window.dw_selected_merchant=slug;} 18function dw_process_merchant_payment(onError=(result)=>{$('#dw_merchant_result').html('<div class="dw-message dw-message-error"><i class="fas fa-exclamation-triangle dw-message-icon"></i><span class="dw-message-text">'+result+'</span></div>');}){if(!window.dw_selected_merchant){$('#dw_merchant_result').html('<div class="dw-message dw-message-error"><i class="fas fa-exclamation-triangle dw-message-icon"></i><span class="dw-message-text">ÐÑбеÑиÑе ÑпоÑоб оплаÑÑ!</span></div>');return;} 19NProgress.start();let amount=$('#dw_merchant_amount').val();let comment=$('#dw_comment').length?$('#dw_comment').val():'';let token=$('#token').val();amount=encodeURIComponent(amount);comment=encodeURIComponent(comment);$('#dw_merchant_pay_btn').prop('disabled',true);$.ajax({type:'POST',url:'../modules_extra/donation_widget/ajax/actions.php',data:'phpaction=1&donate=1&token='+token+'&amount='+amount+'&comment='+comment+'&merchant='+window.dw_selected_merchant,dataType:'json',success:function(result){NProgress.done();$('#dw_merchant_pay_btn').prop('disabled',false);
19if(result.status==1){$('#dw_merchant_result').html(result.form);setTimeout(function(){$('#dw_merchants_modal').modal('hide');setTimeout(dw_donations,1000);},500);} 20if(result.status==2){onError(result.info)}}});}
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.