huge updates

This commit is contained in:
sankalp committed 2025-04-03 16:30:28 +05:45
1 parent 2c62f212cf
commit e729cd615c
57 files changed
+10143 -4185

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
// Initialize Bootstrap components
function initializeBootstrapComponents() {
// Initialize tooltips if available
if (typeof bootstrap !== "undefined" && bootstrap.Tooltip) {
const tooltipTriggerList = [].slice.call(
document.querySelectorAll('[data-bs-toggle="tooltip"]'),
);
tooltipTriggerList.map(function(tooltipTriggerEl) {
return new bootstrap.Tooltip(tooltipTriggerEl);
});
}
// Initialize popovers if available
if (typeof bootstrap !== "undefined" && bootstrap.Popover) {
const popoverTriggerList = [].slice.call(
document.querySelectorAll('[data-bs-toggle="popover"]'),
);
popoverTriggerList.map(function(popoverTriggerEl) {
return new bootstrap.Popover(popoverTriggerEl);
});
}
}
// Make function globally accessible
window.initializeBootstrapComponents = initializeBootstrapComponents;