This repository has been archived by the owner on Mar 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved cookie toggles from main menu to a separate settings page
- Loading branch information
Showing
5 changed files
with
119 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block app_content %} | ||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col-xl img-thumbnail"> | ||
<table style="width: 100%"> | ||
<tr> | ||
<th>Dark/Light mode</th> | ||
</tr> | ||
<tr> | ||
<td style="text-align: center;">Wissel tussen dark mode en light mode<br><br></td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<button onclick="toggle_darkmode()" class="btn btn-block btn-green"> | ||
{% if request.cookies.get('dark-mode') == 'True' %} | ||
Light Mode | ||
{% else %} | ||
Dark Mode | ||
{% endif %} | ||
</button> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
<div class="col-xl img-thumbnail"> | ||
<table style="width: 100%"> | ||
<tr> | ||
<th>Confetti</th> | ||
</tr> | ||
<tr> | ||
<td style="text-align: center;">Confetti op de homepagina<br><br></td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<button onclick="toggle_confetti()" class="btn btn-block btn-yellow">Confetti | ||
{% if request.cookies.get('confetti') == 'True' %} | ||
uit | ||
{% else %} | ||
aan | ||
{% endif %} | ||
</button> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
<div class="col-xl img-thumbnail"> | ||
<table style="width: 100%"> | ||
<tr> | ||
<th>Hoverafbeeldingen</th> | ||
</tr> | ||
<tr> | ||
<td style="text-align: center;">Andere afbeelding wanneer je met je muis over een product gaat</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<button onclick="toggle_hoverimages()" class="btn btn-block btn-green">Hoverafbeeldingen | ||
{% if request.cookies.get('hover') == 'True' %} | ||
uit | ||
{% else %} | ||
aan | ||
{% endif %} | ||
</button> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
|
||
{% if snow == "True" %} | ||
<div class="col-xl img-thumbnail"> | ||
<table style="width: 100%"> | ||
<tr> | ||
<th>Sneeuw</th> | ||
</tr> | ||
<tr> | ||
<td style="text-align: center;">Sneeuw op de homepagina<br></td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<button onclick="toggle_snow()" class="btn btn-block btn-yellow">Sneeuw | ||
{% if request.cookies.get('snow') == 'True' %} | ||
uit | ||
{% else %} | ||
aan | ||
{% endif %} | ||
</button> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
{% endif %} | ||
</div> | ||
</div> | ||
{% endblock %} |