-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
146 lines (137 loc) · 6.61 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
<!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>HOME</title>
<link rel="stylesheet" href="style.css" type="text/css" />
<link rel="icon" href="images/OLX-Logo.png" type="icon" />
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Smlep5jCw/wG7hdkwQ/Z5nLIefveQRIY9nfy6xoR1uRYBtpZgI6339F5dgvm/e9B" crossorigin="anonymous">
<link rel="manifest" href="manifest.json">
</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<div class="container">
<a class="navbar-brand" href="index.html">OLX Pakistan</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<!-- <li class="nav-item active " >
<a class="nav-link" href="#" id="greetUser"></a>
</li> -->
<li class="nav-item active " >
<a class="nav-link"><input class="form-control border-secondary py-2" type="search" name="search" id="search" placeholder="Search Ads Here" onkeyup="searchFunction()"/></a>
</li>
<li class="nav-item active">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" class="userProfile" href="User Profile.html" id="userProfile"></a>
</li>
<li class="nav-item ">
<a class="nav-link" class="favourite" style="display: none" href="favourite.html" id="favourite">Favourites</a>
</li>
<li class="nav-item">
<a class="nav-link" id="postad" href="submitad.html">Post An Ad</a>
</li>
<li class="nav-item" class="inActiveUser" id="inActiveUser">
<a class="nav-link" href="signin.html">Sign In/Register</a>
</li>
<li class="activeUser nav-item" id="activeUser">
<a class="nav-link" href="index.html" onclick="signOut()">Sign Out</a>
</li>
</ul>
</div>
</div>
</nav>
<h1 class="suh text-center text-dark">Recent Ads</h1>
<div class="container">
<div class="form-group">
<label for="category"><b>Select Category</b></label>
<select onchange="selectCategory()" name="category" id="homePageCategorySelection" class="form-control" id="category">
<option>All Categories</option>
<option>Vehicles</option>
<option>Electronics And Home Appliances</option>
<option>Furnitue,Home And Decoration</option>
<option>Fashion And Beauty</option>
<option>Books Sports And Hobbies</option>
</select>
</div>
</div>
<!-- bootstrap Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">New message</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="messages-text" class="col-form-label">Messages:</label>
<div class="modal-body" id="messages-text"><p id="modal-list"></p></div>
</div>
<div class="form-group">
<label for="recipient-messege" class="col-form-label">Type Your Message Here</label>
<input type="text" class="form-control" id="recipient-messege">
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" onclick="sendMessage()">Send Message</button>
</div>
</div>
</div>
</div>
<!-- Ads -->
<div class="container" id="container">
<div class="row" id="row">
</div>
</div>
<!-- Footer -->
<footer class="grid py-5 bg-dark">
<div class="container">
<div class="container">
<address style="color:#f0f5f5;font-family:Times New Roman;Text-Align:center">
Website Owner : Muhammad Hoti<sup>©</sup><br>
Cell No. : 0332-0355566<br>
Facebook : <a href="http://www.facebook.com/M.H0ti"target="_blank">Find Us On Facebook</a><br>
Twitter : <a href="https://twitter.com/muhammadhoti"target="_blank">Find Us On Twitter</a><br>
Github : <a href="https://github.com/muhammadhoti"target="_blank">Find Us On Github</a><br>
</address>
</div>
<!-- /.container -->
</footer>
<!-- main -->
<script src="https://www.gstatic.com/firebasejs/5.2.0/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyCzPEhkUwgTiJu2pS69ao7YdnHu-0oVn3Q",
authDomain: "olx-pakistan-8800e.firebaseapp.com",
databaseURL: "https://olx-pakistan-8800e.firebaseio.com",
projectId: "olx-pakistan-8800e",
storageBucket: "gs://olx-pakistan-8800e.appspot.com",
messagingSenderId: "441355874801"
};
firebase.initializeApp(config);
</script>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/js/bootstrap.min.js" integrity="sha384-o+RDsa0aLu++PJvFqy8fFScvbHFLtbvScb8AjopnFD+iEQ7wo/CG0xlczd+2O/em" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="signup.js"></script>
<script src="signin.js"></script>
<script src="submitad.js"></script>
<!-- <script src="User Profile.js"></script> -->
<script src="script.js"></script>
</body>
</html>