Initial commit
This commit is contained in:
51
index.html
Normal file
51
index.html
Normal file
@@ -0,0 +1,51 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Online Fruit Store</title>
|
||||
<link rel="shortcut icon" href="./icon/favicon/favicon.ico" type="image/x-icon" />
|
||||
<link rel="icon" href="./icon/favicon/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" href="./index.css" type="text/css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="dynamic-background"></div>
|
||||
<table id="banner">
|
||||
<tr>
|
||||
<td width="3%"></td>
|
||||
<td style="text-align: right" width="6%">
|
||||
<img class="banner_img" width="64%" height="64%" src="./icon/icon.svg">
|
||||
</td>
|
||||
<td width="70%">
|
||||
<p>Online Fruit Store</p>
|
||||
</td>
|
||||
<td width="6%">
|
||||
<img class="banner_img" src="./icon/search.svg" alt="Search">
|
||||
</td>
|
||||
<td width="6%">
|
||||
<img class="banner_img" id="cart" src="./icon/cart.svg" alt="Cart">
|
||||
</td>
|
||||
<td width="6%">
|
||||
<img class="banner_img" src="./icon/user.svg" alt="User">
|
||||
</td>
|
||||
<td width="3%"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!--open index_login.php to determine which page to redirect-->
|
||||
<script>
|
||||
var existence = document.getElementById("login");
|
||||
if (!existence) {
|
||||
// Create the overlay div and add it to the page
|
||||
var overlay = document.createElement("div");
|
||||
overlay.id = "overlay";
|
||||
document.body.appendChild(overlay);
|
||||
|
||||
// Create the iframe and add it to the overlay div
|
||||
var iframe = document.createElement("iframe");
|
||||
iframe.setAttribute("src", "./login/index_login.php");
|
||||
iframe.id = "login";
|
||||
overlay.appendChild(iframe);
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user