prevent "endless loading"

This commit is contained in:
Arne Schauf 2013-09-29 21:20:07 +02:00
parent 9495c75701
commit 8d1a1a80c1

View File

@ -96,12 +96,6 @@
</p> </p>
</div> </div>
</div> </div>
<div style="display: none">
<img src="//{{ WWW_IPV4_HOST }}/detectip/{{ request.session.session_key }}/" />
<img src="//{{ WWW_IPV6_HOST }}/detectip/{{ request.session.session_key }}/" />
</div>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
{% if ENABLE_PIWIK_PRODUCTION %} {% if ENABLE_PIWIK_PRODUCTION %}
<!-- Piwik --> <!-- Piwik -->
@ -123,5 +117,16 @@
</script> </script>
<!-- End Piwik Code --> <!-- End Piwik Code -->
{% endif %} {% endif %}
<div style="display: none">
<img id="v4_img" />
<img id="v6_img" />
<script type="text/javascript">
function insert_src() {
$('#v4_img').attr('src', "//{{ WWW_IPV4_HOST }}/detectip/{{ request.session.session_key }}/");
$('#v6_img').attr('src', "//{{ WWW_IPV6_HOST }}/detectip/{{ request.session.session_key }}/");
};
$(setTimeout("insert_src()", 1000));
</script>
</div>
</body> </body>
</html> </html>