topic.html
4.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html>
<html>
<head>
<title>GotIT</title>
<link rel="icon" href="/static/favicon.ico">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="author" content="Miguel Barão">
<!-- MathJax -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [["$$$","$$$"], ["$","$"], ["\\(","\\)"]]
}
});
</script>
<script type="text/javascript" src="/static/mathjax/MathJax.js?delayStartupUntil=onload&config=TeX-AMS_CHTML-full"></script>
<!-- Bootstrap -->
<link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="/static/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="/static/css/animate.min.css">
<link rel="stylesheet" href="/static/css/github.css">
<!-- Other -->
<!-- <link rel="stylesheet" href="/static/css/learn.css"> -->
<style>
/* progress bars have height of 4 pixels */
.progress {
height: 10px;
border-radius: 0px;
}
body {
margin: 0;
padding-top: 55px;
}
</style>
</head>
<!-- ===================================================================== -->
<body>
<!-- Navbar -->
<nav class="navbar navbar-expand-sm fixed-top navbar-dark bg-dark">
<a class="navbar-brand" href="#">
<img src="/static/logo_horizontal.png" height="30" alt="">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarText">
<ul class="navbar-nav mr-auto">
</ul>
<span class="navbar-text">
<i class="fa fa-user" aria-hidden="true"></i>
<span id="name">{{ escape(name) }}</span>
(<span id="number">{{ escape(uid) }}</span>)
<span class="caret"></span>
</span>
</div>
</nav>
<!-- ===================================================================== -->
<div class="progress">
<div class="progress-bar progress-bar-success" id="topic_progress" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="min-width: 1em;width: 0%"></div>
</div>
<!-- ===================================================================== -->
<!-- main panel with questions -->
<div class="container">
<div id="notifications"></div>
<!-- Question body -->
<form action="/question" method="post" id="question_form" autocomplete="off">
{% module xsrf_form_html() %}
<div id="question_div">
Question goes here!!!!
<!-- questions go here -->
</div>
</form>
<button class="btn btn-primary" id="submit" data-toggle="tooltip" data-placement="right" title="Shift-Enter">Continuar</button>
</div>
<!-- ===================================================================== -->
<!-- JAVASCRIPT -->
<!-- ===================================================================== -->
<script src="/static/js/jquery.min.js"></script>
<script src="/static/popper/umd/popper.min.js"></script>
<script src="/static/bootstrap/js/bootstrap.min.js"></script>
<script>
// Get current question
function getQuestion() {
$.ajax({
url: "/question",
// headers: {"X-XSRFToken": token},
dataType: "json", // expected from server
success: function(r) {alert(r); },//updateQuestion,
error: function() {alert("O servidor não responde.");}
});
}
$(document).ready(function() {
getQuestion();
// $("#submit").click(postQuestion);
// $('[data-toggle=offcanvas]').click(function() {
// $('.row-offcanvas').toggleClass('active');
// });
// $("#change_password").click(change_password);
});
</script>
</body>
</html>