darkc0de commited on
Commit
9910fb1
·
verified ·
1 Parent(s): 5acf892

🐳 18/03 - 05:12 - Make the browser window automatically open at launch. Also make all icons and links on desktop also available in start menu.

Browse files
Files changed (1) hide show
  1. index.html +24 -3
index.html CHANGED
@@ -790,16 +790,32 @@
790
  </div>
791
  </div>
792
  </div>
793
- <div class="p-2 space-y-1">
794
  <button class="w-full flex items-center gap-3 px-3 py-2 rounded-lg hover:bg-cyan-900/20 transition text-left text-sm text-gray-300" onclick="openWindow('terminal'); toggleStartMenu()">
795
  <i data-lucide="terminal" class="w-4 h-4 text-cyan-400"></i> Terminal
796
  </button>
797
  <button class="w-full flex items-center gap-3 px-3 py-2 rounded-lg hover:bg-cyan-900/20 transition text-left text-sm text-gray-300" onclick="openWindow('files'); toggleStartMenu()">
798
  <i data-lucide="folder" class="w-4 h-4 text-yellow-400"></i> Files
799
  </button>
800
- <button class="w-full flex items-center gap-3 px-3 py-2 rounded-lg hover:bg-cyan-900/20 transition text-left text-sm text-gray-300" onclick="openWindow('settings'); toggleStartMenu()">
801
- <i data-lucide="settings" class="w-4 h-4 text-gray-400"></i> Settings
802
  </button>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
803
  </div>
804
  <div class="p-2 border-t border-cyan-900/30">
805
  <button class="w-full flex items-center gap-3 px-3 py-2 rounded-lg hover:bg-red-900/20 transition text-left text-sm text-red-400">
@@ -997,6 +1013,11 @@
997
  const loginStr = now.toLocaleDateString() + ', ' + now.toLocaleTimeString();
998
  document.getElementById('last-login').textContent = loginStr;
999
 
 
 
 
 
 
1000
  // Desktop icon selection
1001
  document.querySelectorAll('.desktop-icon').forEach(icon => {
1002
  icon.addEventListener('click', (e) => {
 
790
  </div>
791
  </div>
792
  </div>
793
+ <div class="p-2 space-y-1 max-h-80 overflow-y-auto">
794
  <button class="w-full flex items-center gap-3 px-3 py-2 rounded-lg hover:bg-cyan-900/20 transition text-left text-sm text-gray-300" onclick="openWindow('terminal'); toggleStartMenu()">
795
  <i data-lucide="terminal" class="w-4 h-4 text-cyan-400"></i> Terminal
796
  </button>
797
  <button class="w-full flex items-center gap-3 px-3 py-2 rounded-lg hover:bg-cyan-900/20 transition text-left text-sm text-gray-300" onclick="openWindow('files'); toggleStartMenu()">
798
  <i data-lucide="folder" class="w-4 h-4 text-yellow-400"></i> Files
799
  </button>
800
+ <button class="w-full flex items-center gap-3 px-3 py-2 rounded-lg hover:bg-red-900/20 transition text-left text-sm text-gray-300" onclick="openWindow('hacktools'); toggleStartMenu()">
801
+ <i data-lucide="shield-alert" class="w-4 h-4 text-red-400"></i> Hack Tools
802
  </button>
803
+ <button class="w-full flex items-center gap-3 px-3 py-2 rounded-lg hover:bg-green-900/20 transition text-left text-sm text-gray-300" onclick="openWindow('network'); toggleStartMenu()">
804
+ <i data-lucide="network" class="w-4 h-4 text-green-400"></i> Network
805
+ </button>
806
+ <button class="w-full flex items-center gap-3 px-3 py-2 rounded-lg hover:bg-purple-900/20 transition text-left text-sm text-gray-300" onclick="openWindow('browser'); toggleStartMenu()">
807
+ <i data-lucide="globe" class="w-4 h-4 text-purple-400"></i> DarkBrowser
808
+ </button>
809
+ <button class="w-full flex items-center gap-3 px-3 py-2 rounded-lg hover:bg-pink-900/20 transition text-left text-sm text-gray-300" onclick="openWindow('calculator'); toggleStartMenu()">
810
+ <i data-lucide="calculator" class="w-4 h-4 text-pink-400"></i> Calculator
811
+ </button>
812
+ <div class="border-t border-cyan-900/30 my-2"></div>
813
+ <a href="https://ko-fi.com/Z8Z51E5TIG" target="_blank" class="w-full flex items-center gap-3 px-3 py-2 rounded-lg hover:bg-orange-900/20 transition text-left text-sm text-gray-300 no-underline" onclick="toggleStartMenu()">
814
+ <i data-lucide="coffee" class="w-4 h-4 text-orange-400"></i> Buy me a coffee
815
+ </a>
816
+ <a href="https://huggingface.co/darkc0de" target="_blank" class="w-full flex items-center gap-3 px-3 py-2 rounded-lg hover:bg-yellow-900/20 transition text-left text-sm text-gray-300 no-underline" onclick="toggleStartMenu()">
817
+ <i data-lucide="smile" class="w-4 h-4 text-yellow-400"></i> Visit the Dev on HF
818
+ </a>
819
  </div>
820
  <div class="p-2 border-t border-cyan-900/30">
821
  <button class="w-full flex items-center gap-3 px-3 py-2 rounded-lg hover:bg-red-900/20 transition text-left text-sm text-red-400">
 
1013
  const loginStr = now.toLocaleDateString() + ', ' + now.toLocaleTimeString();
1014
  document.getElementById('last-login').textContent = loginStr;
1015
 
1016
+ // Auto-open browser on launch
1017
+ setTimeout(() => {
1018
+ openWindow('browser');
1019
+ }, 500);
1020
+
1021
  // Desktop icon selection
1022
  document.querySelectorAll('.desktop-icon').forEach(icon => {
1023
  icon.addEventListener('click', (e) => {