-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrsecond.html
84 lines (73 loc) · 3.33 KB
/
rsecond.html
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
div{
display: inline-block;
margin: 10px;
justify-content: right;
}
body{
background-color: antiquewhite;
}
a {
background-color: red;
color: white;
padding: 1em 1.5em;
text-decoration: none;
text-transform: uppercase;
}
</style>
</head>
<body>
<a href="cart.html">Go To Cart</a>
<form>
<img src="https://ak1.ostkcdn.com/images/products/is/images/direct/57e55b6b50af4de47b5b254913333668cb30dec4/SAFAVIEH-Adirondack-Vera-Modern-Ombre-Distressed-Stripe-Area-Rug.jpg?imwidth=480&impolicy=medium" alt="">
<h3>SAFAVIEH Adirondack Vera Modern Ombre Distressed Stripe Area Rug</h3>
<span style="font-size: large; color:yellow;">★★★★ </span>7154 Reviews
<h3>Sale Starts atINR208211</h3>
<select name="quantity" id="quantity">
<option value="1">Quantity : 1</option>
<option value="2">Quantity : 2</option>
<option value="3">Quantity : 3</option>
<option value="3">Quantity : 4</option>
<option value="4">Quantity : 5</option>
</select>
<button id="cart">Add To Cart</button>
<p>ITEM# 17338390</p>
<button>Favorits</button>
</form>
<h3>Details</h3>
<p><br>
Protect your floor in style with this chic Adirondack Vera area rug from SAFAVIEH. Machine-woven of enhanced synthetic fibers, this rug is especially durable and virtually non-shedding. <br>The distressed ombre design features subtle tonal shifts in finely detailed stripes and conveniently comes in over 10 different trendy colorways and a range of sizes to meet your needs.
Features:<br>
Stain Resistant & Non-Shedding: Machine-woven from enhanced synthetic fibers for virtually no shedding and stain resistance<br>
Kid and Pet-Friendly: Safe for high-traffic areas of the home and conveniently kid approved and pet-friendly for life's unpredictable messes
<br>
Trendy Style: Ombre pattern beautifully enhances any room of the home, from the living room, dining room, bedroom, entryway, nursery, dorm room, study, home office, or eat-in kitchen
<br>
Easy Maintenance & Durable: Stress-free cleaning includes regular vacuuming and gently blotting out minor stains with a mild detergent or carpet cleaner
<br>
Sleek Pile Height: Pile thickness is 0.43 inches for a soft feeling underfoot and for seamless placement underneath furniture or in entryways
<br>
Featured in SAFAVIEH's Adirondack Collection
</p>
</div>
</div>
</body>
</html>
<script>
document.querySelector("button").addEventListener("click", first);
var obj = JSON.parse(localStorage.getItem("objectr")) || {};
function first(){
event.preventDefault();
var quantitiy = document.getElementById("quantity").value;
obj.second = quantitiy;
console.log(obj, quantitiy)
localStorage.setItem("objectr", JSON.stringify(obj));
}
</script>