Some bootstrapping

This commit is contained in:
2013-09-10 10:11:48 +10:00
parent 6057e403f6
commit 7f099bfca4

View File

@@ -1,3 +1,4 @@
{% load url from future %}
{% load static %} {% load static %}
{% load dajaxice_templatetags %} {% load dajaxice_templatetags %}
@@ -5,11 +6,12 @@
<head> <head>
<title>3D Sample Viewer</title> <title>3D Sample Viewer</title>
<link href="{% static "three_d_viewer/css/bootstrap.css" %}" rel="stylesheet"> <link href="{% static "three_d_viewer/css/bootstrap.min.css" %}" rel="stylesheet" media="screen">
<script type="text/javascript" src="{% static "three_d_viewer/lzma.js" %}"></script> <script type="text/javascript" src="{% static "three_d_viewer/lzma.js" %}"></script>
<script type="text/javascript" src="{% static "three_d_viewer/ctm.js" %}"></script> <script type="text/javascript" src="{% static "three_d_viewer/ctm.js" %}"></script>
<script type="text/javascript" src="{% static "three_d_viewer/glMatrix-0.9.5.min.js" %}"></script> <script type="text/javascript" src="{% static "three_d_viewer/glMatrix-0.9.5.min.js" %}"></script>
<script type="text/javascript" src="{% static "three_d_viewer/jquery-2.0.3.js" %}"></script> <script type="text/javascript" src="{% static "three_d_viewer/jquery-2.0.3.js" %}"></script>
<script type="text/javascript" srv="{% static "three_d_viewer/js/bootstrap.min.js" %}"></script>
{% dajaxice_js_import %} {% dajaxice_js_import %}
<script id="shader-vs" type="x-shader/x-vertex"> <script id="shader-vs" type="x-shader/x-vertex">
@@ -370,24 +372,28 @@ function my_callback(data){
</head> </head>
<body onload="load();"> <body onload="load();">
<div class="page-header"> <div class="container">
<div class="page-header">
<h1>{{ sample.name }}</h1> <h1>{{ sample.name }}</h1>
<p class="lead">{{ sample.description }}</p> <p class="lead">{{ sample.description }}</p>
</div> </div>
<center>
<canvas id="canvas" style="border: 1px dotted #bfbfbf;" width=933 height="700"></canvas>
<div><span id="progress" style="color: red"></span></br>
</div>
</center>
{% if sample.questions %} <div class="row">
<div class="col-md-4">
{% if sample.questions %}
{{ sample.questions.all.0 }}<br> {{ sample.questions.all.0 }}<br>
{% for answer in sample.questions.all.0.answers.all %} {% for answer in sample.questions.all.0.answers.all %}
<input type="radio" name="answer" value={{answer.id}}>{{ answer}}</input><br> <input type="radio" name="answer" value={{answer.id}}>{{ answer}}</input><br>
{% endfor %} {% endfor %}
<input type="button" onclick="Dajaxice.three_d_viewer.check_answer(my_callback, {'answerid':$('input:radio[name=answer]:checked').val(), 'questionid':{{ sample.questions.all.0.id }}})" value="Get message from server!" /> <input type="button" onclick="Dajaxice.three_d_viewer.check_answer(my_callback, {'answerid':$('input:radio[name=answer]:checked').val(), 'questionid':{{ sample.questions.all.0.id }}})" value="Get message from server!" />
{% endif %} {% endif %}
</div>
<body> <div class="col-md-8">
<canvas id="canvas" <!--style="border: 1px dotted #bfbfbf;" width=933 height="700"--></canvas>
<div><br><span id="progress" style="color: red"></span></div>
</div>
</div>
</div
</body>
</html> </html>