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

50 lines
1.4 KiB
Plaintext
Raw Normal View History

---
username: Laureηt
---
2020-11-19 16:44:48 +00:00
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">
2020-11-19 16:44:48 +00:00
<title>{{ username }}</title>
2020-11-19 19:11:50 +00:00
<link rel="stylesheet" href="{{ '/css/main.css' | url }}">
<link rel="stylesheet" href="{{ '/css/blink.css' | url }}">
<link rel="shortcut icon" type="image/x-icon" href="{{ '/favicon.ico' | url }}">
<script src="{{ '/javascript/chaffle.min.js' | url }}"></script>
2020-11-19 14:49:52 +00:00
</head>
<body>
<header>
2020-11-19 17:04:17 +00:00
<span data-chaffle-onload="" data-chaffle="en">{{ username }}</span>
2020-11-19 16:44:48 +00:00
<span class="blink" style="display:inline;">_</span>
</header>
2020-11-19 14:49:52 +00:00
{{ content | safe }}
<footer>
&copy; {% year %} {{ username }}
</footer>
<script>
2020-11-19 17:11:07 +00:00
var elm_mouseover = document.querySelectorAll('[data-chaffle]');
var elm_onload = document.querySelectorAll('[data-chaffle-onLoad]');
2020-11-19 17:11:07 +00:00
Array.prototype.forEach.call(elm_mouseover, function (el) {
var chaffle = new Chaffle(el)
el.addEventListener('mouseover', function () {
chaffle.init();
});
});
2020-11-19 17:11:07 +00:00
Array.prototype.forEach.call(elm_onload, function (el) {
2020-11-20 13:08:34 +00:00
var chaffle = new Chaffle(el)
chaffle.init();
2020-11-19 17:11:07 +00:00
setInterval(function(){
chaffle.init();
}, 10000)
});
</script>
2020-11-19 14:49:52 +00:00
</body>
2020-11-19 14:49:52 +00:00
</html>