diff --git a/middal/index.html b/middal/index.html index 59db8e7..5959daf 100644 --- a/middal/index.html +++ b/middal/index.html @@ -110,7 +110,7 @@

Browser Extension


-

When you follow our links to visit a brand or retailer’s website or make a purchase, ModeSens may earn a +

When you follow our links to visit a brand or retailer’s website or make a purchase, ModeSens may earn a commission.

@@ -128,4 +128,4 @@

Browser Extension


// console.log(footers) - \ No newline at end of file + \ No newline at end of file diff --git a/middal/menspage.html b/middal/menspage.html index 4bb79c2..13c30dd 100644 --- a/middal/menspage.html +++ b/middal/menspage.html @@ -95,24 +95,6 @@

Community Posts

-

When you follow our links to visit a brand or retailer’s website or make a purchase, ModeSens may earn a commission.

@@ -133,4 +115,4 @@

Browser Extension


document.getElementById('footer').innerHTML = footers; - \ No newline at end of file + \ No newline at end of file diff --git a/middal/scripts/index.js b/middal/scripts/index.js index e5b6adc..fcef8bc 100644 --- a/middal/scripts/index.js +++ b/middal/scripts/index.js @@ -69,14 +69,23 @@ appendData = (data) => { img.setAttribute("id", "pic") img.src = el.image; + let btn8= document.createElement("button"); + btn8.setAttribute("id","btn8") + btn8.innerText="Quick View"; + + //img.append(btn8); + let title = document.createElement("h3"); title.innerText = el.title; let btn = document.createElement("button"); btn.setAttribute("id", "btn") + btn.addEventListener("click",function(){ + window.location.href="mens.html"; + }) btn.innerText = "SHOP NOW"; - div.append(img, title, btn, icon); + div.append(img, btn8,title, btn, icon); document.getElementById("big").append(div); }) @@ -129,6 +138,10 @@ appendDt = (dt) => { img.setAttribute("id", "pic1") img.src = el.image; + let btn9= document.createElement("button"); + btn9.setAttribute("id","btn9") + btn9.innerText="Quick View"; + let title = document.createElement("h4"); title.innerText = el.title; @@ -136,7 +149,7 @@ appendDt = (dt) => { price.innerText = `$ ${el.price}`; - div.append(img, title, price, icon); + div.append(img, btn9, title, price, icon); document.getElementById("box").append(div); }) @@ -203,4 +216,15 @@ function Toggle2(x) { document.getElementById("btn6").style.color = "red"; } -} \ No newline at end of file +} + +document.getElementById("btn1").addEventListener("click",function(){ + window.location.href="mens.html"; +}) + +document.getElementById("btn5").addEventListener("click",function(){ + window.location.href="mens.html"; +}) +document.getElementById("btn2").addEventListener("click",function(){ + window.location.href="mens.html"; +}) \ No newline at end of file diff --git a/middal/scripts/navbar.js b/middal/scripts/navbar.js index 5c4496a..b8f07aa 100644 --- a/middal/scripts/navbar.js +++ b/middal/scripts/navbar.js @@ -2,7 +2,7 @@ function navbar(){ return `