memex-in commited on
Commit
cc20e0e
·
verified ·
1 Parent(s): e2b3da0

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +54 -19
index.html CHANGED
@@ -1,19 +1,54 @@
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
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Iframe Generator</title>
7
+ <style>
8
+ body {
9
+ font-family: Arial, sans-serif;
10
+ }
11
+ #iframe-container {
12
+ margin-top: 20px;
13
+ }
14
+ iframe {
15
+ width: 100%;
16
+ height: 500px;
17
+ margin-bottom: 10px;
18
+ border: 1px solid #ddd;
19
+ }
20
+ </style>
21
+ </head>
22
+ <body>
23
+
24
+ <h2>Iframe Generator</h2>
25
+
26
+ <input type="text" id="urlInput" placeholder="Enter URL">
27
+ <input type="number" id="countInput" placeholder="Number of iframes">
28
+ <button onclick="generateIframes()">Generate Iframes</button>
29
+
30
+ <div id="iframe-container"></div>
31
+
32
+ <script>
33
+ function generateIframes() {
34
+ const url = document.getElementById('urlInput').value;
35
+ const count = parseInt(document.getElementById('countInput').value);
36
+ const container = document.getElementById('iframe-container');
37
+
38
+ // Clear existing iframes
39
+ container.innerHTML = '';
40
+
41
+ if (url && count > 0) {
42
+ for (let i = 0; i < count; i++) {
43
+ const iframe = document.createElement('iframe');
44
+ iframe.src = url;
45
+ container.appendChild(iframe);
46
+ }
47
+ } else {
48
+ alert('Please enter a valid URL and iframe count.');
49
+ }
50
+ }
51
+ </script>
52
+
53
+ </body>
54
+ </html>