File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ // Set current year
2+ document . addEventListener ( 'DOMContentLoaded' , ( ) => {
3+ document . getElementById ( 'year' ) . textContent = new Date ( ) . getFullYear ( ) ;
4+
5+ // Form submission
6+ const form = document . getElementById ( 'portfolio-form' ) ;
7+ if ( form ) {
8+ form . addEventListener ( 'submit' , ( e ) => {
9+ e . preventDefault ( ) ;
10+ alert ( 'Thank you for your request! Please complete the payment and send the transaction ID to ayush93014@gmail.com for confirmation.' ) ;
11+ form . reset ( ) ;
12+ } ) ;
13+ }
14+ } ) ;
15+
16+ // Toggle Home & Services
17+ function showHome ( ) {
18+ document . getElementById ( 'home' ) . style . display = 'flex' ;
19+ document . getElementById ( 'services' ) . style . display = 'none' ;
20+ }
21+
22+ function showServices ( ) {
23+ document . getElementById ( 'home' ) . style . display = 'none' ;
24+ document . getElementById ( 'services' ) . style . display = 'flex' ;
25+ }
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments