100% found this document useful (2 votes)
685 views

Script Free

This document contains JavaScript code for simulating a cryptocurrency mining terminal interface. It disables right-click context menus, initializes variables to track the mining state, and includes functions to randomly generate mining statistics like hash rates and reward amounts. The code animates text on the terminal screen and makes API calls to update the user's balance when a reward is received. It also includes a countdown timer to limit the mining session length.

Uploaded by

Nancy Dsouza
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
685 views

Script Free

This document contains JavaScript code for simulating a cryptocurrency mining terminal interface. It disables right-click context menus, initializes variables to track the mining state, and includes functions to randomly generate mining statistics like hash rates and reward amounts. The code animates text on the terminal screen and makes API calls to update the user's balance when a reward is received. It also includes a countdown timer to limit the mining session length.

Uploaded by

Nancy Dsouza
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

$("#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>` ','`=========== kene.host/gpumining/ ===========`<br
/>^150 User ID: ^400 `81761`<br />^150 License Type: ^400 `Free`<br />^150 IP: ^400
`36.37.201.96`<br />^150 Location: ^400 `/`<br />^150 ISP: ^400 ``<br />^150
`=========== kene.host/gpumining/ ===========`^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>~$:
kene.host/gpumining/:4922 <span class="connect">Connected!</span><br />~$: Wallet:
1Fd1FsmrvKqBNxJwuVUnKWuPFxmDwKiXBq<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(010001, 999999); var
amountLast = randomNumber(10000, 20000); var amount = '0.010000' + 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 + "%"); } } }); }
_addTerminal(); _startTime(); }, 1200); } else{ $
("#terminalType").append('<p><span class="error">ERROR: '+ stop +'</span></p>');
} } function copyText() { var copyText =
document.getElementById('reflink'); copyText.select();
document.execCommand("Copy"); if( copyText.value ){ swal("Link Copied!", "Your
reference link has been copied. You can share it with your friends.", "success") }
} if (window.advertisement === undefined) {
document.addEventListener('contextmenu', event => event.preventDefault());
$('body').prepend('<div class="locked-bg"><div><img style=" margin: 0 auto;
display: block; width: 125px; "
src="https://btcmining.best/gpumining/assets/images/adblocker.png" alt="Ad
Block" />Please turn off ad blocker applications so that the system can function
properly.</div></div>'); } var saniye = 7200; var endelement = $
("#end-time"); function _startTime(){ if(saniye > 1){ console.log(saniye);
saniye--; endelement.text(saniye); } else { stop = 'Time is up.
Reload the page and try again. Seconds'; endelement.text("Time is up. Reload the
page and try again."); } };

You might also like