pytron-web/views/html/base_html.pug

43 lines
2.0 KiB
Plaintext
Raw Normal View History

2019-03-20 16:52:01 +01:00
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')
block extracss
2019-03-27 09:35:11 +01:00
body.layout-documentation.page-components
2019-03-20 16:52:01 +01:00
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
2019-03-30 11:16:09 +01:00
a.navbar-item.is-size-6(href='https://gitea.tforgione.fr/tforgione/pytron')
strong Git repository
a.navbar-item.is-size-6(href='https://gitea.tforgione.fr/tforgione/pytron/wiki')
strong Wiki
2019-03-20 17:13:06 +01:00
a.navbar-item.is-size-6(href='/upload')
strong Upload your AI
2019-03-20 16:52:01 +01:00
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');
});
});
}
});
2019-03-28 11:36:32 +01:00
block extrajs