-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
98 lines (85 loc) · 2.29 KB
/
index.html
File metadata and controls
98 lines (85 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html>
<head>
<title>Ro’eh Link Tester</title>
<style>
body {
font-family: 'serif';
background: #0f172a;
color: #e2e8f0;
display: flex;
flex-direction: column;
align-items: center;
padding: 40px;
}
.logo {
width: 80px;
margin-bottom: 15px;
}
h1 {
color: white;
font-size: 28px;
margin-bottom: 10px;
}
input {
width: 80%;
max-width: 400px;
padding: 10px;
border-radius: 8px;
border: none;
margin-top: 20px;
}
button {
margin-top: 15px;
padding: 10px 20px;
background-color: #10b981;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
}
.result {
margin-top: 25px;
font-size: 18px;
font-weight: bold;
}
</style>
</head>
<body>
<!-- Custom logo URL provided by user -->
<img src="https://i.postimg.cc/nzKWJz4B/i-want-it-to-be-meaningfully-designed-simple-sleek-but-includes-a-shepherds-staff-and-an-eye-the-l.png" class="logo" alt="Ro'eh logo">
<h1>Ro’eh Link Tester</h1>
<p>Paste a link below to see if it looks safe:</p>
<input type="text" id="linkInput" placeholder="https://example.com">
<button onclick="testLink()">Test Link</button>
<div id="result" class="result"></div>
<script>
function testLink() {
const link = document.getElementById("linkInput").value.trim();
const result = document.getElementById("result");
if (!link) {
result.innerHTML = "⚠️ Please enter a link.";
result.style.color = "#facc15";
return;
}
let message = "";
let isSafe = true;
if (!link.startsWith("https://")) {
message += "🔒 This link is not using HTTPS. <br>";
isSafe = false;
}
if (link.includes("@") || link.length > 100) {
message += "❌ This link looks suspicious (it has special characters or is too long).<br>";
isSafe = false;
}
if (isSafe) {
result.style.color = "#10b981";
result.innerHTML = " This gate is safe. You are safe to enter";
} else {
result.style.color = "#f87171";
result.innerHTML = message + "<br><br>⚠️ This gate is not safe.";
}
}
</script>
</body>
</html>