Skip to content

Commit 99f941f

Browse files
Create index.html
1 parent 90d04ad commit 99f941f

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

index.html

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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(/'name'\s*=>\s*'(.+?)'/g).map(match => match.match(/'name'\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>

0 commit comments

Comments
 (0)