-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
85 lines (81 loc) · 3.67 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>song beats per minute detection</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<style>
.hidden {
display: none;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6">
<div class="page-header">
<h1>
song beats per minute detection
</h1>
<small>
Source:
<a href="http://tech.beatport.com/2014/web-audio/beat-detection-using-web-audio/" target="_blank">
http://tech.beatport.com/2014/web-audio/beat-detection-using-web-audio/
</a>
</small>
</div>
</div>
<div class="col-md-3"></div>
</div>
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-8">
<form action="/" method="post">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search for a song..." id="query" name="query" value="">
<div class="input-group-btn">
<button type="submit" class="btn btn-success"><span class="glyphicon glyphicon-search"><!-- --></span></button>
</div>
</div>
</form>
</div>
<div class="col-md-2"></div>
</div>
<div class="row"> </div>
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-8">
<div id="result" class="hidden">
<div class="container">
<div class="row">
<div class="col-md-4">
<span class="label label-info">artist</span> <span id="artist"></span>
<br />
<span class="label label-info">track</span> <span id="track"></span>
<br />
<span class="label label-info">bpm</span> <span id="bpm"></span>
<br />
<span id="preview" class="hidden"></span>
<br />
<a id="play" class="btn btn-success" href="#">
<i class="fa fa-spotify"><!-- --></i>
play
</a>
<audio id="audio"></audio>
</div>
<div class="col-md-2">
<img id="album-cover" src="" alt="Album Cover">
</div>
</div>
</div>
</div>
</div>
<div class="col-md-2"></div>
</div>
</div>
<script type="text/javascript" src="./public/js/script.js"></script>
</body>
</html>