-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
25 lines (22 loc) · 880 Bytes
/
Copy pathscript.js
File metadata and controls
25 lines (22 loc) · 880 Bytes
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
// Set current year
document.addEventListener('DOMContentLoaded', () => {
document.getElementById('year').textContent = new Date().getFullYear();
// Form submission
const form = document.getElementById('portfolio-form');
if (form) {
form.addEventListener('submit', (e) => {
e.preventDefault();
alert('Thank you for your request! Please complete the payment and send the transaction ID to ayush93014@gmail.com for confirmation.');
form.reset();
});
}
});
// Toggle Home & Services
function showHome() {
document.getElementById('home').style.display = 'flex';
document.getElementById('services').style.display = 'none';
}
function showServices() {
document.getElementById('home').style.display = 'none';
document.getElementById('services').style.display = 'flex';
}