ilhamdev commited on
Commit
f54a441
·
verified ·
1 Parent(s): 13e63c8

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +7 -8
index.html CHANGED
@@ -306,14 +306,11 @@ footer {
306
  <div class="toggle-switch" style="position: absolute; top: 10px; right: 10px;">
307
  <input type="checkbox" id="theme-switch">
308
  <label for="theme-switch">
309
- <div class="sun" style="background-color: #ccc;">
310
- <img src="https://i.ibb.co.com/3NwFvrb/image.png" alt="Logo Matahari" style="border-radius: 50%; object-fit: contain;">
311
- </div>
312
- <div class="moon" style="background-color: #4a90e2;">
313
- <img src="https://i.ibb.co.com/Fz1fpSY/image.png" alt="Logo Bulan" style="border-radius: 50%; object-fit: contain;">
314
- </div>
315
  </label>
316
  </div>
 
317
  <div class="main">
318
  <h2>Introduction</h2>
319
  <p>This document provides a simple JavaScript client for interacting with the LuminAI API. The client allows you to send requests with various parameters and receive results from the API.</p>
@@ -467,8 +464,9 @@ window.onscroll = function() {scrollFunction()};
467
 
468
  function scrollFunction() {
469
  if (document.body.scrollTop > 50 || document.documentElement.scrollTop > 50) {
470
- document.querySelector("header").style.padding = "20px 0"; // Menyusut menjadi setengah
471
- document.querySelector("header h1").style.fontSize = "1.25em"; // Menyusut menjadi setengah
 
472
  document.querySelector("header h1").style.textAlign = "left"; // Teks berpindah ke kiri
473
  } else {
474
  document.querySelector("header").style.padding = "40px 0";
@@ -477,6 +475,7 @@ function scrollFunction() {
477
  }
478
  }
479
 
 
480
 
481
  </script>
482
  </body>
 
306
  <div class="toggle-switch" style="position: absolute; top: 10px; right: 10px;">
307
  <input type="checkbox" id="theme-switch">
308
  <label for="theme-switch">
309
+ <div class="sun"></div>
310
+ <div class="moon"></div>
 
 
 
 
311
  </label>
312
  </div>
313
+
314
  <div class="main">
315
  <h2>Introduction</h2>
316
  <p>This document provides a simple JavaScript client for interacting with the LuminAI API. The client allows you to send requests with various parameters and receive results from the API.</p>
 
464
 
465
  function scrollFunction() {
466
  if (document.body.scrollTop > 50 || document.documentElement.scrollTop > 50) {
467
+ document.querySelector("header").style.padding = "10px 0"; // Menyusut menjadi setengah
468
+ document.querySelector("header").style.overflow = "hidden"; // Mencegah h1 meluap
469
+ document.querySelector("header h1").style.fontSize = "1em"; // Menyusut lebih lanjut
470
  document.querySelector("header h1").style.textAlign = "left"; // Teks berpindah ke kiri
471
  } else {
472
  document.querySelector("header").style.padding = "40px 0";
 
475
  }
476
  }
477
 
478
+
479
 
480
  </script>
481
  </body>