Skip to content

Commit

Permalink
Visual changes to the start screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Heath123 committed Mar 16, 2023
1 parent 41c6a76 commit 5b63276
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
28 changes: 16 additions & 12 deletions html/startPage/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ <h1 class='title'>pakkit</h1>
node-minecraft-protocol and ProxyPass.</p>
<form onsubmit="startProxy(event)">
<ul class="form-wrapper">

<li class="form-row">
<label for="platform">Platform:</label>
<select id="platform" onchange="platformChange()">
Expand Down Expand Up @@ -77,7 +76,7 @@ <h1 class='title'>pakkit</h1>
<option value="1.7.10">1.7.10</option>
</select>
<select disabled id="version-bedrock" style="display: none;">
<option value="1.15.2">1.16.221 (latest)</option>
<option value="1.15.2">1.16.221</option>
</select>
</li>
<li class="form-row">
Expand All @@ -88,16 +87,21 @@ <h1 class='title'>pakkit</h1>
<label for="connect-port">Connect port:</label>
<input id="connect-port" name="connect-port" placeholder="25565" type="text" value="25565"/>
</li>
<li class="form-row" id="auth-row">
<label for="connect-port">Auth method:</label>
<span>
<label class="switch" style="padding: 0;">
<input id="auth-online" type="checkbox" value="auth-online"/>
<span class="slider round"></span>
</label>
Online mode
</span>
</li>
<div id="auth-row">
<li class="form-row">
<label for="auth-online">Auth method:</label>
<span>Enable online mode?</span>
</span>
<li class="form-row">
<label></label>
<span>
<label class="switch" style="padding: 0;">
<input id="auth-online" type="checkbox" value="auth-online"/>
<span class="slider round"></span>
</label>
</span>
</li>
</div>
<li class="form-row topspacer">
<label for="listen-port">Listen port:</label>
<input id="listen-port" name="listen-port" placeholder="25566" type="text" value="25566"/>
Expand Down
2 changes: 1 addition & 1 deletion html/startPage/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function platformChange()
} else {
document.getElementById('version').style.display = 'block'
document.getElementById('version-bedrock').style.display = 'none'
document.getElementById('auth-row').style.display = 'flex'
document.getElementById('auth-row').style.display = 'block'
}
loadSettings(platform)
lastPlatform = platform
Expand Down

0 comments on commit 5b63276

Please sign in to comment.