CoolFace
Apppublic

Maroonninja/decisionviz-visual-choice-architect

sourceHugging Faceupdated 11mo agoView on Hugging Face
0likes
script.js21 linesDownload Raw Back to root
1// Initialize tooltips2document.addEventListener('DOMContentLoaded', function() {3    // Initialize any tooltips if needed4    const tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));5    tooltipTriggerList.map(function (tooltipTriggerEl) {6        return new bootstrap.Tooltip(tooltipTriggerEl);7    });8 9    // Example of adding animation class to elements10    const cards = document.querySelectorAll('.decision-card');11    cards.forEach((card, index) => {12        card.style.setProperty('--order', index);13    });14});15 16// Example function for creating a new decision17function createNewDecision() {18    // This would be expanded to handle the actual creation logic19    console.log('Creating new decision...');20    window.location.href = '/create';21}