Commit b55f7b1a authored by Guus Hoekman's avatar Guus Hoekman

js files on data.canntables.com

parent 41f8797c
Pipeline #49727754 passed with stage
in 1 minute and 29 seconds
......@@ -4,7 +4,7 @@
<div class="column">
<i class="far fa-fw fa-duck"></i> Made by <a href="https://guushoekman.com">Guus Hoekman</a>
<br>
<a class="button is-info coffee" href="https://ko-fi.com/guushoekman">
<a class="button is-info coffee" href="https://liberapay.com/guus/donate">
<span class="icon">
<i class="fas fa-mug-hot"></i>
</span>
......
......@@ -47,7 +47,12 @@ layout: base
</div>
</section>
<script src="/js/{{ page.season | replace: '/', '-' }}/{{ page.code }}.js"></script>
{% if page.latest %}
<script src="https://data.canntables.com/{{ page.code }}.js"></script>
{% else %}
<script src="/js/{{ page.season | replace: '/', '-' }}/{{ page.code }}.js"></script>
{% endif %}
<script>
var league = {{ page.code }};
</script>
......
......@@ -46,7 +46,11 @@ layout: base
</script>
{% for league in page.leagues %}
<script src="/js/{{ page.season | replace: '/', '-' }}/{{ league.code }}.js"></script>
{% if page.latest %}
<script src="https://data.canntables.com/{{ league.code }}.js"></script>
{% else %}
<script src="/js/{{ page.season | replace: '/', '-' }}/{{ league.code }}.js"></script>
{% endif %}
<script>leagues.push({{league.code}})</script>
{% endfor %}
......
......@@ -81,13 +81,13 @@ title: Home
</section>
</article>
<script src="/js/2018-19/de.js"></script>
<script src="/js/2018-19/en.js"></script>
<script src="/js/2018-19/es.js"></script>
<script src="/js/2018-19/fr.js"></script>
<script src="/js/2018-19/it.js"></script>
<script src="/js/2018-19/nl.js"></script>
<script src="/js/2018-19/pt.js"></script>
<script src="https://data.canntables.com/de.js"></script>
<script src="https://data.canntables.com/en.js"></script>
<script src="https://data.canntables.com/es.js"></script>
<script src="https://data.canntables.com/fr.js"></script>
<script src="https://data.canntables.com/it.js"></script>
<script src="https://data.canntables.com/nl.js"></script>
<script src="https://data.canntables.com/pt.js"></script>
<script>
var leagues = [de, en, es, fr, it, nl, pt];
var season = "2018-19";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment