Created
August 5, 2014 14:23
-
-
Save anonymous/98d13f3d23d2a73f162c to your computer and use it in GitHub Desktop.
content_viewer_rsr.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% load base_tags %} | |
<div id="links" class="links"> | |
<form action="{% url 'answer-samootvod' %}" method="post"> | |
{% csrf_token %} | |
<input type="submit" class="btn btn-sm btn-default btn" value="Отказаться от олимпиады" /> | |
</form> | |
{% if answer.tasks.count == 1 and answer.tasks.all.0.measure_file_info %} | |
<a class="btn btn-default btn-sm" href="{{ answer.tasks.all.0.measure_file_info.url }}" target="_blank" alt="Pаспечатать задание и критерии" title="Pаспечатать задание и критерии"> | |
<i class="fa fa-print"></i> | |
Pаспечатать задание и критерии | |
</a> | |
{% endif %} | |
<hr/> | |
<div class="assignment job-reader well well-sm clearfix"> | |
<div class="screen"> | |
<div class="management-control"> | |
<div class="navigation navigation-top"> | |
{% if answer.tasks.count == 1 and answer.tasks.all.0.measure_file_info %} | |
<a class="btn btn-default btn-sm" href="{{ answer.tasks.all.0.measure_file_info.url }}" target="_blank" alt="Pаспечатать задание и критерии" title="Pаспечатать задание и критерии"><i class="fa fa-print"></i></a> | |
{% endif %} | |
</div> | |
</div> | |
<div class="base"> | |
{% for f in answer.media_urls %} | |
{% if '.html' in f %} | |
<div class="wrapper-answer" style="height: auto;"> | |
<iframe src="{{ f }}" onload="resizeIframe{{ forloop.counter }}()" id="iframe{{ forloop.counter }}" frameborder="0" class="answer frame" style="width:100%;"></iframe> | |
<script type="text/javascript"> | |
function resizeIframe{{ forloop.counter }}() { | |
var the_height = parseInt(document.getElementById('iframe{{ forloop.counter }}').contentWindow.document.body.scrollHeight, 10); | |
document.getElementById('iframe{{ forloop.counter }}').height = the_height; | |
} | |
</script> | |
</div> | |
{% if not forloop.last %} | |
<hr /> | |
{% endif %} | |
{% endif %} | |
{% endfor %} | |
</div> | |
</div> | |
</div> | |
<div class="blank"></div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment