-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditor.html
83 lines (75 loc) · 3.51 KB
/
editor.html
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
<html>
<head>
<!-- <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="qtip.css" rel="stylesheet" media="screen">-->
<script src="js/angular.min.js"></script>
<script src="js/angular-sanitize.min.js"></script>
<script src="js/elastic.min.js"></script>
<script src="js/elastic-angular-client.min.js"></script>
<script src="js/qtip.js"></script>
</head>
<body ng-app='tipApp'>
<div class="question"
<p>Question 1. Math</p>
Dummy data for question 1...<br>
<div class="qtip" ng-init="loadTip(1)" ng-controller="tipCtrl">
<ol>
<li ng-repeat="tip in data.tips">
<span ng-bind-html="tip"></span>
<button class="btn-primary" data-ng-click="removeTip($index)">X</button>
</li>
</ol>
<form ng-submit="addTip()">
<input type="text" ng-model="tipText" size="30"
placeholder="Add new tip here">
<input class="btn-primary" type="submit" value="Add tip">
<br>
Decrement: <input type="text" ng-model="data.decrement" size="3" ng-change="saveTip()">
Limit: <input type="text" ng-model="data.limit" size="3" ng-change="saveTip()">
</form>
</div>
</div>
<div class="question">
<p>Question 2. Math</p>
Dummy data for question 2...<br>
<div class="qtip" ng-controller="tipCtrl" ng-init="loadTip(2)">
<ol>
<li ng-repeat="tip in data.tips">
<span ng-bind-html="tip"></span>
<button class="btn-primary" data-ng-click="removeTip($index)">x</button>
</li>
</ol>
<form ng-submit="addTip()">
<input type="text" ng-model="tipText" size="30"
placeholder="Add new tip here">
<input class="btn-primary" type="submit" value="Add tip">
<br>
Decrement: <input type="text" ng-model="data.decrement" size="3" ng-change="saveTip()">
Limit: <input type="text" ng-model="data.limit" size="3" ng-change="saveTip()">
</form>
</div>
</div>
<div class="question" id="qid_3">
<p>Question 3. Math</p>
Dummy data for question 3...<br>
<div class="qtip" id="qtip_1"
ng-controller="tipCtrl"
ng-init="loadTip(6)">
<ol>
<li ng-repeat="tip in data.tips">
<span ng-bind-html="tip"></span>
<button class="btn-primary" data-ng-click="removeTip($index)">X</button>
</li>
</ol>
<form ng-submit="addTip()">
<input type="text" ng-model="tipText" size="30"
placeholder="Add new tip here">
<input class="btn-primary" type="submit" value="Add tip">
<br>
Decrement: <input type="text" ng-model="data.decrement" size="3" ng-change="saveTip()">
Limit: <input type="text" ng-model="data.limit" size="3" ng-change="saveTip()">
</form>
</div>
</div>
</body>
</html>