Update update-check.html
This commit is contained in:
+56
-4
@@ -1,12 +1,64 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Crapfixer Update Check</title>
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
body {
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
background-color: #f4f6f8;
|
||||
color: #333;
|
||||
padding: 2rem;
|
||||
max-width: 600px;
|
||||
margin: auto;
|
||||
}
|
||||
h1 {
|
||||
color: #2c3e50;
|
||||
}
|
||||
#status {
|
||||
background: #fff;
|
||||
padding: 1rem;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
||||
margin-top: 1rem;
|
||||
}
|
||||
a {
|
||||
color: #0077cc;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.donate {
|
||||
margin-top: 3rem;
|
||||
padding: 1rem;
|
||||
background-color: #e8f5e9;
|
||||
border-left: 5px solid #4caf50;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.donate strong {
|
||||
display: block;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
.donate a {
|
||||
margin-right: 1rem;
|
||||
display: inline-block;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>🔍 Crapfixer Update Check</h1>
|
||||
<p id="status"></p>
|
||||
<p id="status">Checking version...</p>
|
||||
|
||||
<div class="donate">
|
||||
<strong>💖 Support Crapfixer</strong>
|
||||
Every donation helps us provide more updates.
|
||||
- Thanks, Belim 🙏
|
||||
<br><br>
|
||||
<a href="https://www.paypal.com/donate/?hosted_button_id=M9DW4VNKH9ECQ" target="_blank">💸 Donate via PayPal</a>
|
||||
<a href="https://ko-fi.com/builtbybel" target="_blank">☕ Buy me a Ko-fi</a>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const latestVersion = "0.51.150";
|
||||
@@ -27,7 +79,7 @@
|
||||
const status = document.getElementById("status");
|
||||
|
||||
if (!userVersion) {
|
||||
status.innerText = "❓ No version provided. Append ?version=0.51.100 to the URL.";
|
||||
status.innerText = "❓ No version found. Please open this page from the Crapfixer app.";
|
||||
} else {
|
||||
const result = compareVersions(userVersion, latestVersion);
|
||||
if (result < 0) {
|
||||
|
||||
Reference in New Issue
Block a user