Advertisement
SynthIIllyt

Untitled

Jun 26th, 2025
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.92 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.     <title>iOS Mod Menu with Pastebin</title>
  7.     <style>
  8.         body {
  9.             margin: 0;
  10.             font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  11.             background: #f0f2f5;
  12.             display: flex;
  13.             justify-content: center;
  14.             align-items: center;
  15.             height: 100vh;
  16.             overflow: hidden;
  17.         }
  18.  
  19.         .container {
  20.             position: relative;
  21.             width: 100%;
  22.             max-width: 400px;
  23.             padding: 20px;
  24.         }
  25.  
  26.         .menu-toggle {
  27.             position: fixed;
  28.             top: 20px;
  29.             left: 20px;
  30.             padding: 10px 20px;
  31.             background: #007aff;
  32.             color: white;
  33.             border: none;
  34.             border-radius: 10px;
  35.             font-size: 16px;
  36.             cursor: pointer;
  37.             transition: background 0.3s;
  38.         }
  39.  
  40.         .menu-toggle:hover {
  41.             background: #005bb5;
  42.         }
  43.  
  44.         .mod-menu {
  45.             position: fixed;
  46.             top: 0;
  47.             left: -100%;
  48.             width: 80%;
  49.             max-width: 300px;
  50.             height: 100%;
  51.             background: rgba(255, 255, 255, 0.95);
  52.             backdrop-filter: blur(10px);
  53.             box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  54.             transition: left 0.3s ease-in-out;
  55.             display: flex;
  56.             flex-direction: column;
  57.         }
  58.  
  59.         .mod-menu.active {
  60.             left: 0;
  61.         }
  62.  
  63.         .menu-header {
  64.             display: flex;
  65.             justify-content: space-between;
  66.             align-items: center;
  67.             padding: 15px;
  68.             border-bottom: 1px solid #e0e0e0;
  69.         }
  70.  
  71.         .menu-header h2 {
  72.             margin: 0;
  73.             font-size: 20px;
  74.             color: #000;
  75.         }
  76.  
  77.         .close-btn {
  78.             background: none;
  79.             border: none;
  80.             font-size: 20px;
  81.             cursor: pointer;
  82.             color: #007aff;
  83.         }
  84.  
  85.         .menu-content {
  86.             flex: 1;
  87.             overflow-y: auto;
  88.             padding: 15px;
  89.         }
  90.  
  91.         .mod-section {
  92.             margin-bottom: 20px;
  93.         }
  94.  
  95.         .mod-section h3 {
  96.             margin: 0 0 10px;
  97.             font-size: 16px;
  98.             color: #333;
  99.         }
  100.  
  101.         .mod-item {
  102.             display: flex;
  103.             justify-content: space-between;
  104.             align-items: center;
  105.             padding: 10px 0;
  106.             font-size: 14px;
  107.         }
  108.  
  109.         .switch {
  110.             position: relative;
  111.             display: inline-block;
  112.             width: 50px;
  113.             height: 24px;
  114.         }
  115.  
  116.         .switch input {
  117.             opacity: 0;
  118.             width: 0;
  119.             height: 0;
  120.         }
  121.  
  122.         .slider {
  123.             position: absolute;
  124.             cursor: pointer;
  125.             top: 0;
  126.             left: 0;
  127.             right: 0;
  128.             bottom: 0;
  129.             background: #ccc;
  130.             transition: 0.4s;
  131.             border-radius: 24px;
  132.         }
  133.  
  134.         .slider:before {
  135.             position: absolute;
  136.             content: "";
  137.             height: 20px;
  138.             width: 20px;
  139.             left: 2px;
  140.             bottom: 2px;
  141.             background: white;
  142.             transition: 0.4s;
  143.             border-radius: 50%;
  144.         }
  145.  
  146.         input:checked + .slider {
  147.             background: #007aff;
  148.         }
  149.  
  150.         input:checked + .slider:before {
  151.             transform: translateX(26px);
  152.         }
  153.  
  154.         input[type="range"] {
  155.             width: 100px;
  156.             accent-color: #007aff;
  157.         }
  158.  
  159.         .action-btn {
  160.             padding: 5px 10px;
  161.             background: #007aff;
  162.             color: white;
  163.             border: none;
  164.             border-radius: 5px;
  165.             cursor: pointer;
  166.         }
  167.  
  168.         .action-btn:hover {
  169.             background: #005bb5;
  170.         }
  171.  
  172.         .status {
  173.             font-size: 12px;
  174.             color: #555;
  175.             margin-top: 10px;
  176.         }
  177.     </style>
  178. </head>
  179. <body>
  180.     <div class="container">
  181.         <!-- Menu Toggle Button -->
  182.         <button class="menu-toggle" onclick="toggleMenu()">☰ Mod Menu</button>
  183.  
  184.         <!-- Mod Menu -->
  185.         <div class="mod-menu" id="modMenu">
  186.             <div class="menu-header">
  187.                 <h2>Mod Menu</h2>
  188.                 <button class="close-btn" onclick="toggleMenu()"></button>
  189.             </div>
  190.             <div class="menu-content">
  191.                 <div class="mod-section">
  192.                     <h3>Game Settings</h3>
  193.                     <div class="mod-item">
  194.                         <span>Unlimited Health</span>
  195.                         <label class="switch">
  196.                             <input type="checkbox" id="healthToggle" onchange="updateModSettings()">
  197.                             <span class="slider"></span>
  198.                         </label>
  199.                     </div>
  200.                     <div class="mod-item">
  201.                         <span>Speed Boost</span>
  202.                         <input type="range" id="speedSlider" min="1" max="100" value="50" onchange="updateModSettings()">
  203.                     </div>
  204.                     <div class="mod-item">
  205.                         <span>Unlock All Levels</span>
  206.                         <button class="action-btn" onclick="unlockLevels()">Unlock</button>
  207.                     </div>
  208.                 </div>
  209.                 <div class="mod-section">
  210.                     <h3>Visuals</h3>
  211.                     <div class="mod-item">
  212.                         <span>Night Mode</span>
  213.                         <label class="switch">
  214.                             <input type="checkbox" id="nightModeToggle" onchange="updateModSettings()">
  215.                             <span class="slider"></span>
  216.                         </label>
  217.                     </div>
  218.                 </div>
  219.                 <div class="mod-section">
  220.                     <h3>Pastebin Sync</h3>
  221.                     <div class="mod-item">
  222.                         <span>Save to Pastebin</span>
  223.                         <button class="action-btn" onclick="saveToPastebin()">Save</button>
  224.                     </div>
  225.                     <div class="mod-item">
  226.                         <span>Status</span>
  227.                         <span class="status" id="pastebinStatus">Not synced</span>
  228.                     </div>
  229.                 </div>
  230.             </div>
  231.         </div>
  232.     </div>
  233.     <script>
  234.         // Pastebin API configuration
  235.         const PASTEBIN_API_KEY = 'HkGr1WNokDoFOLEB1k-xyVCr57cPhJc';
  236.         const PASTEBIN_PASTE_ID = 'YOUR_PASTE_ID'; // Replace with paste ID after first save
  237.         const PASTEBIN_USER_KEY = ''; // Optional: Set after login for private pastes
  238.  
  239.         // Mod settings state
  240.         let modSettings = {
  241.             unlimitedHealth: false,
  242.             speedBoost: 50,
  243.             nightMode: false
  244.         };
  245.  
  246.         // Toggle menu
  247.         function toggleMenu() {
  248.             const menu = document.getElementById('modMenu');
  249.             menu.classList.toggle('active');
  250.         }
  251.  
  252.         // Update mod settings locally
  253.         function updateModSettings() {
  254.             modSettings.unlimitedHealth = document.getElementById('healthToggle').checked;
  255.             modSettings.speedBoost = document.getElementById('speedSlider').value;
  256.             modSettings.nightMode = document.getElementById('nightModeToggle').checked;
  257.             console.log('Updated settings:', modSettings);
  258.             // Optionally apply settings to game here
  259.         }
  260.  
  261.         // Save settings to Pastebin
  262.         async function saveToPastebin() {
  263.             const statusElement = document.getElementById('pastebinStatus');
  264.             statusElement.textContent = 'Saving...';
  265.             try {
  266.                 const response = await fetch('https://pastebin.com/api/api_post.php', {
  267.                     method: 'POST',
  268.                     headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
  269.                     body: new URLSearchParams({
  270.                         api_dev_key: PASTEBIN_API_KEY,
  271.                         api_option: 'paste',
  272.                         api_paste_code: JSON.stringify(modSettings),
  273.                         api_paste_private: '1', // 0=public, 1=unlisted, 2=private
  274.                         api_paste_name: 'Mod Settings',
  275.                         api_paste_expire_date: '1M', // 1 month expiration
  276.                         api_user_key: PASTEBIN_USER_KEY // Optional for private pastes
  277.                     })
  278.                 });
  279.                 const result = await response.text();
  280.                 if (result.includes('pastebin.com/')) {
  281.                     statusElement.textContent = 'Saved to Pastebin!';
  282.                     const pasteId = result.split('/').pop();
  283.                     console.log('Paste ID:', pasteId);
  284.                     // Update PASTEBIN_PASTE_ID in your code with this ID
  285.                 } else {
  286.                     statusElement.textContent = 'Error: ' + result;
  287.                 }
  288.             } catch (error) {
  289.                 statusElement.textContent = 'Error: ' + error.message;
  290.             }
  291.         }
  292.  
  293.         // Fetch settings from Pastebin
  294.         async function fetchFromPastebin() {
  295.             if (!PASTEBIN_PASTE_ID || PASTEBIN_PASTE_ID === 'YOUR_PASTE_ID') {
  296.                 document.getElementById('pastebinStatus').textContent = 'No paste ID set';
  297.                 return;
  298.             }
  299.             try {
  300.                 const response = await fetch(`https://pastebin.com/raw/${PASTEBIN_PASTE_ID}`);
  301.                 if (response.ok) {
  302.                     const data = await response.json();
  303.                     modSettings = data;
  304.                     document.getElementById('healthToggle').checked = modSettings.unlimitedHealth;
  305.                     document.getElementById('speedSlider').value = modSettings.speedBoost;
  306.                     document.getElementById('nightModeToggle').checked = modSettings.nightMode;
  307.                     document.getElementById('pastebinStatus').textContent = 'Synced with Pastebin';
  308.                     console.log('Fetched settings:', modSettings);
  309.                 } else {
  310.                     document.getElementById('pastebinStatus').textContent = 'Error fetching paste';
  311.                 }
  312.             } catch (error) {
  313.                 document.getElementById('pastebinStatus').textContent = 'Error: ' + error.message;
  314.             }
  315.         }
  316.  
  317.         // Unlock levels (placeholder)
  318.         function unlockLevels() {
  319.             console.log('Levels unlocked');
  320.             // Add logic to unlock levels
  321.         }
  322.  
  323.         // Periodically fetch updates (every 10 seconds)
  324.         setInterval(fetchFromPastebin, 10000);
  325.  
  326.         // Initial fetch on page load
  327.         window.onload = fetchFromPastebin;
  328.     </script>
  329. </body>
  330. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement