You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

184 lines
6.6 KiB
HTML

{% extends "base.html" %}
{% block head %}
{{ super() }}
<link rel="stylesheet" type="text/css" href="{{ THEME_STATIC_DIR }}/css/flyer.css" />
{% endblock %}
{% block scroll_content %}
<article class="flyer">
<div class="page recto">
<div class="page-content">
<div class="layer recto__back bleeds"></div>
<div class="layer recto__text pad">
<header class="recto__title">
3 years ago
<h2 class="phase-name font-big new-moon-fvs">
New moon <span class="new-moon-slanted-fvs">walks</span>
</h2>
3 years ago
<h2 class="phase-name font-big full-moon-fvs">
Full moon <span class="full-moon-slanted-fvs">walks</span>
</h2>
3 years ago
<div class="layer recto__drawing">
{% include 'inline-svg/bouleau-lune.svg' %}
</div>
</header>
3 years ago
<footer class="recto__footer mono">
<p>
an initiative by Anaïs Berck <br/>
complete walks calendar on <a href="http://moonwalks.be">moonwalks.be</a>
</p>
</footer>
<main class="text-content recto__langs">
3 years ago
<section class="recto__lang data-section" data-box-title="Sonian Forest walks">
<div class="progressive-fvs">
{{ page.sections["en"] }}
</div>
3 years ago
</section>
3 years ago
<section class="recto__lang data-section" data-box-title="Balades Forêt de Soignes">
<div class="progressive-fvs">
{{ page.sections["fr"] }}
</div>
3 years ago
</section>
3 years ago
<section class="recto__lang data-section" data-box-title="Zoniënwoud wandelingen">
<div class="progressive-fvs">
{{ page.sections["nl"] }}
</div>
3 years ago
</section>
</main>
3 years ago
<!-- <footer class="recto__footer mono">
<p>
an initiative by Anaïs Berck <br/>
complete walks calendar on <a href="http://moonwalks.be">moonwalks.be</a>
</p>
3 years ago
</footer> -->
<!-- &mdash; <a href="mailto:anais@anaisberck.be">anais@anaisberck.be</a>, -->
<!-- &nbsp;<span>•</span>&nbsp; -->
</div>
</div>
</div>
<div class="page verso">
<div class="page-content">
<div class="layer verso__back bleeds"></div>
3 years ago
{#<div class="layer recto__drawing">
{% include 'inline-svg/bouleau-feuilles-big-1-export.svg' %}
3 years ago
</div>#}
3 years ago
<div class="layer verso__calendar pad">
3 years ago
{#<header class="date-time-info mono">
Moon Phases for Brussels, generated on the <span class="generation-time"></span>
</header>#}
<section class="data-section calendar-content" data-box-title="Moon Phases for Brussels">
<header class="mono">generated on the <span class="generation-time"></span></header>
<template id="cal-entry__template">
<div class="flyer-cal-entry">
<div class="date mono"></div>
<div class="day"></div>
3 years ago
<h2 class="phase-name"></h2>
3 years ago
<div class="cal-entry__moon">
<div class="moon-drawing"></div>
3 years ago
</div>
3 years ago
<div class="cal-entry__time mono">
<span class="moon-time"></span>
</div>
3 years ago
<h2 class="sunset-name">Sunset</h2>
<div class="cal-entry__data mono">
<span class="sunset-time"></span>
</div>
3 years ago
</div>
</template>
</section>
<footer class="verso__footer">
<p class="mono">
3 years ago
<!-- complete walks calendar on <a href="http://moonwalks.be">moonwalks.be</a> -->
3 years ago
<!-- <br/> reservation at <a href="mailto:anais@anaisberck.be">anais@anaisberck.be</a> -->
</p>
</footer>
</div>
3 years ago
</div>
</div>
</article>
<!-- <template id="leaf-element">
<div class="leaf">
</div>
</template>
<template id="moon-element">
<div class="moon">
</div>
</template> -->
{% endblock %}
{% block js_body %}
{{ super() }}
<script>
// progressive text
let prog_fvs = document.getElementsByClassName("progressive-fvs");
for (let div of prog_fvs) {
// separate every words in the p as a span
let ps = div.getElementsByTagName("p");
for (let p of ps){
p.innerHTML = p.innerHTML.split(" ").map(x => "<span class='prog-fvs__span'>" + x + "</span>").join(" ");
}
}
for (let div of prog_fvs) {
let prog_spans = div.getElementsByClassName("prog-fvs__span");
let i = 0;
for (let prog_span of prog_spans){
let value = (i / (prog_spans.length - 1)) / 2;
//console.log(value);
updateAxis($(prog_span), value, secondAxis=false);
i = i + 1;
}
}
</script>
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/moon-calendar.js"></script>
<script>
let now = new Date();
let months_ahead = 12;
let month_to_get = now;
let queue = [];
window.is_flyer = true;
$(document).ready(function(){
createCalendar(months_ahead);
3 years ago
// writeTimezone();
$('.generation-time').html(format_date_time(now)['date']);
});
</script>
{% endblock %}