memex-in commited on
Commit
3727919
·
verified ·
1 Parent(s): 28247f8

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +30 -18
index.html CHANGED
@@ -1,19 +1,31 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Bulk Website Opener</title>
6
+ <style>
7
+ body { font-family: sans-serif; padding: 20px; }
8
+ textarea { width: 100%; height: 200px; }
9
+ button { padding: 10px 20px; margin-top: 10px; font-size: 16px; }
10
+ </style>
11
+ </head>
12
+ <body>
13
+ <h2>Bulk Website Opener</h2>
14
+ <p>Enter one URL per line (include https://):</p>
15
+ <textarea id="urls" placeholder="https://example.com"></textarea><br>
16
+ <button onclick="openWebsites()">Open Websites</button>
17
+
18
+ <script>
19
+ function openWebsites() {
20
+ const urls = document.getElementById("urls").value.split('\n');
21
+ urls.forEach(url => {
22
+ const trimmed = url.trim();
23
+ if (trimmed) {
24
+ const finalUrl = trimmed.startsWith("http") ? trimmed : "https://" + trimmed;
25
+ window.open(finalUrl, '_blank');
26
+ }
27
+ });
28
+ }
29
+ </script>
30
+ </body>
31
  </html>