5 Commits

Author SHA1 Message Date
Matt Godbolt
b658e25f6f Support colour background for think-cell (#6223) 2024-03-05 20:11:28 -06:00
Matt Godbolt
ba215bdc37 Support a new sponsor layout (#6063) 2024-01-29 22:16:14 -06:00
Matt Godbolt
cfb3dc54c7 Sponsorship changes (#4274)
Rotate sponsors on the top of the page:
- `topIcon` -> `topIconShowEvery`
- `Sponsors` becomes an interface with methods to get levels, pick sponsors etc
- A somewhat acceptable algorithm for generating a "fair choice" of sponsors given the constraints:
  - "show at least 1 in N times"
  - don't unfairly show one sponsor more than any other at the same level
 - Sponsor icons are loaded dynamically via a "bits" handler (introducing a short delay in them appearing), but this means the index.html doesn't change on every load, so it's still cacheable
2022-11-13 10:35:39 -06:00
Matt Godbolt
ca0bfdf22b Support multiple sponsor descripts (#4200)
* Support multiple sponsor descripts
2022-10-26 07:33:48 -05:00
Matt Godbolt
c8e8a80760 Convert sponsor.js to sponsor.js, update tests to be more targeted. (#4199)
* Convert sponsor.js to sponsor.js, update tests to be more targeted.

Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es>
2022-10-25 18:20:16 -05:00