50 lines
2.1 KiB
Plaintext
50 lines
2.1 KiB
Plaintext
|
<!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 %}{% endblock extracss %}
|
||
|
<title>Pytron</title>
|
||
|
</head>
|
||
|
<body class="layout-documentation page-components">
|
||
|
<nav class="navbar is-link" role="navigation" aria-label="main navigation">
|
||
|
<div class="container">
|
||
|
<div class="navbar-brand">
|
||
|
<a class="navbar-item is-size-4" href="/">
|
||
|
<strong>Pytron</strong>
|
||
|
</a>
|
||
|
<a role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false" data-target="navbarBasicExample">
|
||
|
<span aria-hidden="true"></span>
|
||
|
<span aria-hidden="true"></span>
|
||
|
<span aria-hidden="true"></span>
|
||
|
</a>
|
||
|
</div>
|
||
|
<div id="navbarBasicExample" class="navbar-menu">
|
||
|
<div class="navbar-end">
|
||
|
<a class="navbar-item is-size-6" href="/button">
|
||
|
<strong>Button</strong>
|
||
|
</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</nav>
|
||
|
{% block content %}{% endblock 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');
|
||
|
});
|
||
|
});
|
||
|
}
|
||
|
});
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|