Skip to content
Snippets Groups Projects
Commit de9380a0 authored by Elferink, A.S. (Amber)'s avatar Elferink, A.S. (Amber)
Browse files

links goed aangepast

parent b6ec1d17
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ var ProductBox = class {
}
else
{
textnode = document.createTextNode(quantity);
textnode = document.createTextNode("amount: " + quantity);
}
volumeEl.appendChild(textnode);
box.appendChild(volumeEl);
......
......@@ -15,7 +15,7 @@ router.get('/:username', function(req, res, next) {
});
//authorises if the user may access the page
var auth = function (req, res, next) {
if(req.session && req.session.user === req.query)
if(req.session && req.session.user === req.param('username'))
{
return next();
}
......
......@@ -5,7 +5,7 @@
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script defer src="https://use.fontawesome.com/releases/v5.0.9/js/all.js" integrity="sha384-8iPTk2s/jMVj81dnzb/iFR2sdA7u06vHJyyLlAd4snFpCl/SnyUjRrbdJsw1pGIl" crossorigin="anonymous"></script>
<link rel='stylesheet' href='stylesheets/style.css' /><!-- dit zo laten staan, de express-handlebars zoekt hem automatisch in de stylesheets map-->
<link rel='stylesheet' href='/stylesheets/style.css' /><!-- dit zo laten staan, de express-handlebars zoekt hem automatisch in de stylesheets map-->
</head>
<body>
......@@ -15,9 +15,9 @@
{{{body}}}
</main>
<!-- basis javascript van bootstrap-->
<script src="libraries/jquery.min.js"></script>
<script src="/libraries/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script type=text/javascript src="javascripts/profile.js"></script>
<script type=text/javascript src="/javascripts/profile.js"></script>
</body>
</html>
\ No newline at end of file
<header>
<img src="images/website-header.png" alt="layout of ingedrients">
<img src="/images/website-header.png" alt="layout of ingedrients">
</header>
<nav>
......
......@@ -13,8 +13,9 @@
</section>-->
<h1>{{title}}</h1>
<h2>Search for products</h2>
<input type="text" id="productSearch" placeholder="search for products">
<br>
<section id="productBox" class="row"></section>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment