Skip to content

Commit 8747a2b

Browse files
authored
Add files via upload
1 parent 5807e32 commit 8747a2b

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

index.html

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>PatternVault - Hidden Code Finder</title>
5+
<style>
6+
body { font-family: Arial, sans-serif; background-color: #f0f8ff; text-align: center; padding: 50px; }
7+
h1 { color: #ff4500; }
8+
textarea { width: 80%; height: 100px; font-size: 16px; }
9+
button { background-color: #32cd32; color: white; font-size: 18px; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; }
10+
button:hover { background-color: #228b22; }
11+
#result { margin-top: 20px; font-size: 20px; font-weight: bold; color: #00008b; }
12+
</style>
13+
</head>
14+
<body>
15+
<h1>PatternVault - Hidden Code Finder</h1>
16+
<p>Paste any text below and click the button to reveal the hidden code!</p>
17+
<textarea id="userText" placeholder="Paste your text here..."></textarea><br><br>
18+
<button onclick="findHiddenCode()">Find Hidden Code</button>
19+
<h2 id="result"></h2>
20+
<button onclick="copyCode()">Copy Code</button>
21+
22+
<script>
23+
function findHiddenCode() {
24+
let text = document.getElementById("userText").value;
25+
let words = text.split(/\s+/);
26+
let firstLetters = words.map(word => word[0]).join('');
27+
document.getElementById("result").innerText = "Hidden code: " + firstLetters;
28+
}
29+
30+
function copyCode() {
31+
let code = document.getElementById("result").innerText.replace("Hidden code: ", "");
32+
navigator.clipboard.writeText(code);
33+
alert("Copied: " + code);
34+
}
35+
</script>
36+
</body>
37+
</html>

0 commit comments

Comments
 (0)