|
|
@ -52,14 +52,16 @@ |
|
|
|
{# TODELETE #} |
|
|
|
<script> |
|
|
|
{% for p in problemy %} |
|
|
|
diplayed{{ forloop.counter }} = false; |
|
|
|
$(".podproblem{{ forloop.counter }}").css("display", "none") |
|
|
|
$("#problem{{ forloop.counter }}")[0].addEventListener('mouseover', podproblem{{ forloop.counter }}) |
|
|
|
$("#problem{{ forloop.counter }}")[0].addEventListener('mouseout', podproblem{{ forloop.counter }}end) |
|
|
|
$("#problem{{ forloop.counter }}")[0].addEventListener('click', podproblem{{ forloop.counter }}); |
|
|
|
function podproblem{{ forloop.counter }}(event) { |
|
|
|
$(".podproblem{{ forloop.counter }}").css("display", "") |
|
|
|
diplayed{{ forloop.counter }} = !diplayed{{ forloop.counter }}; |
|
|
|
if (diplayed{{ forloop.counter }}) { |
|
|
|
$(".podproblem{{ forloop.counter }}").css("display", ""); |
|
|
|
} else { |
|
|
|
$(".podproblem{{ forloop.counter }}").css("display", "none"); |
|
|
|
} |
|
|
|
function podproblem{{ forloop.counter }}end(event) { |
|
|
|
$(".podproblem{{ forloop.counter }}").css("display", "none") |
|
|
|
} |
|
|
|
{% endfor %} |
|
|
|
</script> |
|
|
|