-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1559 from csathnere/Electronics
Electronics
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Flipkart</title> | ||
</head> | ||
|
||
<body> | ||
<header id="header" class="text-center text-secondary fs-4"></header> | ||
<h1 style="text-align: center;">Comming Soon</h1> | ||
<footer id="footer" style="background-color: #203a61 !important"></footer> | ||
<script> | ||
document.addEventListener("DOMContentLoaded", () => { | ||
[ | ||
{ id: "footer", url: "../../components/footer.html" }, | ||
{ id: "header", url: "../../components/header.html" }, | ||
].forEach(({ id, url }) => | ||
fetch(url) | ||
.then((res) => res.text()) | ||
.then((data) => (document.getElementById(id).innerHTML = data)) | ||
.catch((err) => console.error(`Error loading ${url}:`, err)) | ||
); | ||
}); | ||
|
||
</script> | ||
</body> | ||
|
||
</html> |