templates/_partial/image_viewer.html.twig line 1

Open in your IDE?
  1. <div id="imageViewer" style="position: fixed; left: 0; top: 0; display: none; width: 100vw; background-color: rgba(0,0,0,0.7); text-align: center;">
  2.     <div style="line-height: 100vh;">
  3.         <img src="" alt="" decoding="async" style="max-height: 100vh; max-width: 100%;">
  4.     </div>
  5. </div>
  6. <script>
  7.     document.getElementById('imageViewer').onclick = (() => {
  8.         document.getElementById('imageViewer').style.display = 'none';
  9.     })
  10. </script>