mirror of
https://github.com/DerTyp7/shop-ejs-expressjs.git
synced 2025-10-29 12:32:11 +01:00
a
This commit is contained in:
@@ -46,7 +46,6 @@
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -66,7 +66,7 @@
|
||||
<div class="grid-container">
|
||||
<div class="grid-item">
|
||||
<% let randomNr = Math.floor(Math.random() * products.length); %>
|
||||
<%= products[randomNr].name %>
|
||||
<p><%= products[randomNr].name %></p>
|
||||
<img src="https://m.media-amazon.com/images/I/815eDw--FQS._AC_SL1500_.jpg" style='height: 100%; width: 100%; object-fit: contain' onclick="window.open('/product/<%- products[randomNr].id%>','_self')">
|
||||
</div>
|
||||
<div class="grid-item">
|
||||
@@ -77,15 +77,13 @@
|
||||
</div>
|
||||
<div class="grid-item">
|
||||
<% let randomNr3 = Math.floor(Math.random() * products.length); %>
|
||||
<%= products[randomNr3].name %>
|
||||
<p><%= products[randomNr3].name %></p>
|
||||
<img src="https://m.media-amazon.com/images/I/815eDw--FQS._AC_SL1500_.jpg" style='height: 100%; width: 100%; object-fit: contain' onclick="window.open('/product/"<%- products[randomNr3].id%>','_self')">
|
||||
|
||||
</div>
|
||||
<div class="grid-item">
|
||||
<% let randomNr4 = Math.floor(Math.random() * products.length); %>
|
||||
<%= products[randomNr4].name %>
|
||||
<p><%= products[randomNr4].name %></p>
|
||||
<img src="https://m.media-amazon.com/images/I/815eDw--FQS._AC_SL1500_.jpg" style='height: 100%; width: 100%; object-fit: contain' onclick="window.open('/product/"<%- products[randomNr4].id%>','_self')">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid-container" style="margin-bottom: 100px;">
|
||||
|
||||
Reference in New Issue
Block a user