Docfile commited on
Commit
263c7f0
·
verified ·
1 Parent(s): ae30a13

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +10 -4
templates/index.html CHANGED
@@ -7,14 +7,14 @@
7
  <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
8
  <style>
9
  .loader {
10
- border: 5px solid #f3f3f3; /* Light grey */
11
- border-top: 5px solid #3498db; /* Blue */
12
  border-radius: 50%;
13
  width: 30px;
14
  height: 30px;
15
  animation: spin 1s linear infinite;
16
  margin: 20px auto;
17
- display: none; /* Initialement caché */
18
  }
19
 
20
  @keyframes spin {
@@ -51,7 +51,7 @@
51
  <div class="col-md-4">
52
  <h2>Structures chimiques:</h2>
53
  {% for image_path in image_paths %}
54
- <img src="{{ image_path }}" alt="Structure Chimique" style="width:100%; height:auto;"><br>
55
  {% endfor %}
56
  </div>
57
  </div>
@@ -64,6 +64,12 @@
64
  function showLoader() {
65
  document.getElementById('loader').style.display = 'block';
66
  }
 
 
 
 
 
 
67
  </script>
68
  </body>
69
  </html>
 
7
  <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
8
  <style>
9
  .loader {
10
+ border: 5px solid #f3f3f3;
11
+ border-top: 5px solid #3498db;
12
  border-radius: 50%;
13
  width: 30px;
14
  height: 30px;
15
  animation: spin 1s linear infinite;
16
  margin: 20px auto;
17
+ display: none;
18
  }
19
 
20
  @keyframes spin {
 
51
  <div class="col-md-4">
52
  <h2>Structures chimiques:</h2>
53
  {% for image_path in image_paths %}
54
+ <img src="{{ image_path }}" alt="Structure Chimique" style="max-width:100%; height:auto;"><br>
55
  {% endfor %}
56
  </div>
57
  </div>
 
64
  function showLoader() {
65
  document.getElementById('loader').style.display = 'block';
66
  }
67
+
68
+ // Optionnel : cacher le loader après le chargement de la page
69
+ window.onload = function() {
70
+ document.getElementById('loader').style.display = 'none';
71
+ };
72
+
73
  </script>
74
  </body>
75
  </html>