Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add thank you page #32

Merged
merged 6 commits into from
Dec 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Test Report.html
Integration Test Report.html
demo.mp4
example_options2.py
preview.mp4
.vscode/
__pycache__/
build/
Expand Down
Binary file modified demo/preview.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 10 additions & 1 deletion templates/report_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@
text-align: center;
margin-top: 40vh;
}
.thank-you {
font-weight: bold;
font-size: 60px;
text-align: center;
margin-top: 40vh;
}
</style>
</head>
<body>
Expand All @@ -49,9 +55,12 @@
{% for div in divs %}
<div id="page{{ loop.index }}" class="page">{{ div|safe }}</div>
{% endfor %}
<div id="page{{ total_pages }}" class="page">
<div class="thank-you">Thank You</div>
</div>
<script>
var currentPage = 0;
var totalPages = {{ total_pages }};
var totalPages = {{ total_pages }} + 1;
var slideTimer = null;
var timerRunning = false;

Expand Down
2 changes: 1 addition & 1 deletion tests/test_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,4 @@ def test_integration_user_workflow():

# Check if all div elements for pages are present
pages = soup.find_all("div", {"class": "page"})
assert len(pages) == 4 # 3 figures + 1 title page
assert len(pages) == 5 # 3 figures + 1 title page
Loading