Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
847 changes: 847 additions & 0 deletions MiniProject001/final.html

Large diffs are not rendered by default.

536 changes: 536 additions & 0 deletions MiniProject001/index.html

Large diffs are not rendered by default.

785 changes: 785 additions & 0 deletions MiniProject001/pag2.html

Large diffs are not rendered by default.

802 changes: 802 additions & 0 deletions MiniProject001/pag3.html

Large diffs are not rendered by default.

289 changes: 289 additions & 0 deletions MiniProject001/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,289 @@








let DATA=[
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/WLWTB1500BOS.jpg",
name:"Wilson NBA Team Tiedye Boston Celtics Baketbll",
price:"1799",
brand:"Wilson"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/WLWTB1300CHI.jpg",
name:"Wilson NBA Team Tribute Chicago Bulls Baketbll",
price:"1799",
brand:"Wilson"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/WLWTB1300GOL.jpg",
name:"Wilson NBA Team Tribute Golden State WariorsBasketball",
price:"1799",
brand:"Wilson"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/WLWTB141907.jpg",
name:"Wilson MVP 295 Basketball",
price:"1099",
brand:"Wilson"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/WLWTB1300MIL.jpg",
name:"Wilson NBA Team Tribute Milwaukee Bucks askeball",
price:"1799",
brand:"Wilson"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/WLWTB1500CHI.jpg",
name:"Wilson NBA Team Tiedye Chicago Bulls Basetbal",
price:"1799",
brand:"Wilson"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/WLWTB1300BOS.jpg",
name:"Wilson NBA Team Tribute Boston Celtics Bsketall",
price:"1799",
brand:"Wilson"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/WLWTB1300MEM.jpg",
name:"Wilson NBA Team Tribute Memphis Grizzlie Basetball",
price:"1799",
brand:"Wilson"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/WLWTB920107.jpg",
name:"Wilson NBA DRV Plus Basketball (Granite lue)",
price:"1649",
brand:"Wilson"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/WLWTB920007.jpg",
name:"Wilson NBA DRV Plus Basketball (Brown)", rice:"1649",
brand:"Wilson"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/WLWTB820107.jpg",
name:"Wilson NBA Forge Basketball",
price:"2499",
brand:"Wilson"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/WLWTB720007.jpg",
name:"Wilson NBA Authentic Indoor Outdoor Basktbal",
price:"2999",
brand:"Wilson"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/WLWTB920307.jpg",
name:"Wilson NBA DRV Plus Basketball (Granite ed)",
price:"1649",
brand:"Wilson"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/WLWTB930306.jpg",
name:"Wilson NBA DRV Basketball (Red, Size 6)",
price:"1549",
brand:"Wilson"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/WLWTB930305.jpg",
name:"Wilson NBA DRV Basketball (Red, Size 5)",
price:"1549",
brand:"Wilson"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/WLWTB930207.jpg",
name:"Wilson NBA DRV Basketball (Grey/Blue)", rice:"1549",
brand:"Wilson"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/WLWTB930307.jpg",
name:"Wilson NBA DRV Basketball (Red, Size 7)",
price:"1549",
brand:"Wilson"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/WLWZ40059017.jpg",
name:"Wilson NBA Players Icon LeBRON JAMES Basetbal (Outdoor)",
price:"1999",
brand:"Wilson"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/WLWZ40061017.jpg",
name:"Wilson NBA Players Icon Stephen Curry Baketbll (Outdoor)",
price:"1999",
brand:"Wilson"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/WLWZ40060017.jpg",
name:"Wilson NBA Players Icon Kevin Durant Basetbal (Outdoor)",
price:"1999",
brand:"Wilson"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/SPBBREBOUND.jpg",
name:"Spalding Rebound Basketball (Brick, Size7)",
price:"899",
brand:"Spalding",
},

