mirror of
https://github.com/SinTan1729/chhoto-url
synced 2025-04-19 19:30:01 -05:00
Compare commits
No commits in common. "3b48ce7b5e81d0e8472676fae16b1d7134030253" and "0d58e626a4bae560e221ad4100364a19175f096d" have entirely different histories.
3b48ce7b5e
...
0d58e626a4
4 changed files with 6 additions and 8 deletions
|
@ -45,7 +45,7 @@ for small. URL means, well... URL. So the name simply means Small URL.
|
|||
stays under 5MB under normal use.)
|
||||
- Counts number of hits for each short link in a privacy respecting way
|
||||
i.e. only the hit is recorded, and nothing else.
|
||||
- Has a mobile friendly UI, and automatic dark mode.
|
||||
- Has a mobile friendly UI.
|
||||
- Has a public mode, where anyone can add links without authentication. Deleting
|
||||
or listing available links will need admin access using the password.
|
||||
- Allows setting the URL of your website, in case you want to conveniently
|
||||
|
|
|
@ -78,7 +78,7 @@
|
|||
<p>Please enter password to access this website</p>
|
||||
<input type="password" id="password" />
|
||||
<button class="pure-button pure-button-primary" value="default">Log in</button>
|
||||
<p id="wrong-pass" hidden>Wrong password!</p>
|
||||
<p id="wrong-pass" hidden> </p>
|
||||
</form>
|
||||
</dialog>
|
||||
|
||||
|
|
|
@ -234,10 +234,12 @@ const submitLogin = () => {
|
|||
document.getElementById("container").style.filter = "blur(0px)"
|
||||
document.getElementById("login-dialog").close();
|
||||
password.value = '';
|
||||
document.getElementById("wrong-pass").hidden = true;
|
||||
refreshData();
|
||||
} else {
|
||||
document.getElementById("wrong-pass").hidden = false;
|
||||
const wrongPassBox = document.getElementById("wrong-pass");
|
||||
wrongPassBox.innerHTML = "Wrong password!";
|
||||
wrongPassBox.style.color = "light-dark(red, #ff1a1a)";
|
||||
wrongPassBox.hidden = false;
|
||||
password.focus();
|
||||
}
|
||||
})
|
||||
|
|
|
@ -139,10 +139,6 @@ div[name="links-div"] {
|
|||
text-align: center;
|
||||
}
|
||||
|
||||
#wrong-pass {
|
||||
color: light-dark(red, #ff1a1a);
|
||||
}
|
||||
|
||||
/* Settings for mobile devices */
|
||||
@media (pointer:none),
|
||||
(pointer:coarse) {
|
||||
|
|
Loading…
Reference in a new issue