Advertisement
Sufferrrrrr

Untitled

Jan 28th, 2025
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5.21 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>Script Hub</title>
  5. <!-- Link to Open Sans font from Google Fonts -->
  6. <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600&display=swap" rel="stylesheet">
  7.  
  8. <script>
  9. function searchPendulums() {
  10.     let input = document.getElementById("searchBar").value.toLowerCase();
  11.     let category = document.getElementById("categorySelect").value.toLowerCase();
  12.     let rows = document.querySelectorAll(".table-container table");
  13.     rows.forEach(table => {
  14.         let found = false;
  15.         let cells = table.querySelectorAll("td");
  16.         let categoryText = table.querySelector(".category").innerText.toLowerCase();
  17.         let descriptionText = table.querySelector(".description").innerText.toLowerCase();
  18.         cells.forEach(cell => {
  19.             if (cell.innerText.toLowerCase().includes(input) &&
  20.                (category === "all" || categoryText.includes(category) || descriptionText.includes(category))) {
  21.                found = true;
  22.             }
  23.         });
  24.         table.style.display = found ? "block" : "none";
  25.     });
  26. }
  27. </script>
  28.  
  29. <style>
  30.     body {
  31.         font-family: 'Open Sans', sans-serif; /* Apply Open Sans font to the body */
  32.     }
  33.     .table-container {
  34.         display: flex;
  35.         justify-content: center;
  36.         gap: 20px;
  37.         flex-wrap: wrap; /* Allows tables to wrap on smaller screens */
  38.         max-width: 100%;
  39.         overflow: hidden;
  40.     }
  41.     table {
  42.         margin: 20px;
  43.         border: 1px solid #CCC;
  44.         font-size: 120%;
  45.         max-width: 100%;
  46.         box-sizing: border-box; /* Prevents overflow */
  47.         display: none; /* Hide all tables by default */
  48.     }
  49.     td {
  50.         padding: 10px;
  51.     }
  52.     img {
  53.         display: block;
  54.         max-width: 100%; /* Ensures images don't overflow */
  55.     }
  56.     input {
  57.         padding: 5px;
  58.         width: 300px;
  59.         font-size: 16px;
  60.     }
  61.     .tabs {
  62.         text-align: center;
  63.         margin: 20px 0;
  64.     }
  65.     .tab-links {
  66.         display: inline-block;
  67.         padding: 10px 20px;
  68.         margin: 0 5px;
  69.         background-color: #f1f1f1;
  70.         cursor: pointer;
  71.         font-weight: bold;
  72.     }
  73.     .tab-links:hover {
  74.         background-color: #ddd;
  75.     }
  76.     .category {
  77.         font-size: 80%;
  78.         color: #888;
  79.         display: block;
  80.         margin-top: 5px;
  81.     }
  82.     .description {
  83.         font-size: 80%;
  84.         color: #888;
  85.         display: block;
  86.         margin-top: 5px;
  87.     }
  88.     select {
  89.         padding: 5px;
  90.         font-size: 16px;
  91.         margin: 20px auto;
  92.         display: block;
  93.     }
  94.     footer {
  95.         text-align: center;
  96.         font-size: 14px;
  97.         color: #888;
  98.         margin-top: 40px;
  99.         padding: 20px 0;
  100.         border-top: 1px solid #CCC;
  101.     }
  102.     footer .copyright {
  103.         font-weight: bold;
  104.     }
  105. </style>
  106. </head>
  107. <body>
  108. <h1 style="text-align: center; margin-top: 20px;">Your Script Hub Name</h1>
  109.  
  110. <!-- Tab Navigation -->
  111. <div class="tabs">
  112.     <div class="tab-links" onclick="window.location.href='https://example.com'">Tab 1</div>
  113.     <div class="tab-links" onclick="window.location.href='https://example.com'">Tab 2</div>
  114.     <div class="tab-links" onclick="window.location.href='https://example.com'">Tab 3</div>
  115. </div>
  116.  
  117. <div style="text-align: center; margin-bottom: 20px;">
  118.     <input type="text" id="searchBar" placeholder="Search scripts..." onkeyup="searchPendulums()">
  119. </div>
  120.  
  121. <!-- Category Dropdown -->
  122. <div style="text-align: center;">
  123.     <select id="categorySelect" onchange="searchPendulums()">
  124.         <option value="all">All Categories</option>
  125.         <option value="scripts for exploiters">Scripts for Exploiters</option>
  126.         <option value="scripts for developers">Scripts for Developers</option>
  127.     </select>
  128. </div>
  129.  
  130. <div class="table-container">
  131.     <!-- Pendulum Simulation - Scripts for Exploiters -->
  132.     <table width="500">
  133.         <tr>
  134.             <td width="240"><img src="https://simpop.org/pendulum/thumb.png" style="display:block"></td>
  135.             <td>
  136.                 <a href="https://simpop.org/pendulum/pendulum.htm">Pendulum Simulation</a>
  137.                 <span class="category">Category: Scripts for Exploiters</span>
  138.                 <span class="description">Description: A simulation for physics experiments involving pendulums.</span>
  139.             </td>
  140.         </tr>
  141.     </table>
  142.  
  143.     <!-- Lakakaka - Scripts for Developers -->
  144.     <table width="500">
  145.         <tr>
  146.             <td width="240"><img src="https://simpop.org/pendulum/thumb.png" style="display:block"></td>
  147.             <td>
  148.                 <a href="https://simpop.org/pendulum/lakakaka.htm">lakakaka</a>
  149.                 <span class="category">Category: Scripts for Developers</span>
  150.                 <span class="description">Description: A tool for developers to test pendulum-based simulations.</span>
  151.             </td>
  152.         </tr>
  153.     </table>
  154. </div>
  155.  
  156. <script>
  157.     // Initially show all tables
  158.     document.querySelectorAll(".table-container table").forEach(table => {
  159.         table.style.display = "block";
  160.     });
  161. </script>
  162.  
  163. <!-- Footer -->
  164. <footer>
  165.     <p class="copyright">© YourScriptHubName 2025</p>
  166. </footer>
  167.  
  168. </body>
  169. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement