Skip to content

Commit fbef243

Browse files
committed
refactor: Imporve UI
1 parent ba03b51 commit fbef243

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

static/index.html

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
font-family: 'Roboto', sans-serif;
1010
margin: 0;
1111
padding: 0;
12-
background-color: black;
1312
min-height: 100vh;
1413
}
1514

@@ -91,18 +90,10 @@
9190
margin: 5px 0;
9291
}
9392

94-
.flag {
95-
position: fixed;
96-
top: 10px;
97-
left: 10px;
98-
width: 50px;
99-
height: auto;
100-
z-index: 1000;
101-
}
102-
10393
#console {
10494
width: 100%;
105-
height: 300px;
95+
height: 20%;
96+
overflow: auto;
10697
font-family: monospace;
10798
text-align: left;
10899
}
@@ -128,6 +119,11 @@
128119
}
129120

130121
document.addEventListener('DOMContentLoaded', () => {
122+
// Fix max-width of console container
123+
const element = document.getElementById('console');
124+
const currentWidth = element.offsetWidth;
125+
element.style.maxWidth = `${currentWidth}px`;
126+
131127
const exploitButton = document.getElementById('exploit-button');
132128
exploitButton.onclick = () => {
133129
import('./payload.js');
@@ -175,17 +171,16 @@ <h1>PSFree-Luckfox Web Dashboard for PS4 9.00</h1>
175171
<h2> ★ v1.1.1 ★ </h2>
176172
</header>
177173
<main>
178-
<div id='output' class='output' hidden>
179-
</div>
174+
<div id='output' class='output' hidden></div>
180175
<div class='button-group'>
181176
<button id='exploit-button' name='run_psfree_lapse' class='button'><i class='fas fa-play'></i> Exploit</button>
182177
<button id='payloads-900-button' name='payloads_900' class='button'><i class='fas fa-play'></i> 9.00 Payloads</button>
183178
</div>
184179
<div class='button-group'>
185180
<button id='shutdown-button' name='shutdown' class='button'><i class='fas fa-power-off'></i> Shutdown Luckfox</button>
186181
<button id='disable-eth0-button' name='eth0' class='button'><i class='fas fa-network-wired'></i> Disable Eth0</button>
187-
<pre id='console'></pre>
188182
</main>
183+
<pre id='console'></pre>
189184
<footer>
190185
<p>by <a href='https://github.com/prodeveloper0/PSFree-Luckfox'>@prodeveloper0</a></p>
191186
<p>credits:

0 commit comments

Comments
 (0)