Hi, can you modify this script so it is even better functionality than its current, and…
- User
Hi, can you modify this script so it is even better functionality than its current, and lets focus on making it optimized for mobile use, as single script that is initialized via web console on iphone browser and injected into the current page. improve the ui, and add features that could be more useful to the menu. make sure to give it a vast amount of settings and make it practical for use. var popupHtml = `
var currentSeed = nextSeedResult.data.currentSeedHash; var nextSeedId = nextSeedResult.data.nextSeedHash; var nounce = nextSeedResult.data.currentSeedHash.maxNonce;
await DoSeedChange(nextSeedId.clientSeed, "KenoSingle", nextSeedId.seedId); }
function InitializeCommonVariables() { SetGameObject(); HandleUISettings(); initializeHtml(); $(".divContentContainer").draggable({ appendTo: "body", zIndex: 1000, }); }
function SetGameObject() { gameObject = dg; }
function initializeHtml() { $("body").append(popupHtml); }
var lastHit = []; var isLastHitInitialized = false; var startingBalance = 0;
function InitializeLastHitVariable() { for (j = 0; j < 40; j++) { lastHit.push({ number: j + 1, gamesSinceLastHit: 0, numberOfTimesHit: 0 }); } }
dg.on("betEnd", (r) => { AddGameResultsToLastHit(dg.myBets[0].gameValue.result); ColorBasedOnHitHouse(); let profitAmount = r.amount * r.odds - r.amount; VaultWin(profitAmount); });
function AddGameResultsToLastHit(gameResults) { let results = gameResults.split(",");
if (results < 10) { console.log("Something is wrong there should always be 10 numbers picked."); }
lastHit.sort(function (a, b) { return a.number - b.number; });
for (i = 0; i < 40; i++) { let number = lastHit[i].number.toString();
codeif (results.includes(number)) { lastHit[i].gamesSinceLastHit = 0; lastHit[i].numberOfTimesHit += 1; } else { lastHit[i].gamesSinceLastHit += 1; }} }
function ColorBasedOnHitHouse() { if ($("#rbColdMap")[0].checked) { lastHit.forEach(function (item) { let cellId = "num" + item.number.toString(); let colorValue = 255 - item.gamesSinceLastHit * 5; let rgbstring = "rgb(" + [colorValue, colorValue, 255].join(",") + ")"; document.getElementById(cellId).style.backgroundColor = rgbstring; }); } else { lastHit.forEach(function (item) { let cellId = "num" + item.number.toString(); let colorValue = 255 - item.numberOfTimesHit * 5; let rgbstring = "rgb(" + [255, colorValue, colorValue].join(",") + ")"; document.getElementById(cellId).style.backgroundColor = rgbstring; }); } }
function InitializeLastHitFromHistory() { let startingIndex = dg.myBets.length - 1;
while (startingIndex >= 0) { if (dg.myBets[startingIndex] != null) { AddGameResultsToLastHit(dg.myBets[startingIndex].gameValue.result); }
- Assistant