This repository has been archived on 2023-03-14. You can view files and clone it, but cannot push or open issues or pull requests.
personal-website-old/pages/_includes/layout.njk

45 lines
1.1 KiB
Plaintext
Raw Normal View History

---
---
2020-11-19 14:49:52 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ title }}</title>
<link rel="stylesheet" href="/css/design.css">
<script src="javascript/chaffle.min.js"></script>
2020-11-19 14:49:52 +00:00
</head>
<body>
<header>
<span data-chaffle-onload="", data-chaffle="en", style="width: 170px; display: block;">{{ username }}</span>
</header>
2020-11-19 14:49:52 +00:00
{{ content | safe }}
<footer>
&copy; {% year %} {{ username }}
</footer>
<script>
var elements = document.querySelectorAll('[data-chaffle]');
var elm = document.querySelectorAll('[data-chaffle-onLoad]');
Array.prototype.forEach.call(elements, function (el) {
var chaffle = new Chaffle(el)
el.addEventListener('mouseover', function () {
chaffle.init();
});
});
Array.prototype.forEach.call(elm, function (el) {
var chaffle = new Chaffle(el, {
delay: 200
})
chaffle.init();
});
</script>
2020-11-19 14:49:52 +00:00
</body>
2020-11-19 14:49:52 +00:00
</html>