File tree 1 file changed +45
-0
lines changed
1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="UTF-8 ">
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6
+ < title > Button Names</ title >
7
+
8
+ < style >
9
+ body {
10
+ font-family : 'Arial' , sans-serif;
11
+ margin : 0 ;
12
+ padding : 20px ;
13
+ background-color : white;
14
+ color : black;
15
+ }
16
+
17
+ @media (prefers-color-scheme : dark) {
18
+ body {
19
+ background-color : # 333 ;
20
+ color : # fff ;
21
+ }
22
+ }
23
+
24
+ pre {
25
+ white-space : pre-wrap;
26
+ font-size : 14px ;
27
+ line-height : 1.4 ;
28
+ }
29
+ </ style >
30
+ </ head >
31
+ < body >
32
+
33
+ < script >
34
+ fetch ( 'https://raw.githubusercontent.com/LinkStackOrg/LinkStack/main/database/seeders/ButtonSeeder.php' )
35
+ . then ( response => response . text ( ) )
36
+ . then ( data => {
37
+ const names = data . match ( / ' n a m e ' \s * = > \s * ' ( .+ ?) ' / g) . map ( match => match . match ( / ' n a m e ' \s * = > \s * ' ( .+ ?) ' / ) [ 1 ] ) ;
38
+ const namesString = names . join ( '\n' ) ;
39
+ document . body . innerHTML = '<pre>' + namesString + '</pre>' ;
40
+ } )
41
+ . catch ( error => console . error ( 'Error fetching file:' , error ) ) ;
42
+ </ script >
43
+
44
+ </ body >
45
+ </ html >
You can’t perform that action at this time.
0 commit comments