{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/STABBRSTD9.jpg",
name:"Stag Standard Basket Ball Ring" ,
price:"1800",
brand:"Stag"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/STABBRHDGA20.jpg",
name:"Stag Heavy Duty Galvanized BasketBall Rig Wih Net",
price:"2100",
brand:"Stag"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/STABBRHAT9.jpg",
name:"Stag Hang Time Basket Ball Ring" ,
price:"2000",
brand:"Stag"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/NKAC4354-753.jpg",
name:"Nike Essential Ball Pump (Volt/Black)" ,
price:"1980",
brand:"Nike"

},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/NKAC4354-027.jpg",
name:"Nike Essential Ball Pump (Black/White)" ,
brand:"Nike",
price:"1980",
},

{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/SPBB74532Z.jpg",
name:"Spalding TF-250 Basketball (Brick, Size )",
price:"2099",
brand:"Spalding"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/SPBB83509Z.jpg",
name:"Spalding New York Knicks Basketball (Orage/Ryal, Size 7)",
price:"1379",
brand:"Spalding"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/SPBB83507Z.jpg",
name:"Spalding Miami Heat Basketball (Brick/Yelow,Size 7)",
price:"1399",
brand:"Spalding"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/STABBRSS18.jpg",
name:"Stag Solid Steel Basketball Ring (18 mm)",
price:"1250",
brand:"Stag"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/STABBRHB9.jpg",
name:"Stag Hobby Solid Steel Basketball Ring (mm)",
price:"800",
brand:"Stag"},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/STABBRSS20L.jpg",
name:"Stag Solid Steel Basketball Ring (20 mm)",
price:"1575",
brand:"Stag"},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/SPBB73920Z.jpg",
name:"Spalding NBA Flite Basketball (Size 7)",
price:"1179",
brand:"Spalding"
},

{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/NK844592-002.jpg",
name:"Nike Zoom Devosion Basketball Shoes (Blak/Siver/Volt)",
price:"6999",
brand:"Nike"
},

{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/ADBSS84964L.jpg",
name:"Adidas 3 Series 2015 Basketball Shoes",
price:"6999",
brand:"Adidas"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/NK637382-107L.jpg",
name:"Nike Overplay VIII Basketball Shoes",
price:"4495",
brand:"Nike"
},

{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/SZBBRF000.jpg",
name:"Sklz Rapid Fire",
price:"13999",
brand:"Sklz",
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/SZBBRM00002.jpg",
name:"Sklz Rain Maker",
price:"3099",
brand:"Sklz"

},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/BFTTBLMG40.jpg",
name:"Butterfly Master G40+ Table Tennis Balls (72 Pack)",
price:"5199",
brand:"Butterfly"

},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/BFTTBTST1200.jpg",
name:"Butterfly Stayer 1200 Table Tennis Bat With 2 Balls",
price:"2149",
brand:"Butterfly"

}, {
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/CSVLBLACL.jpg",
name:"Cosco Acclaim Volleyball",
price:"537",
brand:"Cosco"
},
{
image:"https://storage.sg.content-cdn.io/cdn-cgi/image/width=500,height=500,quality=75,format=auto,fit=cover,g=top/in-resources/b368029c-a4dd-448a-a888-58348cb1b144/Images/ProductImages/Source/DOTTBAT751805.jpg",
name:"Donic Waldner 5000 Table Tennis Bat",
price:"4799",
brand:"Donic"
}
]




let links=document.getElementsByTagName("a")
for(let i=3;i<255;i++){
links[i].href="/pag2.html";
}

for(let i=3;i<255;i++){
console.log(links[i].innerText);
links[i].addEventListener('click',function(){
let filtered=DATA.filter(function (a){
if(a.brand==links[i].innerText){
return a;
}
})
let array=[...filtered];
localStorage.setItem("DATA",JSON.stringify(array));
})
}
let no=localStorage.getItem("val") || 0;
document.getElementById("nocart").innerText=no;
Binary file added MiniProject001/sprite.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading