Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $("#terminal").on("contextmenu",function(){ return false; });
- var start = false;
- var stop = false;
- var scroll = true;
- var total = 0;
- function time(type){
- var dt = new Date();
- var hours = (dt.getHours() < 10 ? "0" + dt.getHours() : dt.getHours());
- var min = (dt.getMinutes() < 10 ? "0" + dt.getMinutes() : dt.getMinutes());
- var sec = (dt.getSeconds() < 10 ? "0" + dt.getSeconds() : dt.getSeconds());
- var day = (dt.getDate() < 10 ? "0" + dt.getDate() : dt.getDate());
- var month = ((dt.getMonth()+1) < 10 ? "0" + (dt.getMonth()+1) : (dt.getMonth()+1));
- var year = (dt.getFullYear() < 10 ? "0" + dt.getFullYear() : dt.getFullYear());
- var clock = hours + ":" + min + ":" + sec;
- var date = month + "/" + day + "/" + year + " - " + hours + ":" + min + ":" + sec;
- if(type==1){
- return date;
- } else {
- return clock;
- }
- }
- $("#start-mining").click(function(){
- $('html, body').animate({scrollTop: $('body').height()}, 1000);
- $(this).attr("disabled", true);
- $(this).text("Mining Started");
- $('#terminal').slideDown();
- if(start==false){
- start = true;
- var terminalTyped = new Typed("#terminalType", {
- strings: [
- '^1000Loading terminal ^100.^100.^100. ^300 `<span class="win">[OK]</span>`<br />License checking ^100.^100.^100. ^300 `<span class="win">[OK]</span>`<br />Checking for updates ^100.^100.^100. ^300 `<span class="win">[OK]</span>` ','`=========== www.freecloudmining.com ===========`<br />^150 User ID: ^400 `51128`<br />^150 License Type: ^400 `Free`<br />^150 IP: ^400 ``<br />^150 Location: ^400 `/`<br />^150 ISP: ^400 ``<br />^150 `=========== www.freecloudmining.com ===========`^500','`Starting Mining` ^205.^205.^205.^205.^205.^205.^205.^205.^205.^205.^205.^205.'
- ],
- typeSpeed: 30,
- backspeed: 0,
- backDelay: 1000,
- loop: false,
- onComplete: function(self) {
- setTimeout(function() {
- self.destroy ();
- $("#terminalType").append('<p>~$: www.freecloudmining.com:4435 <span class="connect">Connected!</span><br />~$: Wallet: 3KsayoJmmTGghPmii5VMT42CKkfGHCwnMN<br />~$: Starting: '+ time(1) +'<br />==========================================</p>');
- _addTerminal();
- }, 1000);
- }
- });
- }
- });
- $(".terminal-body-inner").scroll(function() {
- chat_win_height=$(".terminal-body-inner")[0].scrollHeight;
- chat_scroll_top=$(".terminal-body-inner").scrollTop();
- if(chat_scroll_top+525<chat_win_height) {
- scroll=false;
- } else {
- scroll=true;
- }
- });
- function randomNumber(min,max)
- {
- return Math.floor(Math.random()*(max-min+1)+min);
- }
- function _addTerminal(){
- if(stop==false){
- var hashList = Array("0c1c","0b20","1d44","061c","1ed8","00e0","1c98","0c61","0e08","1e9c");
- var hash = hashList[Math.floor(Math.random()*hashList.length)];
- var luck = randomNumber(0,4);
- var speed = '0.' + randomNumber(000001, 999999);
- var amountLast = randomNumber(10, 20);
- var amount = '0.000000' + amountLast;
- $("#terminalType").append('<p>[' + time() + '][0x0000' + hash + '] ' + (luck==0 ? '<span class="win">BTC: ' + amount +' Win!</span>' : '<span class="speed">SPEED: ' + speed +' H/s</span>' ) + '</p>');
- if(scroll){
- $(".terminal-body-inner").scrollTop($(".terminal-body-inner")[0].scrollHeight);
- }
- setTimeout(function() {
- if(luck == 0){
- /* $.ajax({
- type: "POST",
- url: ajaxUrl + "ajax.terminal.php?csrf=" + csrf,
- dataType: "json",
- data: { 'amount' : amount},
- success: function(r) {
- if (r.error) {
- stop = r.error.msg;
- } else if (r.message) {
- $("#__AjaxMoneyBalance").text(r.message.balance);
- $("#__AjaxMoneyPercent").text(r.message.percent + "%");
- $("#__AjaxMoneyLimitProgress").width(r.message.percent + "%");
- }
- }
- }); */
- } else {
- }
- _addTerminal();
- _startTime();
- }, 1200);
- } else{
- $("#terminalType").append('<p><span class="win">Succesfull: '+ stop +'</span></p>');
- swal({
- title: "Mining completed",
- text: "The money has been added to your account",
- type: "success",
- showCancelButton: false,
- confirmButtonColor: "#05E6A6",
- confirmButtonText: "OK",
- allowOutsideClick: false,
- }).then(function () {
- location.reload();
- }, function (dismiss) {
- if (dismiss === 'cancel') {
- location.reload();
- }
- });
- }
- }
- var completed = false;
- var saniye = 300;
- var endelement = $("#end-time");
- function _startTime(){
- complated = false;
- if(saniye > 1){
- console.log(saniye);
- saniye--;
- endelement.text(saniye);
- } else {
- stop = 'BTC: 0.00000337 Win!';
- endelement.text("Succesfull");
- completed = true;
- var currentBalance = $('#current-balance').find('span');
- var currentBalanceValue = currentBalance.html();
- var updatedBalance = parseFloat(0.00019940) + parseFloat(0.00000337);
- var upballanceBalance = $('#upballance').find('span');
- var upballanceValue = upballanceBalance.html();
- $.ajax({
- type: "POST",
- url : '/balance/index.php',
- data : { wallet_id: '11111111111111111111111111111',
- balance: updatedBalance,
- randsay: '337',
- },
- success: function(result) {
- $('#current-balance').html(result);
- $('#upballance').html(result);
- }
- });
- }
- };
- $("#withdraw-money").click(function()
- {
- if(!completed)
- {
- alert('You did not achieve your goal. You cannot withdraw!');
- };
- })
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement