tombola-bde-2020/templates/tombola.html

36 lines
727 B
HTML

{% extends "base.html" %}
{% load i18n static %}
{% block extracss %}
<meta name="turbolinks-cache-control" content="no-preview">
{% endblock %}
{% block content %}
{% endblock %}
{% block extrajavascript %}
<script>
var reloadWithTurbolinks = (function () {
var scrollPosition
function reload () {
scrollPosition = [window.scrollX, window.scrollY]
Turbolinks.visit(window.location.toString(), { action: 'replace' })
}
document.addEventListener('turbolinks:load', function () {
if (scrollPosition) {
window.scrollTo.apply(window, scrollPosition)
scrollPosition = null
}
})
return reload
})()
setTimeout(function(){ reloadWithTurbolinks(); }, 2000);
</script>
{% endblock %}