File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments