ViannyCruz commited on
Commit
8765339
·
verified ·
1 Parent(s): 6427792

Update web/diagnosis.html

Browse files
Files changed (1) hide show
  1. web/diagnosis.html +23 -0
web/diagnosis.html CHANGED
@@ -5,6 +5,15 @@
5
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6
  <meta name="description" content="">
7
  <meta name="author" content="">
 
 
 
 
 
 
 
 
 
8
  <link rel="icon" href="favicon.ico">
9
  <title>Diagnóstico IA</title>
10
  <link rel="stylesheet" href="css/simplebar.css">
@@ -1510,6 +1519,20 @@ if (false) { /* removed */ }
1510
  });
1511
  });
1512
  })();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1513
  </script>
1514
  </body>
1515
  </html>
 
5
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6
  <meta name="description" content="">
7
  <meta name="author" content="">
8
+
9
+ <script>
10
+ (function() {
11
+ if (localStorage.getItem('theme') === 'dark') {
12
+ document.documentElement.style.visibility = 'hidden';
13
+ }
14
+ })();
15
+ </script>
16
+
17
  <link rel="icon" href="favicon.ico">
18
  <title>Diagnóstico IA</title>
19
  <link rel="stylesheet" href="css/simplebar.css">
 
1519
  });
1520
  });
1521
  })();
1522
+
1523
+ function applyTheme(theme) {
1524
+ const lightTheme = document.getElementById('lightTheme');
1525
+ const darkTheme = document.getElementById('darkTheme');
1526
+ if (theme === 'dark') {
1527
+ lightTheme.disabled = true;
1528
+ darkTheme.disabled = false;
1529
+ } else {
1530
+ lightTheme.disabled = false;
1531
+ darkTheme.disabled = true;
1532
+ }
1533
+ // 👇 Revelar la página una vez aplicado el tema
1534
+ document.documentElement.style.visibility = 'visible';
1535
+ }
1536
  </script>
1537
  </body>
1538
  </html>