Bug somewhere
All checks were successful
Build, Push, and Deploy to Nomad / docker-nomad (push) Successful in 40s

This commit is contained in:
Henrik Jess
2024-12-19 20:20:07 +01:00
parent af9c8f77fd
commit 7e5c31b00d
5 changed files with 102 additions and 67 deletions

View File

@@ -62,7 +62,13 @@ def slider(options, images):
html_content.append(f"""<button onclick="openModal('modal{modal_id}')" class="stacked-button"> <img src="{val}" class="thumbnail"></button>""".strip())
else:
html_content.append(f"""<button onclick="openModal('modal{modal_id}')" class="stacked-button"> <img src="{val}" class="thumbnail" ></button>""".strip())
html_content.append(f"""<div class="modal" id="modal{modal_id}"> <div class="modal-content"> <h2>Modal {i}</h2> <img src="{val}" width="80%" height="80%"> <button onclick="closeModal('modal{i}')">Close</button><button class="next-btn" onclick="nextModal('modal{modal_id}', 'modal{modal_id_next}')">Next</button></div> </div>""")
html_content.append(f"""<div class="modal" id="modal{modal_id}"> <div class="modal-content">
<h2>Modal {i}</h2>
<img src="{val}">
<div class="modal-buttons">
<button onclick="closeModal('modal{modal_id}')">Close</button>
<button class="next-btn" onclick="nextModal('modal{modal_id}', 'modal{modal_id_next}')">Next</button>
</div> </div></div>""")
html_content.append( '</div>' )
html = '\n'.join( html_content )