-
Notifications
You must be signed in to change notification settings - Fork 2
/
homepage.js
47 lines (41 loc) · 1.49 KB
/
homepage.js
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
$( document ).ready(function() {
$( "#main-content" ).fadeIn( 1200, function() {
// Animation complete
});
$("#signUpModal").on("show", function() { // wire up the OK button to dismiss the modal when shown
$("#signUpModal a.btn").on("click", function(e) {
console.log("button pressed"); // just as an example...
$("#signUpModal").modal('hide'); // dismiss the dialog
});
});
$("#signUpModal").on("hide", function() { // remove the event listeners when the dialog is dismissed
$("#signUpModal a.btn").off("click");
});
$("#signUpModal").on("hidden", function() { // remove the actual elements from the DOM when fully hidden
$("#signUpModal").remove();
});
$("#signUp").on("click", function(){
$("#signUpModal").modal({ // wire up the actual modal functionality and show the dialog
"backdrop" : "static",
"keyboard" : true,
"show" : true // ensure the modal is shown immediately
});
});
$("#cancelModal").on("click", function(){
$("#signUpModal").modal("hide");
});
$("#employerCheck").on("click", function(){
if ($("#employerCheck").prop("checked"))
{
$(".userOptions").each(function(){
$(this).hide();
});
}
else
{
$(".userOptions").each(function(){
$(this).show();
});
}
});
});