Spaces:
Running
Running
Update index.html
Browse files- index.html +54 -19
index.html
CHANGED
@@ -1,19 +1,54 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>
|