imseldrith commited on
Commit
0669403
1 Parent(s): 23bf166

Update templates/output.html

Browse files
Files changed (1) hide show
  1. templates/output.html +6 -5
templates/output.html CHANGED
@@ -121,8 +121,8 @@
121
  <div class="container">
122
  <h1>Generated Image</h1>
123
  <div class="image-container">
124
- <a href="{{ url_for('static', filename='example.jpeg') }}" target="_blank" onclick="toggleFullScreen()">
125
- <img src="{{ url_for('static', filename='example.jpeg') }}" alt="Generated Image">
126
  </a>
127
  </div>
128
  <div class="button-container">
@@ -157,8 +157,8 @@
157
  }
158
 
159
  function toggleFullScreen() {
160
- var imageContainer = document.querySelector('.image-container');
161
- imageContainer.classList.toggle('fullscreen-image');
162
  }
163
  </script>
164
  <footer>
@@ -166,4 +166,5 @@
166
  </footer>
167
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
168
  </body>
169
- </html>
 
 
121
  <div class="container">
122
  <h1>Generated Image</h1>
123
  <div class="image-container">
124
+ <a href="{{ url_for('static', filename='example.jpeg') }}" target="_blank">
125
+ <img src="{{ url_for('static', filename='example.jpeg') }}" alt="Generated Image" onclick="toggleFullScreen()">
126
  </a>
127
  </div>
128
  <div class="button-container">
 
157
  }
158
 
159
  function toggleFullScreen() {
160
+ var bodyElement = document.querySelector('body');
161
+ bodyElement.classList.toggle('fullscreen-image');
162
  }
163
  </script>
164
  <footer>
 
166
  </footer>
167
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
168
  </body>
169
+ </html>
170
+