mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-10-14 02:31:58 +00:00
Minor updates
This commit is contained in:
@@ -20,14 +20,6 @@
|
||||
<script src="{{ url_for('static', filename='js/add_job.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/CorpusList.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/JobList.js') }}"></script>
|
||||
<script>
|
||||
{% if current_user.is_authenticated and current_user.is_dark %}
|
||||
darkModeEnabled = true;
|
||||
{% endif %}
|
||||
{% for flashed_message in get_flashed_messages() %}
|
||||
flashedMessages.push("{{ flashed_message }}");
|
||||
{% endfor %}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
@@ -105,5 +97,15 @@
|
||||
</div>
|
||||
</footer>
|
||||
<script src="{{ url_for('static', filename='js/Materialize/materialize.min.js') }}"></script>
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
{% if current_user.is_authenticated and current_user.is_dark %}
|
||||
DarkReader.enable({"brightness": 100, "contrast": 100, "sepia": 0});
|
||||
{% endif %}
|
||||
{% for flashed_message in get_flashed_messages() %}
|
||||
toast("{{ flashed_message }}");
|
||||
{% endfor %}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user