imseldrith commited on
Commit
2e9d744
1 Parent(s): 91b2cb6

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +28 -0
templates/index.html CHANGED
@@ -138,6 +138,21 @@
138
  padding: 20px;
139
  text-align: center;
140
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
141
  </style>
142
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
143
  </head>
@@ -300,6 +315,9 @@
300
  </div>
301
  <footer>
302
  <p>Built with ❤️ by <a href="https://codegenius.me" style="color: red;">Ashiq Hussain Mir</a></p>
 
 
 
303
  </footer>
304
  <script>
305
  function showGeneratingMessage() {
@@ -312,6 +330,16 @@
312
  document.getElementById('generate-button').classList.remove('disabled-button');
313
  }, 7000);
314
  }
 
 
 
 
 
 
 
 
 
 
315
  </script>
316
 
317
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
 
138
  padding: 20px;
139
  text-align: center;
140
  }
141
+ /* Add styles for the page view counter and API page link */
142
+ .page-view-counter {
143
+ font-size: 14px;
144
+ color: #ffffff;
145
+ margin-top: 10px;
146
+ }
147
+ .api-link {
148
+ font-size: 14px;
149
+ color: #ffffff;
150
+ margin-top: 5px;
151
+ text-decoration: none;
152
+ }
153
+ .api-link:hover {
154
+ color: #ff3366;
155
+ }
156
  </style>
157
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
158
  </head>
 
315
  </div>
316
  <footer>
317
  <p>Built with ❤️ by <a href="https://codegenius.me" style="color: red;">Ashiq Hussain Mir</a></p>
318
+ <p class="page-view-counter">
319
+ Page Views: <span id="page-view-count">0</span> | <a href="https://your-api-page-url" class="api-link">API</a>
320
+ </p>
321
  </footer>
322
  <script>
323
  function showGeneratingMessage() {
 
330
  document.getElementById('generate-button').classList.remove('disabled-button');
331
  }, 7000);
332
  }
333
+ // Update the page view counter
334
+ var pageViewCount = 0;
335
+ function updatePageViewCount() {
336
+ pageViewCount++;
337
+ document.getElementById('page-view-count').textContent = pageViewCount;
338
+ }
339
+
340
+ // Call the updatePageViewCount function when the page loads
341
+ window.addEventListener('load', updatePageViewCount);
342
+
343
  </script>
344
 
345
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>