update dropdown
This commit is contained in:
parent
7c63e12128
commit
aedba1293a
@ -32,7 +32,7 @@
|
|||||||
<!-- Timeframe Dropdown -->
|
<!-- Timeframe Dropdown -->
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<div class="dropdown">
|
<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">
|
type="button" id="timeframeDropdown" data-bs-toggle="dropdown" aria-expanded="false">
|
||||||
{% if session['timeframe'] == 'last24hours' %}
|
{% if session['timeframe'] == 'last24hours' %}
|
||||||
Last 24 Hours
|
Last 24 Hours
|
||||||
@ -72,12 +72,8 @@
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- Filetype Dropdown -->
|
<!-- Filetype Dropdown -->
|
||||||
<div class="mb-3">
|
<button class="btn btn-sm mt-1 dropdown-toggle btn-secondary"
|
||||||
<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 %}"
|
|
||||||
type="button" id="filetypeDropdown" data-bs-toggle="dropdown" aria-expanded="false">
|
type="button" id="filetypeDropdown" data-bs-toggle="dropdown" aria-expanded="false">
|
||||||
{% if session['filetype'] == 'audio' %}
|
{% if session['filetype'] == 'audio' %}
|
||||||
Audio
|
Audio
|
||||||
@ -259,6 +255,7 @@
|
|||||||
|
|
||||||
<!-- Load Chart.js from CDN -->
|
<!-- Load Chart.js from CDN -->
|
||||||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
<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>
|
<script>
|
||||||
// Data passed from the backend as JSON
|
// Data passed from the backend as JSON
|
||||||
const distinctDeviceData = {{ distinct_device_data|tojson }};
|
const distinctDeviceData = {{ distinct_device_data|tojson }};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user