Akira-Kurusu commited on
Commit
ff46928
·
verified ·
1 Parent(s): 9ac0d52

Update web/auth-login.html

Browse files
Files changed (1) hide show
  1. web/auth-login.html +19 -2
web/auth-login.html CHANGED
@@ -9,7 +9,7 @@
9
  <title>Login</title>
10
  <link rel="stylesheet" href="css/simplebar.css">
11
  <link href="https://fonts.googleapis.com/css2?family=Overpass:ital,wght@0,100;0,200;0,300;0,400;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
12
- <link rel="stylesheet" href="css/feather.css">
13
  <link rel="stylesheet" href="css/daterangepicker.css">
14
  <link rel="stylesheet" href="css/app-light.css" id="lightTheme">
15
  <link rel="stylesheet" href="css/app-dark.css" id="darkTheme" disabled>
@@ -109,7 +109,6 @@
109
  }
110
  $('#generalError').removeClass('alert-danger').addClass('alert-success')
111
  .text('¡Bienvenido! Redirigiendo...').show();
112
- sessionStorage.setItem('justLoggedIn', 'true');
113
  setTimeout(() => { window.location.href = 'index.html'; }, 800);
114
  } else {
115
  const msg = response?.message || 'Usuario o contraseña incorrectos';
@@ -127,6 +126,24 @@
127
 
128
 
129
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
  </body>
131
  </html>
132
  </html>
 
9
  <title>Login</title>
10
  <link rel="stylesheet" href="css/simplebar.css">
11
  <link href="https://fonts.googleapis.com/css2?family=Overpass:ital,wght@0,100;0,200;0,300;0,400;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
12
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
13
  <link rel="stylesheet" href="css/daterangepicker.css">
14
  <link rel="stylesheet" href="css/app-light.css" id="lightTheme">
15
  <link rel="stylesheet" href="css/app-dark.css" id="darkTheme" disabled>
 
109
  }
110
  $('#generalError').removeClass('alert-danger').addClass('alert-success')
111
  .text('¡Bienvenido! Redirigiendo...').show();
 
112
  setTimeout(() => { window.location.href = 'index.html'; }, 800);
113
  } else {
114
  const msg = response?.message || 'Usuario o contraseña incorrectos';
 
126
 
127
 
128
 
129
+ <script>
130
+ // Feather Icons: reemplaza <i data-feather="X"> con SVG inline
131
+ // Inmune a problemas de fuentes locales
132
+ function _initFeather() {
133
+ if (typeof feather !== 'undefined') feather.replace({ 'stroke-width': 1.8 });
134
+ }
135
+ document.addEventListener('DOMContentLoaded', _initFeather);
136
+ // Re-render al inyectar HTML dinámico (modals, cards, tablas)
137
+ var _fObserver = new MutationObserver(function(mutations) {
138
+ var needsRefresh = mutations.some(function(m) {
139
+ return m.addedNodes.length > 0;
140
+ });
141
+ if (needsRefresh) _initFeather();
142
+ });
143
+ document.addEventListener('DOMContentLoaded', function() {
144
+ _fObserver.observe(document.body, { childList: true, subtree: true });
145
+ });
146
+ </script>
147
  </body>
148
  </html>
149
  </html>