Small visual changes to stats page

This commit is contained in:
Daniël van Noord
2021-02-20 20:20:53 +01:00
parent 894f4359cd
commit db19976e3e
3 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@@ -201,7 +201,7 @@ CM.Cache.MaxChainCookieReward = function(digit, maxPayout, mult) {
let chain = 1 + Math.max(0, Math.ceil(Math.log(Game.cookies) / Math.LN10) - 10);
while (nextMoni < maxPayout) {
moni = Math.max(digit, Math.min(Math.floor(1 / 9 * Math.pow(10, chain) * digit * mult), maxPayout));
// TODO: Calculate Cookies or cps needed for next level of chain. Related to issue #580
// TODO: Calculate Cookies or cps needed for next level of chain. See issue #29
nextMoni = Math.max(digit, Math.min(Math.floor(1 / 9 * Math.pow(10, chain + 1) * digit * mult), maxPayout));
totalFromChain += moni;
chain++;

View File

@@ -2408,7 +2408,8 @@ CM.Disp.CreateStatsListing = function(type, name, text, placeholder) {
div.appendChild(listingName);
if (type === "withTooltip") {
div.className = 'listing';
div.appendChild(document.createTextNode(' '));
let tooltip = document.createElement('span');
tooltip.onmouseout = function() { Game.tooltip.hide(); };
tooltip.onmouseover = function() {Game.tooltip.draw(this, escape(CM.Disp[placeholder].innerHTML));};
@@ -2424,7 +2425,6 @@ CM.Disp.CreateStatsListing = function(type, name, text, placeholder) {
tooltip.style.verticalAlign = 'bottom';
tooltip.textContent = '?';
div.appendChild(tooltip);
div.appendChild(document.createTextNode(' '));
}
div.appendChild(document.createTextNode(': '));
div.appendChild(text);