mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-04 19:40:55 -06:00
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
8 lines
314 B
Plaintext
8 lines
314 B
Plaintext
div.ces-level-selectors.d-flex.justify-content-center.mt-3
|
|
div.btn-group.btn-group
|
|
each level, index in sponsors.getLevels()
|
|
button.btn.btn-primary(onclick='document.getElementById("ces_hop_' + index + '").scrollIntoView({behavior:"smooth"});')=level.name
|
|
|
|
block content
|
|
include sponsors-content.pug
|