Move away from rust 😢

This commit is contained in:
2019-03-20 16:52:01 +01:00
parent f3393ef7f5
commit 28d28433f8
11 changed files with 932 additions and 268 deletions
+37
View File
@@ -0,0 +1,37 @@
doctype html
html(lang='en')
head
meta(charset='utf-8')
meta(name='viewport', content='width=device-width, initial-scale=1, shrink-to-fit=no')
link(rel='stylesheet', href='/static/main.css')
body.layout-documentation.page-components
block extracss
title Pytron
nav.navbar.is-link(role='navigation', aria-label='main navigation')
.container
.navbar-brand
a.navbar-item.is-size-4(href='/')
strong Pytron
a.navbar-burger.burger(role='button', aria-label='menu', aria-expanded='false', data-target='navbarBasicExample')
span(aria-hidden='true')
span(aria-hidden='true')
span(aria-hidden='true')
#navbarBasicExample.navbar-menu
.navbar-end
a.navbar-item.is-size-6(href='/button')
strong Button
block content
script.
document.addEventListener('DOMContentLoaded', () => {
const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
if ($navbarBurgers.length > 0) {
$navbarBurgers.forEach( el => {
el.addEventListener('click', () => {
const target = el.dataset.target;
const $target = document.getElementById(target);
el.classList.toggle('is-active');
$target.classList.toggle('is-active');
});
});
}
});
+41
View File
@@ -0,0 +1,41 @@
extends base
block content
section.section
.container
.columns.is-centered
.column.is-narrow.is-desktop
table.table.is-bordered.is-striped.is-narrow.is-hoverable
tr
th
for ai in ais
th.has-text-centered= ai
th.has-text-centered.has-text-success ✓
th.has-text-centered.has-text-danger ✗
for ai1 in ais
tr
th.has-text-centered= ai1
for ai2 in ais
if ai1 == ai2
td
else
td.has-text-success= battles[ai1 + "/" + ai2]
td.has-text-centered
strong= 0
td.has-text-centered
strong= 0
.column.is-narrow.is-desktop
table.table.is-bordered.is-striped.is-hoverable
tr
th.has-text-centered AI
th.has-text-centered Score
for ai in ais
tr
td.has-text-centered
strong= ai
td.has-text-centered
strong 0