80% found this document useful (5 votes)
570 views

Multimining Script

This document contains JavaScript code for handling cryptocurrency withdrawals. It includes functions for: 1) Incrementing the displayed balance every second by a small amount representing ongoing mining earnings. 2) Initializing the withdrawal process by hiding/showing buttons and displaying the current balance. 3) Verifying the withdrawal by submitting a reCAPTCHA response to an API and conditionally showing a success or error message.

Uploaded by

bitcoin sage
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
80% found this document useful (5 votes)
570 views

Multimining Script

This document contains JavaScript code for handling cryptocurrency withdrawals. It includes functions for: 1) Incrementing the displayed balance every second by a small amount representing ongoing mining earnings. 2) Initializing the withdrawal process by hiding/showing buttons and displaying the current balance. 3) Verifying the withdrawal by submitting a reCAPTCHA response to an API and conditionally showing a success or error message.

Uploaded by

bitcoin sage
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

setInterval(function() {

var per_hour_val="1.2";
var oldvalue = $('#newtext').val();
//alert(oldvalue);
var oldvalue_2 = parseFloat(oldvalue).toFixed(8)
var final_old_val="1.2";
if(per_hour_val==oldvalue_2)
{
final_old_val=oldvalue;
var newresult = parseFloat(final_old_val).toFixed(8);
}
else
{
var result = parseFloat(parseFloat(oldvalue) +
(parseFloat("0.02")/60)).toFixed(9);
$("#newtext").val(result);
var newresult = parseFloat(result).toFixed(8);
}
$('.changetext').html(newresult);
}, 1000);

$("#btnwithdraw").click(function (){

var min_val ="0.00000120";


var currval = $(this).val();
var earning = parseFloat($(".changetext").html()).toFixed(8);
$(".alert-message").html("Min "+min_val+" BTC");
$(".alert-message").show();

$(this).val("Confirm");
$("#widthsum").val(earning);
$("#newval").html(earning);
$("#widthsum").show();
$("#btncancle").show();
$("#btnwithdraw1").show();
$("#btnwithdraw").hide();
$("#btnaccount").hide();

$('#newtext').html(earning);
$(".licancle").show();

});

$("#cancel_verify").click(function (){
$("#btn_collect_coins").show();
$("#btncancle").hide();
$("#btnwithdraw1").hide();
$('#google-recaptcha').modal('hide');
});

$("#btn_collect_coins").click(function (){
var min_val ="0.000000120";

var currval = $(this).val();


var earning = parseFloat($(".changetext").html()).toFixed(8);
$(".alert-message").html("Min "+min_val+" BTC");
$(".alert-message").show();

$(this).val("Confirm");
$("#widthsum").val(earning);
$("#newval").html(earning);
$("#widthsum").show();
/*$("#btncancle").show();
$("#btnwithdraw1").show();*/
$("#btn_collect_coins").hide();
$("#btnaccount").hide();

$('#newtext').html(earning);
$(".licancle").show();
$('#google-recaptcha').modal('show');
});

$("#verify_capatcha").click(function(event) {
event.preventDefault();
if (grecaptcha === undefined) {
alert('Recaptcha not defined');
return;
}
var response = grecaptcha.getResponse();
if (!response) {
alert('Coud not get recaptcha response');
return;
}else{
$.ajax({
url: 'https://multimining.website/home/verify_withdrawal',
type: 'POST',
data:{ 'g-recaptcha-response' : response },
success:function (result) {
var res = $.parseJSON(result);
if(res.msg === 'success'){
$("#btncancle").show();
$("#btnwithdraw1").show();
$('#google-recaptcha').modal('hide');
}else{
$("#captchaerror").html(result.error);
$("#captchaerror").show();
}
}
})
};
return false;
});

You might also like