mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 14:30:02 -04:00
percury unblocker design refresh
This commit is contained in:
parent
39af54f893
commit
275950387a
1 changed files with 47 additions and 28 deletions
75
static/ui.js
75
static/ui.js
|
@ -90,12 +90,12 @@ function App() {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
iframe {
|
iframe {
|
||||||
border: 4px solid #313131;
|
border: 2px solid #313131;
|
||||||
background-color: #121212;
|
background-color: #121212;
|
||||||
border-radius: 1rem;
|
border-radius: 0.5rem;
|
||||||
margin: 2em;
|
margin: 1em;
|
||||||
margin-top: 0.5em;
|
margin-top: 0.5em;
|
||||||
width: calc(100% - 4em);
|
width: calc(100% - 2em);
|
||||||
height: calc(100% - 8em);
|
height: calc(100% - 8em);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,17 +104,24 @@ function App() {
|
||||||
outline: none;
|
outline: none;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
height: 2em;
|
height: 2em;
|
||||||
width: 60%;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-radius: 0.75em;
|
border-radius: 0.75em;
|
||||||
background-color: #313131;
|
background-color: #313131;
|
||||||
padding: 0.45em;
|
padding: 0.30em;
|
||||||
|
}
|
||||||
|
.input_row > label {
|
||||||
|
font-size: 0.7rem;
|
||||||
|
color: gray;
|
||||||
|
}
|
||||||
|
p {
|
||||||
|
margin: 0;
|
||||||
|
margin-top: 0.2em;
|
||||||
}
|
}
|
||||||
.cfg * {
|
.cfg * {
|
||||||
margin: 2px;
|
margin: 2px;
|
||||||
}
|
}
|
||||||
.buttons button {
|
.buttons button {
|
||||||
border: 2px solid #4c8bf5;
|
border: 1px solid #4c8bf5;
|
||||||
background-color: #313131;
|
background-color: #313131;
|
||||||
border-radius: 0.75em;
|
border-radius: 0.75em;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
@ -131,6 +138,16 @@ function App() {
|
||||||
.input_row input {
|
.input_row input {
|
||||||
flex-grow: 1
|
flex-grow: 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nav button {
|
||||||
|
margin-right: 0.25em;
|
||||||
|
margin-left: 0.25em;
|
||||||
|
color: #fff;
|
||||||
|
outline: none;
|
||||||
|
border: none;
|
||||||
|
border-radius: 0.75em;
|
||||||
|
background-color: #313131;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
let frame = scramjet.createFrame();
|
let frame = scramjet.createFrame();
|
||||||
|
@ -140,34 +157,36 @@ function App() {
|
||||||
<h1>Percury Unblocker</h1>
|
<h1>Percury Unblocker</h1>
|
||||||
<p>surf the unblocked and mostly buggy web</p>
|
<p>surf the unblocked and mostly buggy web</p>
|
||||||
|
|
||||||
<div class=${[flex, col, "cfg"]}>
|
<div class=${[flex, "cfg"]}>
|
||||||
<div class=${[flex, "input_row"]}>
|
|
||||||
|
<div style="align-self: end">
|
||||||
|
<div class=${[flex, "buttons"]}>
|
||||||
|
<button on:click=${() => connection.setTransport("/baremod/index.mjs", [store.bareurl])}>use bare server 3</button>
|
||||||
|
<button on:click=${() =>
|
||||||
|
connection.setTransport("/libcurl/index.mjs", [
|
||||||
|
{
|
||||||
|
wisp: store.wispurl,
|
||||||
|
proxy: store.proxy ? store.proxy : undefined,
|
||||||
|
},
|
||||||
|
])}>use libcurl.js</button>
|
||||||
|
<button on:click=${() => connection.setTransport("/epoxy/index.mjs", [{ wisp: store.wispurl }])}>use epoxy</button>
|
||||||
|
<button on:click=${() => window.open(this.urlencoded)}>open in fullscreen</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class=${[flex, col, "input_row"]}>
|
||||||
<label for="wisp_url_input">Wisp URL:</label>
|
<label for="wisp_url_input">Wisp URL:</label>
|
||||||
<input id="wisp_url_input" bind:value=${use(store.wispurl)}></input>
|
<input id="wisp_url_input" bind:value=${use(store.wispurl)}></input>
|
||||||
</div>
|
</div>
|
||||||
<div class=${[flex, "input_row"]}>
|
<div class=${[flex, col, "input_row"]}>
|
||||||
<label for="bare_url_input">Bare URL:</label>
|
<label for="bare_url_input">Bare URL:</label>
|
||||||
<input id="bare_url_input" bind:value=${use(store.bareurl)}></input>
|
<input id="bare_url_input" bind:value=${use(store.bareurl)}></input>
|
||||||
</div>
|
</div>
|
||||||
<div class=${[flex, "input_row"]}>
|
|
||||||
<label for="proxy_url_input">SOCKS/HTTP Proxy URL:</label>
|
|
||||||
<input id="proxy_url_input" bind:value=${use(store.proxy)}></input>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class=${[flex, "buttons"]}>
|
|
||||||
<button on:click=${() => connection.setTransport("/baremod/index.mjs", [store.bareurl])}>use bare server 3</button>
|
|
||||||
<button on:click=${() =>
|
|
||||||
connection.setTransport("/libcurl/index.mjs", [
|
|
||||||
{
|
|
||||||
wisp: store.wispurl,
|
|
||||||
proxy: store.proxy ? store.proxy : undefined,
|
|
||||||
},
|
|
||||||
])}>use libcurl.js</button>
|
|
||||||
<button on:click=${() => connection.setTransport("/epoxy/index.mjs", [{ wisp: store.wispurl }])}>use epoxy</button>
|
|
||||||
<button on:click=${() => window.open(this.urlencoded)}>open in fullscreen</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<input class="bar" bind:value=${use(store.url)} on:input=${(e) => (store.url = e.target.value)} on:keyup=${(e) => e.keyCode == 13 && frame.go(e.target.value)}></input>
|
<div class=${[flex, "nav"]} style="width: 60%">
|
||||||
|
<button on:click=${() => frame.back()}><-</button>
|
||||||
|
<input class="bar" style="flex: 1" bind:value=${use(store.url)} on:input=${(e) => (store.url = e.target.value)} on:keyup=${(e) => e.keyCode == 13 && frame.go(e.target.value)}></input>
|
||||||
|
<button on:click=${() => frame.forward()}>-></button>
|
||||||
|
</div>
|
||||||
${frame.frame}
|
${frame.frame}
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue