-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
309879c
commit d56c47c
Showing
5 changed files
with
42 additions
and
75 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,39 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Ciphy's First Web Store</title> | ||
<link rel="stylesheet" type="text/css" href="style.css"> | ||
<script> | ||
var urlStr = window.location.href; | ||
var searchParams = new URL(urlStr); | ||
|
||
var prodFileName = url.searchParams.get("file"); | ||
var prodName = url.searchParams.get("name"); | ||
var prodPrice = url.searchParams.get("price"); | ||
|
||
window.onload = function () { | ||
var fileName = prodFileName + ".jpg"; | ||
|
||
document.getElementById("prodImage").src = fileName; | ||
document.getElementById("prodName").innerText = prodName; | ||
document.getElementById("prodPrice").innerText = prodPrice; | ||
|
||
alert(prodName, prodPrice, fileName); | ||
} | ||
</script> | ||
</head> | ||
|
||
<body> | ||
<header> | ||
<a href="index.html" class="left"><img src="logo.jpg"></a> | ||
<input class="right" type="button" name="login" value="Log in / Sign Up"> | ||
<input class="right" type="button" name="cart" value="Cart"> | ||
</header> | ||
<section name="view"> | ||
<img id="prodImage"> | ||
<br /><span id="prodPrice" />€ | ||
<br /><span id="prodName" /> | ||
</section> | ||
</body> | ||
</html> |