-
Notifications
You must be signed in to change notification settings - Fork 18
/
index.html
190 lines (120 loc) · 5.28 KB
/
index.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>OLX </title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap.css" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!-- Css -->
<link rel="stylesheet" href="style.css">
<!-- Manifest -->
<link rel="manifest" href="manifest.json">
<!-- Add to home screen for Safari on iOS -->
<meta name="" content="yes">
<meta name="" content="black">
<meta name="" content="OLX Pak">
<link rel="" href="Images/192.png">
<meta name="Olx Pak" content="Images/144.png">
<meta name="Olx Pak" content="#5C307F">
<!-- Manifest ENd -->
</head>
<body onload="showAddOnload()">
<div class="Main">
<div class="header" id="myHeader">
<a href="index.html" id="img"><img src="Images/logo.png" height="100px" width="100px"></a>
<h3 id="title">Pakistan Largest Market Place</h3>
<button class="account" onclick="window.location='My account/account.html'">My Account</button>
<button class="SubmitAD" onclick="window.location='Submit Add/ad.html'">Submit An Ad</button>
</div>
<div class="SearchDiv container jumbotron">
<div class="searchTab">
<input type="search" id="txtSearch" placeholder="Search" style="border:none">
<img src="Images/search.png" onclick="searchAds()" id="searchImg">
</div>
</div>
<div class="titleDiv">
<h1 class="heading container" id="heading" data-toggle="collapse" data-target="#collapseExample" aria-expanded="false" aria-controls="collapseExample">Categories<img src="Images/dropdown.png" id="dropdown"></h1>
</div>
<div class="container categories" id="catogries">
<div class="collapse collapse in" id="collapseExample" >
<div>
<ul class="catogriesRow">
<li>
<a onclick="allads()"><img src="Images/logo.png" alt=""></a>All Ads
</li>
<li>
<a onclick="searchbike()"><img src="Images/bike.png" alt=""></a>Bikes
</li>
<li >
<a onclick="searchCars()"><img src="Images/car.png" alt=""></a>Cars
</li>
<li>
<a onclick="searchMobiles()"><img src="Images/mobile.jpg" alt=""></a>Mobiles
</li>
<li>
<a onclick="searchFurnitures()"><img src="Images/furniture.png" alt=""></a>Furniture
</li>
<li>
<a onclick="searchAnimals()"><img src="Images/animals.png" alt=""></a>Animals
</li>
<li>
<a onclick="searchKids()"><img src="Images/images.png" alt=""></a>Kids
</li>
</ul>
</div>
</div>
</div>
<div class="titleDiv">
<h1 class="heading container" id="headingAds" > Ads</h1>
</div>
<div class="allAds" id="allAds">
<div id="offlineMessage" style="display: none;">
<h2>View Your Offline Ads</h2>
<button class="btn btn-danger" onclick="window.location.href='My account/account.html'">View Offline Ads</button>
</div>
</div>
<div class="loader" style="display: block;" id="loader">
<img src="loader.gif" alt="Loading" >
<div></div>
</div>
</div>
<div class="modal product_view" id="product_view">
<div class="modal-dialog">
<div class="modal-content" id="ModalMain">
</div>
</div>
</div>
<div class="alert-messages text-center">
</div>
<!-- BootStarp -->
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap.js"></script>
<!-- Firebase -->
<script src="https://www.gstatic.com/firebasejs/5.0.4/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.0.4/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.1.0/firebase.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.1.0/firebase.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.2.0/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyDEsL6stJ4-PQ2LV-rzvzWFGHHxmhSqVDs",
authDomain: "pakistan-olx-1.firebaseapp.com",
databaseURL: "https://pakistan-olx-1.firebaseio.com",
projectId: "pakistan-olx-1",
storageBucket: "pakistan-olx-1.appspot.com",
messagingSenderId: "719427536807"
};
firebase.initializeApp(config);
</script>
<script src="app.js"></script>
</body>
</html>