|
92 | 92 | color: #B0B0B0; |
93 | 93 | margin-bottom: 20px; |
94 | 94 | } |
95 | | - .commands-section ul { |
96 | | - list-style: none; |
97 | | - padding: 15px; |
98 | | - border-radius: 5px; |
| 95 | + .commands-section { |
| 96 | + width: 100%; |
| 97 | + margin: 20px auto; |
| 98 | + border-collapse: collapse; |
99 | 99 | text-align: left; |
| 100 | + background-color: #1A1A1A; |
| 101 | + border-radius: 8px; |
| 102 | + overflow: hidden; |
| 103 | + } |
| 104 | + .commands-section th { |
| 105 | + background-color: #2F3A44; |
| 106 | + padding: 12px; |
| 107 | + font-size: 18px; |
| 108 | + color: #FFFFFF; |
| 109 | + border-bottom: 2px solid #B0B0B0; |
100 | 110 | } |
101 | | - .commands-section li { |
| 111 | + .commands-section td { |
| 112 | + padding: 12px; |
102 | 113 | font-size: 16px; |
103 | 114 | color: #B0B0B0; |
104 | | - margin: 10px 0; |
| 115 | + border-bottom: 1px solid #2F3A44; |
105 | 116 | font-family: 'Courier New', Courier, monospace; |
106 | | - display: flex; |
107 | | - justify-content: space-between; |
108 | | - align-items: center; |
| 117 | + } |
| 118 | + .commands-section tr:hover { |
| 119 | + background-color: #2F3A44; |
109 | 120 | } |
110 | 121 | .copy-button { |
111 | 122 | background-color: #B0B0B0; |
|
377 | 388 | const copyButtons = document.querySelectorAll('.copy-button'); |
378 | 389 | copyButtons.forEach(button => { |
379 | 390 | button.addEventListener('click', () => { |
380 | | - const commandText = button.previousElementSibling.textContent; |
| 391 | + const commandText = button.getAttribute('data-command'); |
381 | 392 | navigator.clipboard.writeText(commandText).then(() => { |
382 | 393 | alert('Command copied to clipboard!'); |
383 | 394 | }); |
|
446 | 457 | </div> |
447 | 458 | <div id="commands" class="tab-pane"> |
448 | 459 | <h2>Komendy HackerOS</h2> |
449 | | - <ul class="commands-section"> |
450 | | - <li><span>hacker update</span> <button class="copy-button">Kopiuj</button> (aktualizuje snapa, apt, flatpaka, firmware) – narzędzie napisane w Go.</li> |
451 | | - <li><span>hacker</span> <button class="copy-button">Kopiuj</button> (manager pakietów – możesz go używać zamiast apt).</li> |
452 | | - <li><span>hacker unpack</span> <button class="copy-button">Kopiuj</button> (instaluje narzędzia do gier, cyberbezpieczeństwa i inne polecane narzędzia przez HackerOS).</li> |
453 | | - <li><span>hacker unpack cybersecurity</span> <button class="copy-button">Kopiuj</button> (instaluje narzędzia do cyberbezpieczeństwa).</li> |
454 | | - <li><span>hacker unpack gaming</span> <button class="copy-button">Kopiuj</button> (instaluje narzędzia do gier).</li> |
455 | | - <li><span>hacker unpack gaming noroblox</span> <button class="copy-button">Kopiuj</button> (instaluje narzędzia do gier bez Roblox).</li> |
456 | | - <li><span>hacker unpack emulators</span> <button class="copy-button">Kopiuj</button> (instaluje emulatory).</li> |
457 | | - <li><span>hacker syslog</span> <button class="copy-button">Kopiuj</button> (pokazuje logi systemowe).</li> |
458 | | - <li><span>hacker help</span> <button class="copy-button">Kopiuj</button> (pokazuje listę komend).</li> |
459 | | - <li><span>hacker help-ui</span> <button class="copy-button">Kopiuj</button> (pokazuje listę komend w ładnym UI).</li> |
460 | | - <li><span>hacker unpack devtools</span> <button class="copy-button">Kopiuj</button> (instaluje narzędzia do programowania).</li> |
461 | | - <li><span>hacker unpack add-ons</span> <button class="copy-button">Kopiuj</button> (instaluje dodatki polecane przez HackerOS).</li> |
462 | | - <li><span>hacker unpack gs</span> <button class="copy-button">Kopiuj</button> (instaluje narzędzia do gier i cyberbezpieczeństwa).</li> |
463 | | - <li><span>hacker unpack xanmod</span> <button class="copy-button">Kopiuj</button> (instaluje jądro XanMod).</li> |
464 | | - <li><span>hacker unpack liquorix</span> <button class="copy-button">Kopiuj</button> (instaluje jądro Liquorix).</li> |
465 | | - <li><span>remove-current-kernel</span> <button class="copy-button">Kopiuj</button> (usuwa aktualne jądro – po uruchomieniu komendy hacker unpack xanmod/liquorix użyj tej komendy. Więcej o instalacji customowych jąder dowiesz się na HackerOS Documentation).</li> |
466 | | - <li><span>hlh</span> <button class="copy-button">Kopiuj</button> (poznaj narzędzia CLI dla Hacker Lang).</li> |
467 | | - </ul> |
| 460 | + <table class="commands-section"> |
| 461 | + <thead> |
| 462 | + <tr> |
| 463 | + <th>Komenda</th> |
| 464 | + <th>Opis</th> |
| 465 | + <th>Akcja</th> |
| 466 | + </tr> |
| 467 | + </thead> |
| 468 | + <tbody> |
| 469 | + <tr> |
| 470 | + <td>hacker update</td> |
| 471 | + <td>Aktualizuje snapa, apt, flatpaka, firmware – narzędzie napisane w Go.</td> |
| 472 | + <td><button class="copy-button" data-command="hacker update">Kopiuj</button></td> |
| 473 | + </tr> |
| 474 | + <tr> |
| 475 | + <td>hacker</td> |
| 476 | + <td>Manager pakietów – możesz go używać zamiast apt.</td> |
| 477 | + <td><button class="copy-button" data-command="hacker">Kopiuj</button></td> |
| 478 | + </tr> |
| 479 | + <tr> |
| 480 | + <td>hacker unpack</td> |
| 481 | + <td>Instaluje narzędzia do gier, cyberbezpieczeństwa i inne polecane narzędzia przez HackerOS.</td> |
| 482 | + <td><button class="copy-button" data-command="hacker unpack">Kopiuj</button></td> |
| 483 | + </tr> |
| 484 | + <tr> |
| 485 | + <td>hacker unpack cybersecurity</td> |
| 486 | + <td>Instaluje narzędzia do cyberbezpieczeństwa.</td> |
| 487 | + <td><button class="copy-button" data-command="hacker unpack cybersecurity">Kopiuj</button></td> |
| 488 | + </tr> |
| 489 | + <tr> |
| 490 | + <td>hacker unpack gaming</td> |
| 491 | + <td>Instaluje narzędzia do gier.</td> |
| 492 | + <td><button class="copy-button" data-command="hacker unpack gaming">Kopiuj</button></td> |
| 493 | + </tr> |
| 494 | + <tr> |
| 495 | + <td>hacker unpack gaming noroblox</td> |
| 496 | + <td>Instaluje narzędzia do gier bez Roblox.</td> |
| 497 | + <td><button class="copy-button" data-command="hacker unpack gaming noroblox">Kopiuj</button></td> |
| 498 | + </tr> |
| 499 | + <tr> |
| 500 | + <td>hacker unpack emulators</td> |
| 501 | + <td>Instaluje emulatory.</td> |
| 502 | + <td><button class="copy-button" data-command="hacker unpack emulators">Kopiuj</button></td> |
| 503 | + </tr> |
| 504 | + <tr> |
| 505 | + <td>hacker syslog</td> |
| 506 | + <td>Pokazuje logi systemowe.</td> |
| 507 | + <td><button class="copy-button" data-command="hacker syslog">Kopiuj</button></td> |
| 508 | + </tr> |
| 509 | + <tr> |
| 510 | + <td>hacker help</td> |
| 511 | + <td>Pokazuje listę komend.</td> |
| 512 | + <td><button class="copy-button" data-command="hacker help">Kopiuj</button></td> |
| 513 | + </tr> |
| 514 | + <tr> |
| 515 | + <td>hacker help-ui</td> |
| 516 | + <td>Pokazuje listę komend w ładnym UI.</td> |
| 517 | + <td><button class="copy-button" data-command="hacker help-ui">Kopiuj</button></td> |
| 518 | + </tr> |
| 519 | + <tr> |
| 520 | + <td>hacker unpack devtools</td> |
| 521 | + <td>Instaluje narzędzia do programowania.</td> |
| 522 | + <td><button class="copy-button" data-command="hacker unpack devtools">Kopiuj</button></td> |
| 523 | + </tr> |
| 524 | + <tr> |
| 525 | + <td>hacker unpack add-ons</td> |
| 526 | + <td>Instaluje dodatki polecane przez HackerOS.</td> |
| 527 | + <td><button class="copy-button" data-command="hacker unpack add-ons">Kopiuj</button></td> |
| 528 | + </tr> |
| 529 | + <tr> |
| 530 | + <td>hacker unpack gs</td> |
| 531 | + <td>Instaluje narzędzia do gier i cyberbezpieczeństwa.</td> |
| 532 | + <td><button class="copy-button" data-command="hacker unpack gs">Kopiuj</button></td> |
| 533 | + </tr> |
| 534 | + <tr> |
| 535 | + <td>hacker unpack xanmod</td> |
| 536 | + <td>Instaluje jądro XanMod.</td> |
| 537 | + <td><button class="copy-button" data-command="hacker unpack xanmod">Kopiuj</button></td> |
| 538 | + </tr> |
| 539 | + <tr> |
| 540 | + <td>hacker unpack liquorix</td> |
| 541 | + <td>Instaluje jądro Liquorix.</td> |
| 542 | + <td><button class="copy-button" data-command="hacker unpack liquorix">Kopiuj</button></td> |
| 543 | + </tr> |
| 544 | + <tr> |
| 545 | + <td>remove-current-kernel</td> |
| 546 | + <td>Usuwa aktualne jądro – po uruchomieniu komendy hacker unpack xanmod/liquorix użyj tej komendy. Więcej o instalacji customowych jąder dowiesz się na HackerOS Documentation.</td> |
| 547 | + <td><button class="copy-button" data-command="remove-current-kernel">Kopiuj</button></td> |
| 548 | + </tr> |
| 549 | + <tr> |
| 550 | + <td>hlh</td> |
| 551 | + <td>Poznaj narzędzia CLI dla Hacker Lang.</td> |
| 552 | + <td><button class="copy-button" data-command="hlh">Kopiuj</button></td> |
| 553 | + </tr> |
| 554 | + </tbody> |
| 555 | + </table> |
468 | 556 | </div> |
469 | 557 | <div id="hacker-mode" class="tab-pane"> |
470 | 558 | <h2>Sesje HackerOS</h2> |
|
0 commit comments