PageSourceSearch

https://gulvelavanta.com/assets/js/main.js

js gulvelavanta.com collected 2026-10-08 00:52:58 UTC 1,327 bytes, 38 lines download raw bytes

1/**
2 * Gül ve Lavanta - Ana JS
3 */
4document.addEventListener('DOMContentLoaded', function() {
5    // Tooltip aktif
6    const tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
7    tooltipTriggerList.map(el => new bootstrap.Tooltip(el));
8
9    // Flash message otomatik kapanma
10    setTimeout(() => {
11        document.querySelectorAll('.alert-dismissible').forEach(alert => {
12            try { bootstrap.Alert.getOrCreateInstance(alert).close(); } catch(e) {}
13        });
14    }, 5000);
15
16    // Smooth scroll
17    document.querySelectorAll('a[href^="#"]').forEach(anchor => {
18        anchor.addEventListener('click', function(e) {
19            const href = this.getAttribute('href');
20            if (href && href.length > 1) {
21                const target = document.querySelector(href);
22                if (target) {
23                    e.preventDefault();
24                    target.scrollIntoView({ behavior: 'smooth', block: 'start' });
25                }
26            }
27        });
28    });
29
30    // Newsletter (dummy)
31    document.querySelectorAll('.newsletter-form').forEach(form => {
32        form.addEventListener('submit', function(e) {
33            e.preventDefault();
34            alert('Bülten aboneliğiniz için teşekkürler!');
35            this.reset();
36        });
37    });
38});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.