-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloader_pagination.html
More file actions
27 lines (25 loc) · 888 Bytes
/
Copy pathloader_pagination.html
File metadata and controls
27 lines (25 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dynamic HTML Loader</title>
</head>
<body>
<h1>Loaded HTML Files</h1>
<div id="content"></div>
<script>
// Tentukan jumlah file HTML yang akan dimuat
const numberOfFiles = 5; // Sesuaikan dengan jumlah file yang dihasilkan
// Loop melalui setiap file HTML dan muat kontennya
for (let i = 0; i < numberOfFiles; i++) {
const fileName = `dataset/data_${i+1}.html`;
const iframe = document.createElement('iframe');
iframe.src = fileName;
iframe.style.width = "100%";
iframe.style.height = "800px"; // Sesuaikan tinggi iframe
document.getElementById('content').appendChild(iframe);
}
</script>
</body>
</html>