Skip to content

Instantly share code, notes, and snippets.

@trigfa
Forked from gabraganca/output_toggle_html.tpl
Created February 13, 2014 17:43
Show Gist options
  • Save trigfa/8980105 to your computer and use it in GitHub Desktop.
Save trigfa/8980105 to your computer and use it in GitHub Desktop.
{%- extends 'html_full.tpl' -%}
{% block input_group -%}
<div class="input_hidden">
{{ super() }}
</div>
{% endblock input_group %}
{%- block header -%}
{{ super() }}
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<style type="text/css">
//div.output_wrapper {
// margin-top: 0px;
//}
.input_hidden {
display: none;
// margin-top: 5px;
}
div.prompt {
display: none;
}
.CodeMirror{
font-family: "Consolas", sans-serif;
}
pre, code, kbd, samp {
font-family: Consolas, monospace;
font-size: 100px;
}
p {font-size:14px;}
div.cell{
max-width:80%;
margin-left:auto;
margin-right:auto;
}
div.text_cell_render{
max-width:90%;
margin-left:auto;
margin-right:auto;
}
</style>
<script>
$(document).ready(function(){
$(".output_wrapper").click(function(){
$(this).prev('.input_hidden').slideToggle();
});
})
</script>
{%- endblock header -%}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment