29 lines
No EOL
774 B
HTML
29 lines
No EOL
774 B
HTML
{% extends "!page.html" %}
|
|
|
|
{% block footer %}
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$(".toggle > *").hide();
|
|
$(".toggle .header").show();
|
|
$(".toggle .header").click(function() {
|
|
$(this).parent().children().not(".header").toggle(400);
|
|
$(this).parent().children(".header").toggleClass("open");
|
|
})
|
|
});
|
|
</script>
|
|
{% endblock %}
|
|
|
|
{% block header %}
|
|
<script type="text/javascript">
|
|
|
|
$(window).scroll(function () {
|
|
var s = $(window).scrollTop(),
|
|
d = $(document).height(),
|
|
c = $(window).height();
|
|
scrollPercent = (s / (d-c)) * 100;
|
|
var position = scrollPercent;
|
|
|
|
$("#progressbar").attr('value', position);
|
|
});
|
|
</script>
|
|
{% endblock %} |