Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit 7b2a2bd

Browse files
Add #link functionality, new theme
1 parent b0c2380 commit 7b2a2bd

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

public/js/appSuggestions.js

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,24 @@ window.onload = function () {
7070
if (window.location.hash.includes('#custom')) {
7171
// Get the custom URL after the = sign
7272
let customURL = window.location.hash.split('=')[1];
73-
if (localStorage.getItem('reloaded') !== 'true') {
73+
if (localStorage.getItem('reloaded') !== 'true' && localStorage.getItem('customApps')) {
7474
adress.value = customURL;
7575
form.dispatchEvent(new Event('submit'));
7676
}
7777
}
78-
};
78+
if (window.location.hash.includes('#link')) {
79+
let link = window.location.hash.split('=')[1];
80+
let iframe = document.getElementById('uv-iframe');
81+
iframe.classList.remove('dnone');
82+
iframe.style.display = 'absolute';
83+
iframe.style.width = '100%';
84+
iframe.style.height = '100%';
85+
iframe.style.border = 'none';
86+
iframe.style.left = '0';
87+
iframe.style.top = '0';
88+
iframe.style.right = '0';
89+
iframe.style.zIndex = '9999';
90+
adress.value = link;
91+
form.dispatchEvent(new Event('submit'));
92+
}
93+
}

src/pages/settings.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ import Password from '../components/password';
112112
<option value="pink-and-gray">Pink And Gray</option>
113113
<option value="nord">Nord</option>
114114
<option value="scoria">Scoria</option>
115+
<option value="winter">Winter</option>
115116
<option value="earth">Earth</option>
116117
<option value="connected">Connected</option>
117118
<option value="terminal">Terminal</option>

src/styles/globals.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,16 @@
174174
--scroll-bar-thumb-hover-color: #ff001f;
175175
--input-bg-color: #ff001f;
176176
}
177+
.winter {
178+
--bg-color: #151c36;
179+
--text-color: #fff8e6;
180+
--border-color: #fbdcc4;
181+
--text-bg-color: #485778;
182+
--scroll-bar-track-color: #151c36;
183+
--scroll-bar-thumb-color: #485778;
184+
--scroll-bar-thumb-hover-color: #abb1bc;
185+
--input-bg-color: #485778;
186+
}
177187
.earth {
178188
--bg-color: #285430;
179189
--text-color: #e5d9b6;

0 commit comments

Comments
 (0)