-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.js
32 lines (32 loc) · 867 Bytes
/
global.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
let products = [
{
id: 1,
title: "clockDigital",
desc:"Lorem dolor sit amet consectetur, adipisicing elit. Atque, culpa?",
img_src: "imges/Canon_4245B001_PowerShot_SX210_IS_Digital_675599 copy 2.jpg",
size:"large",
qty: 1,
me:'no'
},
{
id: 2,
title: "labtop desktop",
desc:"Lorem dolor sit amet consectetur, adipisicing elit. Atque, culpa?",
img_src: "imges/th.jpg",
size:"small",
qty: 1,
me:'no'
},
{
id: 3,
title: "head phone",
desc:"Lorem ipsum dolor sit amet consectetur, adipisicing elit. Atque, culpa?",
img_src: "imges/th copy.jpg",
size:"medium",
qty: 1,
me:'no'
}
]
if (!localStorage.getItem('data_api')) {
localStorage.setItem('data_api', JSON.stringify(products))
}