🏙   Various Exam Exercises                  🌀   Home Page    

In [1]:
%%html
<style>
@import url('https://fonts.googleapis.com/css?family=Orbitron|Roboto');
body {background-color:#CBE5FA;}
h1,h3 {color:#3883C2; font-family:Orbitron; text-shadow:4px 4px 4px #aaa;}
h2,summary {color:#346187; font-family:Orbitron; text-shadow:4px 4px 4px #aaa;}
h4,a {color:#slategray; font-family:Roboto;}
div.input_prompt {color:white} 
div.text_cell_render {color:slategray}
span {text-shadow:4px 4px 4px #ccc;}   
</style>
<script>
code_show=true; 
function code_display() {
    if (code_show) {
        $('div.input').each(function(id) {
            if (id==0 || $(this).html().indexOf('hide_code')>-1) {$(this).hide();}
        });
        $('div.output_prompt').css('opacity',0);
    } else {
        $('div.input').each(function(id) {$(this).show();});
        $('div.output_prompt').css('opacity',1);
    };
    code_show=!code_show;
} 
$(document).ready(code_display);
</script>
<form action="javascript: code_display()">
<input style="color:slategray; font-family:Orbitron; background:#CBE5FA; opacity:.8;" \ 
type="submit" value="click to display or hide code cells">
</form>