(function ($) { document.addEventListener('DOMContentLoaded', function () { const content = document.getElementById('o_content'); let imageModalId = 0; content.querySelectorAll('img').forEach(image => { // Enforce the presence of the `img-fluid` class on all images. image.classList.add('img-fluid'); // Add a modal to each image. const modalContainer = document.createElement('div'); modalContainer.classList.add('o_image_modal'); modalContainer.innerHTML = `