MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 15: Line 15:
             // Log a message when a card is clicked
             // Log a message when a card is clicked
             console.log('Clicked on card:', this);
             console.log('Clicked on card:', this);
            // Show the modal
            $('#cardModal').css('display', 'block');
            // Update the modal content (replace this with your desired content)
            $('#modalContent').html('Card content goes here');
        });
        // Attach a click event listener to close the modal
        $('#closeModal').on('click', function() {
            // Hide the modal when the close button is clicked
            $('#cardModal').css('display', 'none');
         });
         });
     } else {
     } else {

Navigation menu