add: pairwise elo voting workflow
This commit is contained in:
421
rankings.html
421
rankings.html
@@ -28,7 +28,7 @@
|
||||
<header id="header">
|
||||
<img src="images/meow.gif" alt="meow" id="gifone">
|
||||
<h1>food power rankings</h1>
|
||||
<p>static Elo seeds for every meal before the head-to-head voting page exists.</p>
|
||||
<p>pick the better meal, one pair at a time, and the board updates live in this browser.</p>
|
||||
<p class="page-links">
|
||||
<a href="index.html">gallery</a>
|
||||
<span class="page-links__separator">/</span>
|
||||
@@ -36,9 +36,29 @@
|
||||
</p>
|
||||
</header>
|
||||
|
||||
<!-- Voting -->
|
||||
<section id="voting">
|
||||
<div class="voting-panel">
|
||||
<div class="voting-panel__intro">
|
||||
<p class="voting-panel__eyebrow">Head-To-Head Voting</p>
|
||||
<h2>Pick the winner.</h2>
|
||||
<p class="vote-status" id="vote-status" aria-live="polite">Enable JavaScript to save votes in this browser.</p>
|
||||
</div>
|
||||
<div class="voting-panel__actions">
|
||||
<button class="button small" id="skip-pair" type="button">skip pair</button>
|
||||
<button class="button small" id="reset-rankings" type="button">reset local votes</button>
|
||||
</div>
|
||||
<p class="vote-message" id="vote-message" aria-live="polite">Enable JavaScript to start head-to-head voting.</p>
|
||||
<div class="duel-grid" id="duel-cards">
|
||||
<p class="duel-placeholder">Enable JavaScript to compare meals here.</p>
|
||||
</div>
|
||||
<p class="vote-hint">Tip: use the left and right arrow keys to vote faster.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Rankings Summary -->
|
||||
<section id="rankings-summary">
|
||||
<p class="ranking-summary">33 meals seeded at Elo 1,000 until head-to-head voting starts.</p>
|
||||
<p class="ranking-summary">33 meals seeded at Elo 1,000. Enable JavaScript to vote and reorder them.</p>
|
||||
</section>
|
||||
|
||||
<!-- Rankings -->
|
||||
@@ -351,5 +371,402 @@
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
<script id="rankings-seed-data" type="application/json">
|
||||
{
|
||||
"meals": [
|
||||
{
|
||||
"id": "01",
|
||||
"thumbnail": {
|
||||
"focus": {
|
||||
"x": 0.35,
|
||||
"y": 0.5
|
||||
}
|
||||
},
|
||||
"position": "left center",
|
||||
"title": "sf on $10",
|
||||
"description": "this was so not real i can't believe technically u paid for our first meal back. calmluh 3 years after. first hang !!!! pork buns were yummy 7/10"
|
||||
},
|
||||
{
|
||||
"id": "02",
|
||||
"title": "honey butter chicken",
|
||||
"description": "the first thing you cooked for me ! so yum 10/10"
|
||||
},
|
||||
{
|
||||
"id": "03",
|
||||
"thumbnail": {
|
||||
"focus": {
|
||||
"x": 0.5,
|
||||
"y": 0.35
|
||||
}
|
||||
},
|
||||
"position": "top center",
|
||||
"title": "aloha fresh",
|
||||
"description": "we fucking love this place 10/10 i love poke i should have never quit pokehouse"
|
||||
},
|
||||
{
|
||||
"id": "04",
|
||||
"title": "mad yolks",
|
||||
"description": "for our santa cruz hang! u in my city now. so so good but lwk so so tax 9/10"
|
||||
},
|
||||
{
|
||||
"id": "05",
|
||||
"thumbnail": {
|
||||
"focus": {
|
||||
"x": 0.5,
|
||||
"y": 0.35
|
||||
}
|
||||
},
|
||||
"position": "top center",
|
||||
"title": "sizzling lunch",
|
||||
"description": "better than pepper lunch. server was being a little bitchy but i would be too if i was the only one working the front. 8/10"
|
||||
},
|
||||
{
|
||||
"id": "06",
|
||||
"title": "braised pork belly",
|
||||
"description": "omfg this is my favorite thing uve made 100/10"
|
||||
},
|
||||
{
|
||||
"id": "07",
|
||||
"title": "sushi w/ claire!",
|
||||
"description": "and then we played bananagrams. sushi 8/10 thanks for paying mommy"
|
||||
},
|
||||
{
|
||||
"id": "08",
|
||||
"title": "myungrang hot dog",
|
||||
"description": "main street tino nothing special 7/10"
|
||||
},
|
||||
{
|
||||
"id": "09",
|
||||
"title": "liangs village",
|
||||
"description": "my peoples food. 9/10"
|
||||
},
|
||||
{
|
||||
"id": "10",
|
||||
"title": "cabonara",
|
||||
"description": "insane safeway hang 9/10"
|
||||
},
|
||||
{
|
||||
"id": "11",
|
||||
"title": "heytea",
|
||||
"description": "this fuckass blue drink"
|
||||
},
|
||||
{
|
||||
"id": "12",
|
||||
"title": "sparcos",
|
||||
"description": "one of many.. 100/10"
|
||||
},
|
||||
{
|
||||
"id": "13",
|
||||
"title": "noahs bagels",
|
||||
"description": "this is the plaza where i used to go to all the time before school 9/10"
|
||||
},
|
||||
{
|
||||
"id": "14",
|
||||
"title": "homeroom",
|
||||
"description": "mac and cheese was gas. 10/10. you know its my fav comfort food. free the girl crying in the corner tho"
|
||||
},
|
||||
{
|
||||
"id": "15",
|
||||
"title": "sparcos x2",
|
||||
"description": "spartan tacos"
|
||||
},
|
||||
{
|
||||
"id": "16",
|
||||
"title": "sparcos x3",
|
||||
"description": "okay damn no way we got this b2b"
|
||||
},
|
||||
{
|
||||
"id": "17",
|
||||
"title": "aloha fresh",
|
||||
"description": "this is lowkey the spot poke always hits so fucking good"
|
||||
},
|
||||
{
|
||||
"id": "18",
|
||||
"title": "house of bagels",
|
||||
"description": "hobags ughgmmfmfm im such a fucking ho for hobags 100/10"
|
||||
},
|
||||
{
|
||||
"id": "19",
|
||||
"title": "toro sushi",
|
||||
"description": "carmel by the sea! we love sushi but tax 8/10"
|
||||
},
|
||||
{
|
||||
"id": "20",
|
||||
"title": "sul and beans",
|
||||
"description": "sweet treat -> claire dropping the most insane piece of information ever -> hti the yap"
|
||||
},
|
||||
{
|
||||
"id": "21",
|
||||
"title": "highland hand pulled noodles",
|
||||
"description": "so good and soooo filling 10/10. also my peoples food."
|
||||
},
|
||||
{
|
||||
"id": "22",
|
||||
"title": "bloom",
|
||||
"description": "even when its rich white people breakfast im getting salmon nox 10/10"
|
||||
},
|
||||
{
|
||||
"id": "23",
|
||||
"title": "happy donuts",
|
||||
"description": "1k cal meal 0 protein 10/10"
|
||||
},
|
||||
{
|
||||
"id": "24",
|
||||
"title": "marugame",
|
||||
"description": "i dont want to talk about this. 9/10"
|
||||
},
|
||||
{
|
||||
"id": "25",
|
||||
"title": "siam station!",
|
||||
"description": "i can't believe u didnt eat ur leftovers. 10/10"
|
||||
},
|
||||
{
|
||||
"id": "26",
|
||||
"title": "muukata 6395",
|
||||
"description": "for my birthday!! i love eating meat and i love you so perfect combination 1000/10"
|
||||
},
|
||||
{
|
||||
"id": "27",
|
||||
"title": "bambu",
|
||||
"description": "why was the store so nice. i wonder about the 4 sisters"
|
||||
},
|
||||
{
|
||||
"id": "28",
|
||||
"title": "porridge at julias",
|
||||
"description": "her boyfriend is so not real hes so stupid and funny. porridge was gas too i love eating free at julias 10/10"
|
||||
},
|
||||
{
|
||||
"id": "29",
|
||||
"title": "sparcos x4",
|
||||
"description": "spartan tacos. i was moody lol."
|
||||
},
|
||||
{
|
||||
"id": "30",
|
||||
"title": "wonton udon",
|
||||
"description": "i helped wrap the wontons w/ u !!! super fun and super yummy 10/10"
|
||||
},
|
||||
{
|
||||
"id": "31",
|
||||
"title": "steak dinna for vday",
|
||||
"description": "marry me? yes. 100/10 best valentines day ever"
|
||||
},
|
||||
{
|
||||
"id": "32",
|
||||
"title": "poke house",
|
||||
"description": "poke house 3 years later 9/10 but +1 point bc its basically free"
|
||||
},
|
||||
{
|
||||
"id": "33",
|
||||
"title": "hey tea",
|
||||
"description": "mochi yinje black milk tea ts was actually so buss 10/10 only boba i've ever wanted to get again myself"
|
||||
}
|
||||
],
|
||||
"elo": {
|
||||
"defaultRating": 1000,
|
||||
"kFactor": 32,
|
||||
"entries": [
|
||||
{
|
||||
"id": "01",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "02",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "03",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "04",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "05",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "06",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "07",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "08",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "09",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "10",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "11",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "12",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "13",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "14",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "15",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "16",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "17",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "18",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "19",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "20",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "21",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "22",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "23",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "24",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "25",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "26",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "27",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "28",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "29",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "30",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "31",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "32",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
},
|
||||
{
|
||||
"id": "33",
|
||||
"rating": 1000,
|
||||
"wins": 0,
|
||||
"losses": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script src="assets/js/rankings.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user