-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathselectSubjectCode.html
More file actions
79 lines (69 loc) · 2.17 KB
/
selectSubjectCode.html
File metadata and controls
79 lines (69 loc) · 2.17 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
<!DOCTYPE Html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>OAS</title>
<link rel="stylesheet" href="css/semantic.min.css"></link>
<style>
img{
margin-bottom:-10px;
margin-top:-10px;
}
</style>
</head>
<body>
<!-- nav bar-->
<div class="margin"></div>
<div class="ui padded grid">
<div class="centered sixteen wide mobile only eight wide tablet only six wide computer only column">
<div class="ui container">
<div class="ui form">
<div class="field">
<label>Assesment</label>
<div class="ui fluid search selection dropdown" id="assesmentDropdown">
<i class="dropdown icon"></i>
<div class="default text">Select type of assesment</div>
<div class="menu">
<div class="item" data-value="ut1">UT1</div>
<div class="item" data-value="ct1">CT1</div>
<div class="item" data-value="ut2">UT2</div>
<div class="item" data-value="ct2">CT2</div>
<div class="item" data-value="modal">Modal</div>
<div class="item" data-value="other">Other Assesment</div>
</div>
</div>
</div>
<center><button class="ui green button" onclick="done()">Done</button></center>
</div>
</div>
</div>
</div>
</div>
<script src="js/jquery-3.1.1.min.js"></script>
<!--jquery should be loaded before sematic and your custom javascript -->
<script src="js/semantic.min.js"></script>
<script>
$(document).ready(function() {
$('.ui.dropdown').dropdown();
});
var height = $("body").innerHeight();
var hgt = height*0.30;
//document.write(hgt);
$('.margin').height(hgt);
function done(){
var obj={};
obj.assesment = $("#assesmentDropdown").dropdown('get value');
console.log(obj);
$.get("setSelections",obj,function(result){
if(result.message == "done"){
window.location = "dashboard.html";
}else{
alert(result.message);
}
});
}
</script>
</body>
</html>