jQuery(document).ready(function () {
if (window.screen.width < 480) {
const modal = document.getElementsByClassName('modal_link');
if (modal) {
for (let i = 0; i < modal.length; i++) {
if (modal[i].getAttribute('data-modal-inner-width')) {
modal[i].setAttribute('data-modal-inner-width', "100%");
}
}
}
}
});
<p>{modalcontent eluceo_news}{module Eluceo Newsletter}{/modalcontent}</p>
<div>{modal content="eluceo_news" width="50%"}
<div class="card" style="width: 80%; display: block; margin-left: auto; margin-right: auto; margin-bottom: 0.7rem;">{source}<?php echo file_get_contents('images/iShine/newsletter_regular.svg');?>{/source}</div>
<p style="color: white; text-align: center;">Stay on top of your working life with the Eluceo Newsletter.</p>
{/modal}