forked from Vaibhav2k/Front-End-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlink.html
111 lines (85 loc) · 4.57 KB
/
link.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
</head>
<script src="script2.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular-sanitize.js"></script>
<link rel="stylesheet" href="master/style2.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css" integrity="sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ" crossorigin="anonymous">
<body ng-app="body-app" >
<div class="top_nav">
<img class="logoimg"src="items/logo.png" alt="" height="52.1px" width="172.1px">
</div>
<div class="two">
<div class="feed" ng-controller="display-objects">
<div class="objs">
<div class="objs-1">
<p class="info_text">{{n1}}</p>
<div class="img_box">
<img class="obj_img"src={{i1}} alt="">
</div>
<div>
<p class="price">{{p1 | currency:"₹ "}}</p>
</div>
<p class="dis">• Sizes Available</p>
<div class="filter-labels2">
<input class="lb" type="radio" id="lb3" name="gender" value="S">
<label for="lb3" >S</label>
<input class="lb" type="radio" id="lb4" name="gender" value="M" checked>
<label for="lb4" >M</label>
<input class="lb" type="radio" id="lb1" name="gender" value="L" >
<label for="lb1" >L</label>
<input class="lb" type="radio" id="lb2" name="gender" value="XL">
<label for="lb2" >XL</label>
</div>
<p class="dis">• 5 Day Return Policy</p>
<p class="dis">• Dry Clean</p>
<p class="dis">• Washable</p>
<p class="dis">• Try and Buy</p>
<p class="dis">• Inclusive All Taxes</p>
</div>
<div class="objs-2">
<button type="button" class="buy" onclick="window.location = 'thnx.html'" name="button">BUY NOW!</button>
</div>
</div>
</div>
<a class="go_bacc" href="index.html">Go Back</a>
</div>
<script>
$(document).ready(function()
{
$('.cb').click(function()
{
var text1 = $(this).val();
$('.objs').hide();
$('.objs:contains("'+text1+'")').show();
});
$('.search_butt').click(function()
{
var text = $(".search_term").val();
$('.objs').hide();
$('.objs:contains("'+text+'")').show();
});
});
var app = angular.module("body-app", []);
app.controller('display-objects', function($scope)
{
var objectsJSON =
'{"_item":[{"name":"Girls Long-Sleeve Tunic T-Shirts","price":"420","image":"items/11.jpg"},{"name":"Boys Long-Sleeve Tunic T-Shirts","price":"699","image":"items/21.jpg"},{"name":"Boys Long-Sleeve Sports T-Shirts","price":"499","image":"items/31.jpg"},{"name":"Girls Long-Sleeve Dress","price":"500","image":"items/41.jpg"},{"name":"Boys Gray Hoodie","price":"1299","image":"items/51.jpg"},{"name":"Girls Dress Blue ","price":"455","image":"items/61.jpg"},{"name":"Girls Pink-Blue Dress Sleeve-Less","price":"700","image":"items/71.jpg"},{"name":"Men Shirt White and Blue","price":"1499","image":"items/81.jpg"},{"name":"Men / Boys Yellow Hoodie","price":"1200","image":"items/91.jpg"},{"name":"Women Dress White Blue","price":"899","image":"items/101.jpg"},{"name":"Women / Girls Denim Dress","price":"4200","image":"items/111.jpg"},{"name":"Women Complete Set Dress","price":"1699","image":"items/121.jpg"},{"name":"Women Dress","price":"2999","image":"items/131.jpg"},{"name":"Women / Girls Hoodie","price":"1900","image":"items/141.jpg"},{"name":"Men / Boys Sweatshirt","price":"4000","image":"items/151.jpg"},{"name":"Men / Boys T-Shirts","price":"3000","image":"items/161.jpg"},{"name":"Men Sweatshirt","price":"3200","image":"items/171.jpg"},{"name":"Boys Long-Sleeve T-Shirts Warm","price":"6000","image":"items/181.jpg"},{"name":"Boys American Style Hoodie","price":"4999","image":"items/191.jpg"},{"name":"Men Half-Sleeves T-Shirts","price":"2000","image":"items/201.jpg"}]}';
var data = JSON.parse(objectsJSON);
var num_storage = sessionStorage.getItem("num");
var name1 = data._item[num_storage].name;
var img1 = data._item[num_storage].image;
var price1 = data._item[num_storage].price;
$scope.n1 = name1;
$scope.i1 = img1;
$scope.p1 = price1;
$scope.n = data;
});
</script>
</body>
</html>