2021-12-15 10:29:58 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="{{ .Site.LanguageCode | default "en" }}">
|
|
|
|
{{- partial "head.html" . -}}
|
|
|
|
<body>
|
|
|
|
{{- partial "header.html" . -}}
|
2022-01-13 08:22:22 +00:00
|
|
|
|
2022-04-13 06:36:03 +00:00
|
|
|
<div class="container">
|
2022-01-13 08:22:22 +00:00
|
|
|
{{- block "main" . }}{{- end }}
|
2021-12-15 10:29:58 +00:00
|
|
|
</div>
|
2022-01-13 08:22:22 +00:00
|
|
|
|
2022-02-02 11:22:48 +00:00
|
|
|
{{- partial "news-ticker.html" . -}}
|
2021-12-15 10:29:58 +00:00
|
|
|
{{- partial "footer.html" . -}}
|
|
|
|
</body>
|
|
|
|
<script>
|
2022-04-13 17:54:07 +00:00
|
|
|
function toggleDescription(id) {
|
2021-12-15 10:29:58 +00:00
|
|
|
document.querySelector(id).classList.toggle("collapsed");
|
|
|
|
}
|
2022-04-13 17:54:07 +00:00
|
|
|
|
|
|
|
function loadPlayer(id, embed_path) {
|
2021-12-15 10:29:58 +00:00
|
|
|
media = document.querySelector('#media-'+ id)
|
|
|
|
|
|
|
|
var iframe = document.createElement('iframe');
|
|
|
|
iframe.src = embed_path + '?autoplay=1&title=0';
|
|
|
|
iframe.width = 560;
|
|
|
|
iframe.height = 315;
|
|
|
|
iframe.frameBorder = 0;
|
|
|
|
iframe.sandbox = "allow-same-origin allow-scripts allow-popups" ;
|
|
|
|
media.appendChild(iframe);
|
|
|
|
document.querySelector('#thumb-'+ id).remove();
|
|
|
|
}
|
2022-04-13 17:54:07 +00:00
|
|
|
|
2022-04-13 17:58:57 +00:00
|
|
|
// remove box around "previous" page nav link (couldn't handle this with CSS nth-child)
|
2022-05-25 12:20:53 +00:00
|
|
|
if (document.querySelector('[aria-label="Previous"]')) {
|
|
|
|
document.querySelector('[aria-label="Previous"]').parentElement.classList.add('previous-page-link')
|
|
|
|
}
|
2022-04-13 07:21:20 +00:00
|
|
|
// for toggling submenus in mobile navigation drawer
|
|
|
|
let submenuLinks = document.querySelectorAll('.drawer .has-submenu');
|
2022-04-13 17:50:24 +00:00
|
|
|
[...submenuLinks].forEach(submenuLink => {
|
|
|
|
submenuLink.addEventListener('click', function() {
|
2022-04-13 07:21:20 +00:00
|
|
|
submenuLink.querySelector('.submenu').classList.toggle('opened')
|
|
|
|
})
|
|
|
|
})
|
2022-05-25 12:20:53 +00:00
|
|
|
|
|
|
|
// add classes for styling lumbung kios and lumbung gallery cards
|
|
|
|
let cards = document.querySelectorAll('.shout.card');
|
|
|
|
[...cards].forEach(card => {
|
2022-06-21 08:57:21 +00:00
|
|
|
if (card.querySelector('a[href="/tags/lumbungkios"]') || card.querySelector('a[href="/tags/lumbungkiosproducts"]')) {
|
2022-05-25 12:20:53 +00:00
|
|
|
card.classList.add('lumbung-kios')
|
|
|
|
} else if (card.querySelector('a[href="/tags/lumbunggallery"]')) {
|
|
|
|
card.classList.add('lumbung-gallery')
|
|
|
|
}
|
|
|
|
})
|
2022-06-14 14:24:24 +00:00
|
|
|
|
|
|
|
// footer random color
|
|
|
|
var color = ['orange','green','blue'];
|
|
|
|
var footer = document.getElementById("footer");
|
|
|
|
var rand = Math.floor(Math.random() * color.length);
|
|
|
|
footer.classList.add(color[rand]);
|
2021-12-15 10:29:58 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
</html>
|
|
|
|
|