generated from hjess/PythonTemplateProject
cache fix og title
Some checks failed
Build, Push, and Deploy to Nomad / docker-nomad (push) Has been cancelled
Some checks failed
Build, Push, and Deploy to Nomad / docker-nomad (push) Has been cancelled
This commit is contained in:
@@ -59,16 +59,20 @@ def slider(options, images):
|
|||||||
if int(len(images))<=int(i+1):
|
if int(len(images))<=int(i+1):
|
||||||
modal_id_next = f"{modal_id}_0"
|
modal_id_next = f"{modal_id}_0"
|
||||||
if i % 2 == 0:
|
if i % 2 == 0:
|
||||||
html_content.append(f"""<button onclick="openModal('modal{modal_id}')" class="stacked-button"> <img src="{val}" class="thumbnail"></button>""".strip())
|
html_content.append(f"""<button onclick="openModal('modal{modal_id}')" class="stacked-button"> <img src="{val}" alt="Lets do better" class="thumbnail"></button>""".strip())
|
||||||
else:
|
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"""<button onclick="openModal('modal{modal_id}')" class="stacked-button"> <img src="{val}" alt="Lets do better" class="thumbnail" ></button>""".strip())
|
||||||
html_content.append(f"""<div class="modal" id="modal{modal_id}"> <div class="modal-content">
|
html_content.append(f"""<div class="modal" id="modal{modal_id}">
|
||||||
|
<div class="modal-content">
|
||||||
<h2>Modal {i}</h2>
|
<h2>Modal {i}</h2>
|
||||||
<img src="{val}">
|
<img src="{val}" alt="Lets do better">
|
||||||
<div class="modal-buttons">
|
<div class="modal-buttons">
|
||||||
<button onclick="closeModal('modal{modal_id}')">Close</button>
|
<button onclick="closeModal('modal{modal_id}')">Close</button>
|
||||||
<button class="next-btn" onclick="nextModal('modal{modal_id}', 'modal{modal_id_next}')">Next</button>
|
<button class="next-btn" onclick="nextModal('modal{modal_id}', 'modal{modal_id_next}')">Next</button>
|
||||||
</div> </div></div>""")
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>""")
|
||||||
|
|
||||||
html_content.append( '</div>' )
|
html_content.append( '</div>' )
|
||||||
html = '\n'.join( html_content )
|
html = '\n'.join( html_content )
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user