lumbung.space/themes/lumbung-theme/layouts/_default/baseof.html

35 lines
1.0 KiB
HTML
Raw Normal View History

2021-12-15 10:29:58 +00:00
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode | default "en" }}">
{{- partial "head.html" . -}}
<body>
2022-01-14 09:56:10 +00:00
{{- partial "news-ticker.html" . -}}
2021-12-15 10:29:58 +00:00
{{- partial "header.html" . -}}
2022-01-13 08:22:22 +00:00
2021-12-15 10:29:58 +00:00
<div id="content">
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
2021-12-15 10:29:58 +00:00
{{- partial "footer.html" . -}}
</body>
<script>
function toggleDescription(id){
document.querySelector(id).classList.toggle("collapsed");
}
function loadPlayer(id, embed_path){
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();
}
</script>
</html>