developerosman's picture
menju olmamış düzenle bir de dark mode yapalım tootgle istemiyorum
c322ecf verified
Raw History Blame Contribute Delete
743 Bytes
document.addEventListener('DOMContentLoaded', function() {
// Add any global JavaScript functionality here
// Example: 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'
});
});
});
// Initialize all tooltips
const tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
tooltipTriggerList.map(function (tooltipTriggerEl) {
return new bootstrap.Tooltip(tooltipTriggerEl);
});
});