copia actualizada de sandisk
This commit is contained in:
+21
-4
@@ -701,13 +701,21 @@
|
||||
{% if session.pop("animate_navbar", None) %}
|
||||
class="animate__animated animate__backInUp"
|
||||
{% endif %}>
|
||||
<div style="
|
||||
padding: 10px 5px 5px;
|
||||
margin-bottom: 20px;">
|
||||
<img
|
||||
id="siteLogo"
|
||||
src="{{ url_for('static', filename='img/logo.png') }}"
|
||||
alt="Logo"
|
||||
style="max-width:160px; width:100%; height:auto;">
|
||||
</div>
|
||||
|
||||
|
||||
<div style="padding: 0 8px 20px; text-align:center;">
|
||||
<!-- <div style="padding: 0 8px 20px; text-align:center;">
|
||||
<img src="{{ url_for('static', filename='img/logo.png') }}"
|
||||
alt="Logo"
|
||||
style="max-width:160px; width:100%; height:auto;">
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<div class="nav-logo">
|
||||
<span></span>PyFleet
|
||||
@@ -857,7 +865,16 @@
|
||||
function applyTheme(theme) {
|
||||
html.setAttribute('data-theme', theme);
|
||||
localStorage.setItem('nexus-theme', theme);
|
||||
}
|
||||
|
||||
var logo = document.getElementById('siteLogo');
|
||||
|
||||
if (theme === 'dark') {
|
||||
logo.src = "{{ url_for('static', filename='img/logo_blanco.png') }}";
|
||||
} else {
|
||||
logo.src = "{{ url_for('static', filename='img/logo.png') }}";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Sync button state on load
|
||||
applyTheme(localStorage.getItem('nexus-theme') || 'light');
|
||||
|
||||
Reference in New Issue
Block a user