forked from AditiDiti/HelpingHands2.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
62 lines (54 loc) · 2.18 KB
/
script.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
function onSignIn(googleUser) {
var profile = googleUser.getBasicProfile();
console.log('ID: ' + profile.getId()); // Do not send to your backend! Use an ID token instead.
console.log('Name: ' + profile.getName());
console.log('Image URL: ' + profile.getImageUrl());
console.log('Email: ' + profile.getEmail()); // This is null if the 'email' scope is not present.
}
document.addEventListener('DOMContentLoaded', function () {
var swiper = new Swiper('.swiper-container', {
direction: 'horizontal',
loop: true,
slidesPerView: 1,
autoplay: {
delay: 3000
},
pagination: {
el: '.swiper-pagination',
clickable: true,
},
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
});
detectColorScheme();
});
document.getElementById('submit-button').addEventListener('click', function() {
alert('Thank you for submitting the form, here is a list of candidates curated especially according to your requirements..');
window.location.href = 'recruiter.html';
});
// for aside
function openNav() {
document.getElementById("mySidebar").style.width = "250px";
document.getElementById("main").style.marginLeft = "250px";
}
function closeNav() {
document.getElementById("mySidebar").style.width = "0";
document.getElementById("main").style.marginLeft= "0";
}
function openNav() {
document.getElementById("mySidebar").style.width = "250px";
document.getElementById("main").style.marginLeft = "250px";
document.querySelector(".openbtn").style.display = "none"; // Hide the hamburger button
}
function closeNav() {
document.getElementById("mySidebar").style.width = "0";
document.getElementById("main").style.marginLeft= "0";
document.querySelector(".openbtn").style.display = "block"; // Show the hamburger button
}
document.getElementById('survey-form').addEventListener('submit', function(e) {
e.preventDefault();
alert('Thank you for filling the form, here is a list of jobs curated especially according to your skill set..');
window.location.href = 'listofjob.html';
});