-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEnter_Question.html
More file actions
96 lines (96 loc) · 2.34 KB
/
Enter_Question.html
File metadata and controls
96 lines (96 loc) · 2.34 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
<!DOCTYPE html>
<html lang="en">
<head>
<script src="js/jquerymin.js"></script>
<link rel="stylesheet" href="css/bootstrap.min.css"/>
<link rel="stylesheet" href="css/bootstrap-theme.css"/>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js" type="text/javascript"></script>
<script src="js/bspage.js"></script>
<meta charset="UTF-8">
<title>Questions</title>
<style>
#fieldset1 {
width:0px;
}
#choice{
margin-left: 80px;
}
#addchoice{
margin-left: 180px;
}
#nextquestion{
margin-left: 180px;
}
#nextsubquestion{
margin-left: 180px;
}
#done{
margin-left: 180px;
}
#moveleft {
margin-left: 80px;
}
/*#insertchoice{
margin-left: 80px;
}*/
</style>
<script>
var nq, nsq, d, ac=0;
$( document ).ready(function() {
$("#done").click(function(){
// window.location="/display"
});
$("#nextquestion").click(function(){
// window.nq;
// window.location="/enterquestion"
});
$("#nextsubquestion").click(function(){
// window.nsq;
// window.location="/enterquestion"
});
$("#addchoice").click(function(){
window.ac++;
// $("#choice"+k).html('<label id="'+k+'"choice"><input type="radio" value="'+k+'" name="choice" id="'+k+'"choice" onclick="enable()">'+ window.question.Question[i].SubQuestion[j].Choice[k] +'</input></label>');
$("#insertchoice").append('choice '+window.ac+' : <input type="text" name="'+window.ac+'"choice" id="choice"'+window.ac+'"></input></br></br>');
// window.location="/enterquestion"
});
});
</script>
</head>
<body style="background-color:#E6E6FA;">
<div id="moveleft">
</br>
<div id="upload">
Upload File : <button>File Upload</button>
</div>
</br>
<div>
<fieldset id="fieldset1">
<legend>Question</legend><textarea rows="4" cols="50">
</textarea>
</fieldset>
</div>
</br>
<div id="insertchoice">
<!-- choice :<input type="text" id="choice"></input> -->
</div>
</br>
<div>
<button id="addchoice">Add Choice</button>
</div>
</br>
<div>
<button id="nextsubquestion">Next SubQuestion</button>
</div>
</br>
<div>
<button id="nextquestion">Next Question</button>
</div>
</br>
<div>
<button id="done">Done</button>
</div>
</div>
</body>
</html>