0% found this document useful (0 votes)
67 views1 page

S

This document contains JavaScript code that: 1) Defines a Crop function to truncate floating point numbers to a specified number of decimal places. 2) Sets interval timers to randomly generate multiplier digits every second until a result is displayed, then displays fixed test values and updates the stored and displayed balance amount. 3) Checks the stored balance from localStorage and displays it after the result is shown.

Uploaded by

Deepankumar S
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
0% found this document useful (0 votes)
67 views1 page

S

This document contains JavaScript code that: 1) Defines a Crop function to truncate floating point numbers to a specified number of decimal places. 2) Sets interval timers to randomly generate multiplier digits every second until a result is displayed, then displays fixed test values and updates the stored and displayed balance amount. 3) Checks the stored balance from localStorage and displays it after the result is shown.

Uploaded by

Deepankumar S
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/ 1

console.

info("Activated script");
Number.prototype.Crop = function(x) {
var s = this + "",
a = s.split(".");
a[1] = a[1] || "";
return parseFloat(a[0] + "." + a[1].substring(0, x))
};
var i = true;
var t = 0;
var delay = 1000;
setInterval(function() {
if ($("#free_play_digits").css("display") != "none") {
t++;
if (delay > t && $("#free_play_result").css("display") == "none") {
$("#multiplier_first_digit").html(Math.floor(Math.random() * 10));
$("#multiplier_second_digit").html(Math.floor(Math.random() * 10));
$("#multiplier_third_digit").html(Math.floor(Math.random() * 10));
$("#multiplier_fourth_digit").html(Math.floor(Math.random() * 10));
$("#multiplier_fifth_digit").html(Math.floor(Math.random() * 10))
} else {
$("#free_play_first_digit").html(1);
$("#free_play_second_digit").html(0);
$("#free_play_third_digit").html(0);
$("#free_play_fourth_digit").html(0);
$("#free_play_fifth_digit").html(0);
$("#winnings").html($(".br_0_0_5_0")[0].innerHTML.split("")[0]);
if (i) {
i = false;
var number = parseFloat($("#balance").html()) + parseFloat($
(".br_0_0_5_0")[0].innerHTML.split("")[0]);
number = number.Crop(8);
localStorage.balance = number;
$("#balance").html(number)
}
}
}

if (i == false) {
$("#balance").html(localStorage.balance)
}
}, 1)

You might also like