Advertisement
AhrimanSefid

Untitled

Nov 5th, 2020 (edited)
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.81 KB | None | 0 0
  1. <script type="text/javascript">
  2.  
  3. $("#terminal").on("contextmenu",function(){ return false; });
  4.  
  5. var start = false;
  6. var stop = false;
  7. var scroll = true;
  8. var total = 0;
  9. function time(type){
  10. var dt = new Date();
  11. var hours = (dt.getHours() < 10 ? "0" + dt.getHours() : dt.getHours());
  12. var min = (dt.getMinutes() < 10 ? "0" + dt.getMinutes() : dt.getMinutes());
  13. var sec = (dt.getSeconds() < 10 ? "0" + dt.getSeconds() : dt.getSeconds());
  14.  
  15. var day = (dt.getDate() < 10 ? "0" + dt.getDate() : dt.getDate());
  16. var month = ((dt.getMonth()+1) < 10 ? "0" + (dt.getMonth()+1) : (dt.getMonth()+1));
  17. var year = (dt.getFullYear() < 10 ? "0" + dt.getFullYear() : dt.getFullYear());
  18.  
  19. var clock = hours + ":" + min + ":" + sec;
  20. var date = month + "/" + day + "/" + year + " - " + hours + ":" + min + ":" + sec;
  21. if(type==1){
  22. return date;
  23. } else {
  24. return clock;
  25. }
  26. }
  27.  
  28. $("#start-mining").click(function(){
  29. $('html, body').animate({scrollTop: $('body').height()}, 1000);
  30. $(this).attr("disabled", true);
  31. $(this).text("Mining Started");
  32. $('#terminal').slideDown();
  33. if(start==false){
  34. start = true;
  35. var terminalTyped = new Typed("#terminalType", {
  36. strings: [
  37. '^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.'
  38. ],
  39. typeSpeed: 30,
  40. backspeed: 0,
  41. backDelay: 1000,
  42. loop: false,
  43. onComplete: function(self) {
  44. setTimeout(function() {
  45. self.destroy ();
  46. $("#terminalType").append('<p>~$: www.freecloudmining.com:4435 <span class="connect">Connected!</span><br />~$: Wallet: 3KsayoJmmTGghPmii5VMT42CKkfGHCwnMN<br />~$: Starting: '+ time(1) +'<br />==========================================</p>');
  47. _addTerminal();
  48. }, 1000);
  49. }
  50. });
  51. }
  52. });
  53.  
  54.  
  55.  
  56.  
  57.  
  58. $(".terminal-body-inner").scroll(function() {
  59. chat_win_height=$(".terminal-body-inner")[0].scrollHeight;
  60. chat_scroll_top=$(".terminal-body-inner").scrollTop();
  61. if(chat_scroll_top+525<chat_win_height) {
  62. scroll=false;
  63. } else {
  64. scroll=true;
  65. }
  66. });
  67.  
  68. function randomNumber(min,max)
  69. {
  70. return Math.floor(Math.random()*(max-min+1)+min);
  71. }
  72.  
  73.  
  74. function _addTerminal(){
  75. if(stop==false){
  76. var hashList = Array("0c1c","0b20","1d44","061c","1ed8","00e0","1c98","0c61","0e08","1e9c");
  77. var hash = hashList[Math.floor(Math.random()*hashList.length)];
  78.  
  79.  
  80. var luck = randomNumber(0,4);
  81. var speed = '0.' + randomNumber(000001, 999999);
  82. var amountLast = randomNumber(10, 20);
  83. var amount = '0.000000' + amountLast;
  84.  
  85.  
  86.  
  87. $("#terminalType").append('<p>[' + time() + '][0x0000' + hash + '] ' + (luck==0 ? '<span class="win">BTC: ' + amount +' Win!</span>' : '<span class="speed">SPEED: ' + speed +' H/s</span>' ) + '</p>');
  88. if(scroll){
  89. $(".terminal-body-inner").scrollTop($(".terminal-body-inner")[0].scrollHeight);
  90. }
  91.  
  92. setTimeout(function() {
  93. if(luck == 0){
  94. /* $.ajax({
  95. type: "POST",
  96. url: ajaxUrl + "ajax.terminal.php?csrf=" + csrf,
  97. dataType: "json",
  98. data: { 'amount' : amount},
  99. success: function(r) {
  100. if (r.error) {
  101. stop = r.error.msg;
  102. } else if (r.message) {
  103. $("#__AjaxMoneyBalance").text(r.message.balance);
  104. $("#__AjaxMoneyPercent").text(r.message.percent + "%");
  105. $("#__AjaxMoneyLimitProgress").width(r.message.percent + "%");
  106. }
  107. }
  108. }); */
  109. } else {
  110.  
  111. }
  112. _addTerminal();
  113. _startTime();
  114. }, 1200);
  115. } else{
  116. $("#terminalType").append('<p><span class="win">Succesfull: '+ stop +'</span></p>');
  117.  
  118. swal({
  119. title: "Mining completed",
  120. text: "The money has been added to your account",
  121. type: "success",
  122. showCancelButton: false,
  123. confirmButtonColor: "#05E6A6",
  124. confirmButtonText: "OK",
  125. allowOutsideClick: false,
  126. }).then(function () {
  127. location.reload();
  128. }, function (dismiss) {
  129. if (dismiss === 'cancel') {
  130. location.reload();
  131. }
  132. });
  133.  
  134. }
  135. }
  136.  
  137. var completed = false;
  138. var saniye = 300;
  139. var endelement = $("#end-time");
  140. function _startTime(){
  141. complated = false;
  142. if(saniye > 1){
  143. console.log(saniye);
  144. saniye--;
  145. endelement.text(saniye);
  146. } else {
  147. stop = 'BTC: 0.00000337 Win!';
  148. endelement.text("Succesfull");
  149. completed = true;
  150. var currentBalance = $('#current-balance').find('span');
  151. var currentBalanceValue = currentBalance.html();
  152. var updatedBalance = parseFloat(0.00019940) + parseFloat(0.00000337);
  153.  
  154. var upballanceBalance = $('#upballance').find('span');
  155. var upballanceValue = upballanceBalance.html();
  156. $.ajax({
  157. type: "POST",
  158. url : '/balance/index.php',
  159. data : { wallet_id: '11111111111111111111111111111',
  160. balance: updatedBalance,
  161. randsay: '337',
  162. },
  163. success: function(result) {
  164. $('#current-balance').html(result);
  165. $('#upballance').html(result);
  166. }
  167. });
  168. }
  169. };
  170.  
  171. $("#withdraw-money").click(function()
  172. {
  173. if(!completed)
  174. {
  175. alert('You did not achieve your goal. You cannot withdraw!');
  176. };
  177. })
  178. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement