-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
319 lines (238 loc) · 10.5 KB
/
index.php
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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
<!-- @uth0r ps48-->
<html>
<head>
<title> Genre-ist </title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="./js/jquery-2.1.3.min.js"></script>
<script src="./js/bootstrap.js"></script>
<!-- wavesurfer.js -->
<script src="./js/wavesurfer.js"></script>
<script src="./js/webaudio.js"></script>
<script src="./js/mediaelement.js"></script>
<script src="./js/drawer.js"></script>
<script src="./js/drawer.canvas.js"></script>
<script src="./js/main.js"></script>
<script src="./js/trivia.js"></script>
<script src="./js/script.js"></script>
<link rel="stylesheet" href="./css/bootstrap.min.css">
<link rel="stylesheet" href="./css/style.css" />
<link rel="stylesheet" href="./css/mycss.css" />
</head>
<body>
<div class="container-fluid col-lg-12" id="home" >
<div class="headcnt">
<div class="row">
<h1 class="rl wh">Genre<span class="rb lblue">-ist</span></h1>
</div>
</div>
<div class="row spacer">
<div class="span4">...</div>
</div>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle " data-toggle="collapse" data-target=".navbar-collapse">
<span class="rb wh center">Menu</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav col-lg-12 rl wh center">
<li class="bf col-lg-3 col-md-3"><a class="scroll" target="div2">Check My Genre</a></li>
<li class="bf col-lg-3 col-md-3"><a class="scroll" target="div3">Database</a></li>
<li class="bf col-lg-3 col-md-3"><a class="scroll" target="div4">How it works?</a></li>
<li class="bf col-lg-3 col-md-3"><a class="scroll" target="div5">About</a></li>
</ul>
</div>
</div>
</nav>
<div class="row spacer">
<div class="span4">...</div>
<div class="span4">...</div>
</div>
<div class="row icons center">
<div class=" col-lg-4 col-md-4 col-sm-4 ">
<div class="smspacer"></div><image src="./images/database.png" class="rsize" ></img>
</div>
<div class=" col-lg-4 col-md-4 col-sm-4 wh rb "></div>
<div class=" col-lg-4 col-md-4 col-sm-4 ">
<div class="smspacer"></div><image src="./images/cloud.png" class="rsize" ></img>
</div>
</div>
<div class="row spacer"></div>
<div class="row icons center">
<div class=" col-lg-4 wh rb ring"><h2>Accuracy : 70%</h2></div>
<div class=" col-lg-4 wh rb "></div>
<div class=" col-lg-4 wh rb ring"><h2>Total Queries: 756</h2></div>
</div>
<div class="smspacer">
<div class="row">
<div class="col-lg-11 col-md-11 col-sm-11"> </div>
<div class="col-lg-1 col-md-1 col-sm-1">
<a href="#" class="scrollToTop"></a>
</div>
</div>
</div>
<div class="smspacer"></div>
<div class="smspacer"></div>
<div class="smspacer"></div>
</div>
<div class="wh rl container-fluid col-lg-12" id="div2">
<div class="container-fluid col-lg-12" id="ind2">
<div class="container">
<div class="row spacer"></div>
<div class="bf col-lg-12 center">Check My Genre</div>
<div class="row spacer"></div>
<div class="row spacer"></div>
<div id="demo">
<div id="waveform">
<div class="progress progress-striped active" id="progress-bar">
<div class="progress-bar progress-bar-info"></div>
</div>
<!-- Here be the waveform -->
</div>
<div class="controls">
<button class="btn btn-primary" data-action="back">
<i class="glyphicon glyphicon-step-backward"></i>
Backward
</button>
<button class="btn btn-primary" data-action="play">
<i class="glyphicon glyphicon-play"></i>
Play
/
<i class="glyphicon glyphicon-pause"></i>
Pause
</button>
<button class="btn btn-primary" data-action="forth">
<i class="glyphicon glyphicon-step-forward"></i>
Forward
</button>
<button class="btn btn-primary" data-action="toggle-mute">
<i class="glyphicon glyphicon-volume-off"></i>
Toggle Mute
</button>
</div>
</div>
<div class="row spacer"></div>
<p class="lead pull-center" id="drop">
Drag'n'drop your favorite
<i class="glyphicon glyphicon-music"></i>-file
here!
</p>
<form action="php/upload.php" method="post" enctype="multipart/form-data" style="text-align:center;">
<div class="row spacer"></div>
<?php
if(isset($_GET['genre']))
{
echo" <div class='row spacer'></div> <div><h2>The Genre is : ".$_GET['genre']."<h2></div> ";
}
else
{
echo"<h2> Select your Song </h2><div class='row spacer'></div>
<input class='btn btn-info' type='file' name='fileToUpload' id='fileToUpload' style='width:100%;' >
<div class='row spacer'></div>
<input type='submit' value='Upload File' name='submit' class='btn btn-primary' style='width:100%;'>";
}
?>
</form>
<div class="row spacer"></div>
<div class="row spacer"></div>
</div>
</div>
</div>
</div>
<div class="wh rl center container-fluid col-lg-12" id="div3">
<div class="row spacer"></div>
<div class="bf col-lg-12 center">Database</div>
<div class="row spacer"></div>
<div class="row spacer"></div>
<div class="row spacer"></div>
<div class="col-lg-1 col-md-0 col-sm-0">
</div>
<div class="col-lg-3 col-md-4 col-sm-4">
<button type="button" class="btn btn-primary btn-block btnclk" id="mr">Rock</button>
<button type="button" class="btn btn-primary btn-block btnclk" id="mp">Pop</button>
<button type="button" class="btn btn-primary btn-block btnclk" id="mh">Hip-hop</button>
<button type="button" class="btn btn-primary btn-block btnclk" id="mj">Jazz</button>
<button type="button" class="btn btn-primary btn-block btnclk" id="md">Dubstep</button>
<button type="button" class="btn btn-primary btn-block btnclk" id="mc">Classical</button>
</div>
<div class="col-lg-2 col-md-1 col-sm-0">
</div>
<div class="col-lg-5 col-md-7 col-sm-8" id="dbcon">
Click on type of genre to fetch database
</div>
<div class="col-lg-1 col-md-0 col-sm-0">
</div>
<div class="row spacer"></div>
<div class="row spacer"></div>
<div class="row spacer"></div>
</div>
<div class="wh rl center container-fluid col-lg-12" id="div4">
<div class="row spacer"></div>
<div class="bf col-lg-12 center">How it works?</div>
<div class="row spacer"></div>
<div class="row spacer"></div>
<div class="row col-lg-12">
<div class="col-lg-2"></div>
<div class="con col-lg-8 ">
The front-end of the site is made using HTML 5 elements, Wavesurfer.js
library, Twitter-Bootstrap CSS and Js along with glyphicons package. The
back-end of the site uses Python 3.1 along with its NumPy & SciPy libraries
to use a fuzzy logic algorithm to the given data-base and henceforth use machine
learning in order to assimilate the patterns of a specific genre. The front end is connected
to the back end using Php.
</div>
<div class="col-lg-2"></div>
</div>
<div class="row spacer"></div>
<div class="row spacer"></div>
<div class="row spacer"></div>
</div>
<div class="wh rl center container-fluid col-lg-12" id="div5">
<div class="row spacer"></div>
<div class="bf col-lg-12 center">About</div>
<div class="row spacer"></div>
<div class="row spacer"></div>
<div class="row">
<div class="col-lg-2 col-md-2 col-sm-2" >
</div>
<div class="col-lg-2 col-md-2 col-sm-2" >
<img src="./images/ps48.jpg" class="img-circle cimg" ></img>
<div class="smspacer"></div>
<div class="center rl wh">Pratik Shenoy</div>
</div>
<div class="col-lg-1 col-md-1 col-sm-1" >
</div>
<div class="col-lg-2 col-md-2 col-sm-2" >
<img src="./images/ps48.jpg" class="img-circle cimg" ></img>
<div class="smspacer"></div>
<div class="center rl wh">Pratik Shenoy</div>
</div>
<div class="col-lg-1 col-md-1 col-sm-1" >
</div>
<div class="col-lg-2 col-md-2 col-sm-2" >
<img src="./images/ps48.jpg" class="img-circle cimg" ></img>
<div class="smspacer"></div>
<div class="center rl wh">Pratik Shenoy</div>
</div>
<div class="col-lg-2 col-md-2 col-sm-2" >
</div>
</div>
<div class="row spacer"></div>
<hr>
<div class="smspacer"></div>
<div class="smspacer"></div>
<div class="smspacer"></div>
<div class="rl col-lg-12">
Copyrights reserved @ps48
</div>
<div class="row spacer"></div>
<div class="smspacer"></div>
<div class="smspacer"></div>
</div>
</body>
</html>