Git Product home page Git Product logo

alphabet's Introduction

alphabet's People

Contributors

weiseng18 avatar

Watchers

 avatar

alphabet's Issues

"gaps" in <thead> of #printerUpgrades

#printerUpgrades is a HTML table, that contains a list of upgrades (levelling up functionality to be added in the future). As the table is too tall, it cannot fit fully inside #menuContent, the parent element. This was fixed by setting overflow-y: auto on #menuContent. This also makes sense from a general perspective for the other tabs in #menuContent.

However, the table's header row will be hidden if the user scrolls down. As such, it would be best to "freeze" the top row. This is currently done by position: sticky, which works as intended. However, there seems to be a 2px gap, that isn't padding or margin, and it is transparent, allowing things "below" it to be seen.

The following gif shows the behaviour of scrolling inside #printerUpgrades:

output

Some upgrade text can be seen in the gaps of the top row.

Notification flooding exploit

Inside Game.run(), the Game.print() function is executed every 5 seconds (or shorter depending on the upgrade). However, if there has not been a successful print in the past 5 seconds (or shorter depending on the upgrade), the Game.print() function will execute every tick.

If there is insufficient ink/paper, the Game.print() function will trigger a notification to inform the user. From the above paragraph, this would cause the notification to keep triggering every tick. As such, in the code, there is a check to compare the last notification and the new notification. If it is the same, then a duplicate notification is not displayed. However, if another type of notification is triggered, then the insufficient ink/paper notification will keep triggering every tick, which can lead to flooding the notifications area.

output

This issue only occurs when there is insufficient ink or paper.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.