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

52 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>
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/blink.css">
2020-11-19 16:54:58 +00:00
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<script src="javascript/chaffle.min.js"></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) {
var chaffle = new Chaffle(el, {
delay: 200
})
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>