123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <title>{{ title }}</title>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=2">
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
- <script src="./js/shCore.js" type="text/javascript"></script>
- <script src="./js/shBrushPython.js" type="text/javascript"></script>
- <script src="./js/shBrushPlain.js" type="text/javascript"></script>
- <link href="./css/shCore.css" rel="stylesheet" type="text/css" />
- <link href="./css/shThemeDefault.css" rel="stylesheet" type="text/css" />
- <script src="./js/shAutoloader.js" type="text/javascript"></script>
- <script type="text/x-mathjax-config">
- MathJax.Hub.Config({
- config: ["MMLorHTML.js"],
- jax: ["input/TeX", "output/HTML-CSS", "output/NativeMML"],
- extensions: ["MathMenu.js", "MathZoom.js"]
- });
- </script>
- <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_HTML-full"> </script>
- <style>
- .modal-dialog {width:90%;}
- .thumbnail {margin-bottom:6px;}
- .modal-title {text-align:center;}
- .figure-container {
- max-width:35%;
- padding-bottom: 0px;
- }
- .main-content {
- padding-left: 30px;
- padding-right: 30px;
- }
- .panel-group {
- margin-bottom: 0px;
- }
- </style>
- </head>
- <body>
- <div class="container-fluid">
- <div class="row">
- <a href="./" class="button"> Go Up <span class="glyphicon glyphicon-circle-arrow-left"></span> </a>
- </div>
- <div class="row main-content">
- {% block body %}
- <h3>No body supplied</h3>
- {% endblock %}
- </div>
- <div class="row">
- <div class="col-12-lg">
- <div class="panel-group" id="accordion">
- <div class="panel-heading">
- <h4 class="panel-title" style="text-align:center">
- {% if config %}
- <button data-toggle="collapse" data-parent="#accordion" class="btn btn-default" href="#collapseConfig">Analysis Configuration</button>
- {% endif %}
- {% if source %}
- <button data-toggle="collapse" data-parent="#accordion" class="btn btn-default" href="#collapseSrc">Report Source Code</button>
- {% endif %}
- {% if ana_source %}
- <a class="btn btn-default" href="{{ ana_source }}" target="_blank">Analysis Source Code</a>
- {% endif %}
- </h4>
- </div>
- {% if config %}
- <div id="collapseConfig" class="panel-collapse collapse">
- <div class="panel-body">
- <script type="syntaxhighlighter" class="brush: plain"><![CDATA[ {{ config|safe}} ]]></script>
- </div>
- </div>
- {% endif %}
- {% if source %}
- <div id="collapseSrc" class="panel-collapse collapse">
- <div class="panel-body">
- <script type="syntaxhighlighter" class="brush: python"><![CDATA[ {{ source|safe}} ]]></script>
- </div>
- </div>
- {% endif %}
- </div>
- </div>
- </div>
- </div>
- <div id="myModal" class="modal fade" tabindex="-1" role="dialog">
- <div class="modal-dialog modal-lg">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal">×</button>
- <h3 class="modal-title">Heading</h3>
- </div>
- <div class="modal-body"> </div>
- </div>
- </div>
- </div>
- </body>
- <script>
- $('.thumbnail').click(function(){
- $('.modal-body').empty();
- var title = $(this).parent('a').attr("title");
- $('.modal-title').html(title);
- $($(this).parents('div').html()).appendTo('.modal-body');
- $('#myModal').modal({show:true});
- });
- SyntaxHighlighter.all()
- </script>
- </html>
|