forked from alektus513/Projekt_ip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
202 lines (172 loc) · 8.93 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
191
192
193
194
195
196
197
198
199
200
201
202
<html>
<head>
<title>adpt</title>
<link rel="icon" type="image/x-icon" href="pet.png">
<meta charset='utf-8'>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Nunito:400,600,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="style.css" rel="stylesheet" />
</head>
<body>
<div class="header">
<nav class="navbar navbar-default1"> <!-- navbar navbar-default -->
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed1" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- <a class="navbar-brand" href="#">ADPT</a> -->
<a href="/"><img src="pet.png" style="margin: 2px; background-color: rgba(244, 235, 239, 0.582); border-radius: 200px; width:50px; height: 50px;">
</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="nav-item">
<a class="nav-link" href="/mypets.html" id="mypets-btn">Moje zwierzęta</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/myposts.html" id="myposts-btn">Moje posty</a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Konto<span class="caret"></span></a>
<ul class="dropdown-menu">
<li id="logowanie">
<h6 class="dropdown-header">Zaloguj się</h6>
<div class="form-group">
<input class="form-control" type="email" placeholder="Email..." id="email_field" />
<input class="form-control" type="password" placeholder="Hasło..." id="password_field" />
<button type="submit" class="btn btn-default" onclick="login()">Zaloguj</button>
</div>
</li>
<li class="form-group" id="logout-btn">
<button type="submit" class="btn btn-default" onclick="logout()">Wyloguj</button>
</li>
<li></li>
<h6 class="dropdown-header" id="q">Nie masz konta?</h6>
<li style="display: flex; justify-content: center;">
<button class="btn btn-default" id="signup-btn" onclick="signupview()">Zarejestruj się</button>
</li>
<li role="separator" class="divider"></li>
<li id="mojekonto"><a href="/profile.html">Moje konto</a></li>
</ul>
</li>
<!-- <form id="logowanie">
<div class="form-group">
<input type="email" placeholder="Email..." id="email_field" />
<input type="password" placeholder="Hasło..." id="password_field" />
</div>
<button onclick="login()">Zaloguj</button> </form>
<button id="logout-btn" onclick="logout()">Wyloguj</button>
-->
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
</div><!-- header -->
<!-- <div class="signup">
<form>
<input type="email" placeholder="email" id="userEmail">
<input type="password" placeholder="password" id="userPassword">
<button type="submit" onclick="signUp()">Sign up</button>
</form>
</div> -->
<div style=" width: 100%; height: min-content;">
<div id="rejestracja" class="signup-form" style="display: none;">
<form>
<h2>Witaj!</h2>
<p class="hint-text">Stwórz darmowe konto.</p>
<div class="form-group">
<div class="row">
<div class="col-xs-6"><input type="text" id="userName" class="form-control" name="first_name" placeholder="Imię" required="required"></div>
<div class="col-xs-6"><input type="text" id="userLastname" class="form-control" name="last_name" placeholder="Nazwisko" required="required"></div>
</div>
</div>
<div class="form-group">
<input id="userEmail" type="email" class="form-control" name="email" placeholder="Email" required="required">
</div>
<div class="form-group">
<input id="userPassword" type="password" class="form-control" name="password" placeholder="Hasło" required="required">
</div>
<div class="form-group">
<input type="password" class="form-control" name="confirm_password" placeholder="Potwierdź hasło" required="required">
</div>
<!-- <div class="form-group">
<label class="checkbox-inline"><input type="checkbox" required="required"> I accept the <a href="#">Terms of Use</a> & <a href="#">Privacy Policy</a></label>
</div> -->
<div>
</div>
</form>
<button onclick="signUp()" class="btn btn-success btn-lg btn-block">Zarejestruj się</button>
<!-- <div class="text-center">Already have an account? <a href="#">Sign in</a></div> -->
</div>
</div>
<div class="container-fluid" style="display: flex; margin-top: 1%; width: fit-content;">
<!-- <div class="container" style=" margin-top: 1%; width: 30%; height:500px; border-right: solid 1px rgba(255, 255, 255, 0.666);">
<div class="card">
<div class="card-header">
</div>
<div class="card-body">
<span class="tag tag-teal">Filtruj</span>
<h4>
Filtruj wyniki wyszukiwania:
</h4>
<input placeholder="Szukaj..." class="form-control" id="postsinput">
<div style="width: 100%;"><hr></div>
<div class="radio">
<label><input type="radio" name="optradio" ><span class="tag tag-teal">Psy</span></label>
</div>
<div class="radio">
<label><input type="radio" name="optradio"><span class="tag tag-purple">Koty</span></label>
</div>
<div class="radio">
<label><input type="radio" name="optradio" ><span class="tag tag-pink">Gryzonie</span></label>
</div>
<div class="radio">
<label><input type="radio" name="optradio" checked><span class="tag tag-gray">Wszystkie</span></label>
</div>
</div>
</div>
</div>-->
<div class="cards">
<input placeholder="Filtruj wyniki wyszukiwania..." class="form-control" id="postsinput" style="width: 70rem;">
<button id="showbtn" class="showbtn" onclick="pokazposty()">Pokaż ogłoszenia</button>
<div class="container" id="listapostow"></div>
</div>
<!-- fluid -->
<script src="https://www.gstatic.com/firebasejs/4.8.1/firebase.js"></script>
<script src="https://www.gstatic.com/firebasejs/4.8.1/firebase-storage.js"></script>
<script>
// Initialize Firebase
var config = {
// apiKey: "AIzaSyBNeteUiC9EmhBpzJMNEPegmnzf1EiLQ1s",
// authDomain: "adopt-a-pet-f01ca.firebaseapp.com",
// databaseURL: "https://adopt-a-pet-f01ca-default-rtdb.europe-west1.firebasedatabase.app",
// projectId: "adopt-a-pet-f01ca",
// storageBucket: "adopt-a-pet-f01ca.appspot.com",
// messagingSenderId: "963004694042",
// appId: "1:963004694042:web:633f46d8879b1780aa9ba3",
// measurementId: "G-FJM9L2HPC5"
apiKey: "AIzaSyC12TEpObCW-adZWPWo7fwONg99IXnhEo4",
authDomain: "adopt-a-pet2.firebaseapp.com",
databaseURL: "https://adopt-a-pet2-default-rtdb.firebaseio.com/",
projectId: "adopt-a-pet2",
storageBucket: "adopt-a-pet2.appspot.com",
messagingSenderId: "7865506719",
appId: "1:7865506719:web:ecf7682dadb3ea3e74fbaa"
};
var app = firebase.initializeApp(config);
</script>
<script src="index.js"></script>
</body>
</html>