-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprofiles-test.html
executable file
·120 lines (99 loc) · 4.35 KB
/
profiles-test.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
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
---
layout: default
title: Bioinformatics Profiles
---
<!-- https://code.jquery.com/jquery-3.5.1.js
<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> -->
<style>
</style>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"
integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css">
<script type="text/javascript" language="javascript" src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script type="text/javascript" language="javascript"
src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/select/1.2.1/js/dataTables.select.min.js" type="text/javascript"></script>
<p>Select the modules below <p>
<label for="healthsafetyCheckbox">
<input type="checkbox" id="healthsafetyCheckbox"> Health and Safety
</label>
<br>
<label for="ethicspolicyCheckbox">
<input type="checkbox" id="ethicspolicyCheckbox"> Ethics & Policy
</label>
<br>
<label for="introGECheckbox">
<input type="checkbox" id="introGECheckbox"> Introduction to Genetic Epidemiology
</label>
<br>
<label for="unixCheckbox">
<input type="checkbox" id="unixCheckbox"> Unix, Scripting
</label>
<br>
<label for="progCheckbox">
<input type="checkbox" id="progCheckbox"> Programming
</label>
<br>
<label for="bioinfCheckbox">
<input type="checkbox" id="bioinfCheckbox"> Bioinformatics
</label>
<br>
<label for="wHPCCheckbox">
<input type="checkbox" id="wHPCCheckbox"> Workflows, HPC
</label>
<br>
<button onclick="displayDegreeTitle()" type="button" class="btn btn-danger btn-sm" data-toggle="modal"
data-target="#myModal1">
Display Bioinformatics Profile
</button>
<!-- The Modal -->
<div class="modal fade" id="myModal1">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<!-- Modal Header -->
<div class="modal-header">
<p class="modal-title font-weight-bold"> </p>
<button type="button" class="close"
data-dismiss="modal">×</button><br>
</div>
<!-- Modal body -->
<div class="modal-body">
<p><b>Your Profile:</b> <span id="degreeTitle">Can not generate profile, Please select the appropriate modules!</span></p>
</div>
<!-- Modal footer -->
<div class="modal-footer">
<button type="button" class="btn btn-danger btn-sm"
data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<br>
<!-- <button class="btn btn-danger btn-sm" onclick="displayDegreeTitle()">Display Bioinformatics Profile</button>
<br>
<br>
<p>Your Profile: <span id="degreeTitle">Undecided, Please</span></p> -->
<script>
function displayDegreeTitle() {
// Get the completed NGS courses
var healthsafetyCompleted = document.getElementById("healthsafetyCheckbox").checked;
var ethicspolicyCompleted = document.getElementById("ethicspolicyCheckbox").checked;
var introGECompleted = document.getElementById("introGECheckbox").checked;
var unixCompleted = document.getElementById("unixCheckbox").checked;
var progCompleted = document.getElementById("progCheckbox").checked;
var bioinfCompleted = document.getElementById("bioinfCheckbox").checked;
var wHPCCompleted = document.getElementById("wHPCCheckbox").checked;
// Determine the degree/profile title based on the completed courses
var degreeTitle = "Undecided";
if (ethicspolicyCompleted && introGECompleted && unixCompleted && progCompleted && bioinfCompleted ) {
degreeTitle = "Bioinformatics Scientist";
} else if (healthsafetyCompleted && ethicspolicyCompleted && introGECompleted ) {
degreeTitle = "Wetlab Scientist";
} else if (aaintroGECompleted) {
degreeTitle = "You have selected Introduction to Genetic Epidemiology";
}
// Display the degree/profile title
document.getElementById("degreeTitle").textContent = degreeTitle;
}
</script>