From 1fd954d49a2a9668515bf9a4ea4480338f582b1c Mon Sep 17 00:00:00 2001 From: Percs <83934299+Percslol@users.noreply.github.com> Date: Tue, 7 May 2024 14:57:12 -0500 Subject: [PATCH] update dev server --- static/index.html | 38 ++++++--------------- static/ui.js | 86 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 97 insertions(+), 27 deletions(-) create mode 100644 static/ui.js diff --git a/static/index.html b/static/index.html index 5ab468a..db1e87d 100644 --- a/static/index.html +++ b/static/index.html @@ -6,39 +6,23 @@ Document + + - \ No newline at end of file diff --git a/static/ui.js b/static/ui.js new file mode 100644 index 0000000..6882248 --- /dev/null +++ b/static/ui.js @@ -0,0 +1,86 @@ +navigator.serviceWorker.register("./sw.js", { + scope: __scramjet$config.prefix +}) +BareMux.SetTransport("BareMod.BareClient", (location.protocol === "https:" ? "https" : "http") + "://" + location.host + "/bare/") +const flex = css`display: flex;`; +const col = css`flex-direction: column;`; +const store = $store({ + url: "https://google.com", + wispurl: "wss://wisp.mercurywork.shop/", + bareurl: (location.protocol === "https:" ? "https" : "http") + "://" + location.host + "/bare/", +}, { ident: "settings", backing: "localstorage", autosave: "auto" }); +BareMux.SetTransport("BareMod.BareClient", (location.protocol === "https:" ? "https" : "http") + "://" + location.host + "/bare/") +function App() { + this.urlencoded = ""; + this.css = ` + width: 100%; + height:100%; + color: #e0def4; + display: flex; + align-items: center; + justify-content: center; + flex-direction:column; + h1 { + font-family: "Inter"; + text-align: center; + } + iframe { + border: 8px solid #11528f; + background-color: #11528f; + border-radius: 25px; + margin: 2em; + width: calc(100% - 4em); + height: calc(100% - 8em); + } + + input.bar { + border: none; + outline: none; + color: #191724; + height:2em; + width:60%; + text-align:center; + border-radius: 5px; + background-color: #eb6f92; + } + .cfg * { + margin: 2px; + } + .buttons button { + border: 4px solid #11528f; + background-color: #eb6f92; + color: #191724; + } + .cfg input { + border: 3px solid #3d84a8; + background-color: #eb6f92; + outline: none; + } + `; + + return html` +
+

Percury Unblocker

+ surf the unblocked and mostly buggy web + +
+ + + + +
+ + + + +
+
+ (store.url = e.target.value)} on:keyup=${(e) => e.keyCode == 13 && console.log(this.urlencoded = __scramjet$config.prefix + __scramjet$config.codec.encode(e.target.value))} /> + +
+ ` +} + +window.addEventListener("load", () => { + document.body.appendChild(h(App)) +}) \ No newline at end of file