|
a |
|
b/web/hiring/hiring.js |
|
|
1 |
document.addEventListener('DOMContentLoaded', function() { |
|
|
2 |
// Add smooth scrolling for any anchor links |
|
|
3 |
document.querySelectorAll('a[href^="#"]').forEach(anchor => { |
|
|
4 |
anchor.addEventListener('click', function (e) { |
|
|
5 |
e.preventDefault(); |
|
|
6 |
document.querySelector(this.getAttribute('href')).scrollIntoView({ |
|
|
7 |
behavior: 'smooth' |
|
|
8 |
}); |
|
|
9 |
}); |
|
|
10 |
}); |
|
|
11 |
|
|
|
12 |
// Add hover effects for position cards |
|
|
13 |
document.querySelectorAll('.position-card').forEach(card => { |
|
|
14 |
card.addEventListener('mouseenter', function() { |
|
|
15 |
this.style.transform = 'translateY(-5px)'; |
|
|
16 |
this.style.boxShadow = '0 8px 32px rgba(0, 0, 0, 0.2)'; |
|
|
17 |
this.style.borderColor = 'var(--gradient-end)'; |
|
|
18 |
}); |
|
|
19 |
|
|
|
20 |
card.addEventListener('mouseleave', function() { |
|
|
21 |
this.style.transform = 'translateY(0)'; |
|
|
22 |
this.style.boxShadow = 'none'; |
|
|
23 |
this.style.borderColor = 'rgba(255, 255, 255, 0.1)'; |
|
|
24 |
}); |
|
|
25 |
}); |
|
|
26 |
|
|
|
27 |
// Add hover effects for benefit cards |
|
|
28 |
document.querySelectorAll('.benefit-card').forEach(card => { |
|
|
29 |
card.addEventListener('mouseenter', function() { |
|
|
30 |
this.style.transform = 'translateY(-5px)'; |
|
|
31 |
this.style.boxShadow = '0 8px 32px rgba(0, 0, 0, 0.2)'; |
|
|
32 |
this.style.borderColor = 'var(--gradient-end)'; |
|
|
33 |
}); |
|
|
34 |
|
|
|
35 |
card.addEventListener('mouseleave', function() { |
|
|
36 |
this.style.transform = 'translateY(0)'; |
|
|
37 |
this.style.boxShadow = 'none'; |
|
|
38 |
this.style.borderColor = 'rgba(255, 255, 255, 0.1)'; |
|
|
39 |
}); |
|
|
40 |
}); |
|
|
41 |
}); |