update dropdown

This commit is contained in:
lelo 2025-04-02 10:05:27 +00:00
parent 7c63e12128
commit aedba1293a

View File

@ -32,7 +32,7 @@
<!-- Timeframe Dropdown -->
<div class="mb-3">
<div class="dropdown">
<button class="btn btn-sm mt-1 dropdown-toggle {% if session['timeframe'] in ['last24hours', '7days', '30days', '365days'] %}btn-warning{% else %}btn-secondary{% endif %}"
<button class="btn btn-sm mt-1 dropdown-toggle btn-secondary"
type="button" id="timeframeDropdown" data-bs-toggle="dropdown" aria-expanded="false">
{% if session['timeframe'] == 'last24hours' %}
Last 24 Hours
@ -72,12 +72,8 @@
</a>
</li>
</ul>
</div>
</div>
<!-- Filetype Dropdown -->
<div class="mb-3">
<div class="dropdown">
<button class="btn btn-sm mt-1 dropdown-toggle {% if session['filetype'] in ['audio', 'video', 'photo', 'other'] %}btn-warning{% else %}btn-secondary{% endif %}"
<button class="btn btn-sm mt-1 dropdown-toggle btn-secondary"
type="button" id="filetypeDropdown" data-bs-toggle="dropdown" aria-expanded="false">
{% if session['filetype'] == 'audio' %}
Audio
@ -259,6 +255,7 @@
<!-- Load Chart.js from CDN -->
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script>
// Data passed from the backend as JSON
const distinctDeviceData = {{ distinct_device_data|tojson }};