mirror of
https://github.com/DerTyp7/shop-ejs-expressjs.git
synced 2025-10-29 04:22:10 +01:00
Update index.ejs
index fix
This commit is contained in:
@@ -79,7 +79,7 @@
|
||||
</div>
|
||||
<div class="grid-item">
|
||||
<% let randomNr2=Math.floor(Math.random() * products.length); %>
|
||||
<p><%= products[randomNr].name %></p>
|
||||
<p><%= products[randomNr2].name %></p>
|
||||
<img src="/productImage/<%= products[randomNr2].id %>"
|
||||
style='height: 100%; width: 100%; object-fit: contain'
|
||||
onclick="window.open('/product/<%- products[randomNr2].id%>','_self')">
|
||||
@@ -87,7 +87,7 @@
|
||||
</div>
|
||||
<div class="grid-item">
|
||||
<% let randomNr3=Math.floor(Math.random() * products.length); %>
|
||||
<p><%= products[randomNr].name %></p>
|
||||
<p><%= products[randomNr3].name %></p>
|
||||
<img src="/productImage/<%= products[randomNr3].id %>"
|
||||
style='height: 100%; width: 100%; object-fit: contain'
|
||||
onclick="window.open('/product/<%- products[randomNr3].id%>','_self')">
|
||||
@@ -95,7 +95,7 @@
|
||||
</div>
|
||||
<div class="grid-item">
|
||||
<% let randomNr4=Math.floor(Math.random() * products.length); %>
|
||||
<p><%= products[randomNr].name %></p>
|
||||
<p><%= products[randomNr4].name %></p>
|
||||
<img src="/productImage/<%= products[randomNr4].id %>"
|
||||
style='height: 100%; width: 100%; object-fit: contain'
|
||||
onclick="window.open('/product/<%- products[randomNr4].id%>','_self')">
|
||||
@@ -103,7 +103,7 @@
|
||||
</div>
|
||||
<div class="grid-item">
|
||||
<% let randomNr5=Math.floor(Math.random() * products.length); %>
|
||||
<p><%= products[randomNr].name %></p>
|
||||
<p><%= products[randomNr5].name %></p>
|
||||
<img src="/productImage/<%= products[randomNr5].id %>"
|
||||
style='height: 100%; width: 100%; object-fit: contain'
|
||||
onclick="window.open('/product/<%- products[randomNr5].id%>','_self')">
|
||||
|
||||
Reference in New Issue
Block a user