Some bootstrapping
This commit is contained in:
@@ -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">
|
||||||
<h1>{{ sample.name }}</h1>
|
<div class="page-header">
|
||||||
<p class="lead">{{ sample.description }}</p>
|
<h1>{{ sample.name }}</h1>
|
||||||
</div>
|
<p class="lead">{{ sample.description }}</p>
|
||||||
<center>
|
</div>
|
||||||
<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">
|
||||||
{{ sample.questions.all.0 }}<br>
|
<div class="col-md-4">
|
||||||
{% for answer in sample.questions.all.0.answers.all %}
|
{% if sample.questions %}
|
||||||
<input type="radio" name="answer" value={{answer.id}}>{{ answer}}</input><br>
|
{{ sample.questions.all.0 }}<br>
|
||||||
{% endfor %}
|
{% for answer in sample.questions.all.0.answers.all %}
|
||||||
<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="radio" name="answer" value={{answer.id}}>{{ answer}}</input><br>
|
||||||
{% endif %}
|
{% 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!" />
|
||||||
<body>
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
<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>
|
||||||
Reference in New Issue
Block a user