-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathps4games.html
136 lines (123 loc) · 4.6 KB
/
ps4games.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Lexend+Mega&display=swap" rel="stylesheet">
<link rel="stylesheet" href="store.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<title>Playstation Games</title>
</head>
<body>
<div class="header">
<div class="container">
<div class="navbar">
<div class="logo">
<img src="icon.png">
</div>
<nav>
<ul id="MenuItems">
<li><a href="index.html">Home</a> </li>
<li><a href="ps4games.html">Playstation</a> </li>
<li><a href="xbox.html">Xbox</a></li>
<li><a href="">Nintendo</a></li>
<li><a href="">PC</a></li>
<li><a href="login.html">Sign Up/In</a></li>
</ul>
</nav>
<a href="cart.html"><img src="https://pngimg.com/uploads/shopping_cart/shopping_cart_PNG38.png" width="30px" height="30px" ></a>
<img src="menu.png" class="menu-icon" onclick="menutoggle()">
</div>
</div>
</div>
<!----ps4 products------>
<div class="container2">
<h2 class="title">PS4 GAMES</h2>
<div class="row" id="product_list">
</div>
</div>
<!----footer------>
<div class="footer">
<div class="container">
<div class="row">
<div class="footer-col-1">
<h3>Download Our App</h3>
<p>Available on Apple App Store and Google Play</p>
<div class="app-logo">
<img src="http://assets.stickpng.com/images/5a902db97f96951c82922874.png">
<img src="http://assets.stickpng.com/images/5a902dbf7f96951c82922875.png">
</div>
</div>
<div class="footer-col-2">
<img src="https://cdn.akamai.steamstatic.com/steam/apps/1228570/header.jpg?t=1593725286">
<p>Making Game delivery easy</p>
</div>
<div class="footer-col-3">
<h3>Useful Links</h3>
<ul>
<li>About Us</li>
<li>Return Policy</li>
<li>Customer Service</li>
<li>Locate store near you</li>
</ul>
</div>
<div class="footer-col-4">
<h3>By</h3>
<ul>
<li>Shreyans Mulkutkar</li>
<li>9819693167</li>
<li>1914120</li>
<li>B4 IT</li>
</ul>
</div>
</div>
<hr>
<p class="copyright">Copyright</p>
</div>
</div>
<script>
var settings = {
"url": "http://127.0.0.1:5000/",
"method": "GET",
"timeout": 0,
};
$.ajax(settings).done(function (response) {
// console.log(response);
result = JSON.parse(response)
temp=""
result.map(item=>{
temp+='<div class="col-4">\
<img src='+item.link+'>\
<h4>'+item.name+'</h4>\
<div class="rating">\
<i class="fa fa-star"></i>\
<i class="fa fa-star"></i>\
<i class="fa fa-star"></i>\
<i class="fa fa-star"></i>\
<i class="fa fa-star-o"></i>\
</div>\
<p>'+item.price+'</p>\
</div>'
})
document.getElementById('product_list').innerHTML=temp;
});
</script>
<!-- script for menu -->
<script language="JavaScript">
var MenuItems = document.getElementById("MenuItems");
MenuItems.style.maxHeight = "0px";
function menutoggle(){
var MenuItems = document.getElementById("MenuItems");
if(MenuItems.style.maxHeight == "0px")
{
MenuItems.style.maxHeight = "200px";
}
else{
MenuItems.style.maxHeight = "0px";
}
}
</script>
</body>
</html>