File size: 925 Bytes
51a277e
7db1829
0eaaee2
 
 
51a277e
 
0eaaee2
51a277e
 
 
 
 
 
 
 
 
 
 
 
 
7db1829
51a277e
7db1829
 
 
 
 
 
 
 
 
 
51a277e
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

document.addEventListener('DOMContentLoaded', () => {
    // Initialize feather icons
    feather.replace();
    
    // Initialize Vanta.js waves background
    VANTA.WAVES({
el: "#vanta-bg",
        mouseControls: true,
        touchControls: true,
        gyroControls: false,
        minHeight: 200.00,
        minWidth: 200.00,
        scale: 1.00,
        scaleMobile: 1.00,
        color: 0x0e4978,
        waveHeight: 20.00,
        waveSpeed: 0.50,
        zoom: 0.65
    });

    // Initialize any global functionality here
    console.log('REVRES initialized');
    
    // Smooth scroll for anchor links
    document.querySelectorAll('a[href^="#"]').forEach(anchor => {
        anchor.addEventListener('click', function (e) {
            e.preventDefault();
            document.querySelector(this.getAttribute('href')).scrollIntoView({
                behavior: 'smooth'
            });
        });
    });
});