Skip to content

Commit

Permalink
fix accordions on firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
claromes committed Jul 17, 2024
1 parent e05c7fe commit 595a0f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion waybacktweets/api/visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def generate(self) -> str:
html += '<div class="accordion-content">\n'

html += f'<div id="loading_{index}_{key_cleaned}" class="loading">Loading...</div>\n'
html += f'<iframe id="iframe_{index}_{key_cleaned}" frameborder="0" scrolling="auto" loading="lazy" style="display: none;" onload="document.getElementById(\'loading_{index}_{key_cleaned}\').style.display=\'none\'; this.style.display=\'block\';"></iframe>\n'
html += f'<iframe id="iframe_{index}_{key_cleaned}" height="600" width="600" frameborder="0" scrolling="auto" style="display: none;" onload="document.getElementById(\'loading_{index}_{key_cleaned}\').style.display=\'none\'; this.style.display=\'block\';"></iframe>\n'
html += "</div>\n"
html += "</div>\n"

Expand Down

0 comments on commit 595a0f8

Please sign in to comment.