Skip to content

Commit

Permalink
Merge pull request #32 from MahmoudHousam/add_thank_you_page
Browse files Browse the repository at this point in the history
Add thank you page
  • Loading branch information
MahmoudHousam authored Dec 21, 2024
2 parents 2db9769 + af30418 commit 63d9a6a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
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

0 comments on commit 63d9a6a

Please sign in to comment.