-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
125 lines (108 loc) · 3.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Uduvudu Demo - LinkedBrainz</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="icon" href="favicon.png">
<link href="lib/bootstrap.min.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-lg-12">
<form>
<legend> </legend>
<div class="form-group">
<label class="control-label">Uduvudu Demo - For <a href="http://linkedbrainz.org/" target="_blank">linkedbrainz</a> with <a href="https://github.com/uduvudu/uduvudu" target="_blank">Uduvudu</a></label>
<div class="input-group">
<span class="input-group-addon">http://linkedbrainz.org</span>
<input id="identifier-search" type="text" class="form-control" placeholder="Artiste" autocomplete="off">
<span class="input-group-addon">
<button type="submit"> <i class="glyphicon glyphicon-search"></i> </button>
</span>
</div>
</div>
</form>
</div>
</div>
<div id="tab_container" class="container">
<ul class="nav nav-tabs">
<li class="active">
<a href="#q1" data-tab="q1" data-toggle="tab">Overview</a>
</li>
<li><a href="#q2" data-tab="q2" data-toggle="tab">Releases</a></li>
<li><a href="#q5" data-tab="q5" data-toggle="tab">See Also</a></li>
</ul>
<div id="main"></div>
<div class="tab-content ">
<div class="tab-pane active" id="q1"> </div>
<div class="tab-pane" id="q2"> </div>
<div class="tab-pane" id="q5"> </div>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<p class="text-muted hidden">
See the source on <a href="https://github.com/ildefonsa/uduvudu-linkedbrainz">GitHub</a>.
</p>
</div>
</footer>
<!-- where the templates are injected -->
<div id="templates"></div>
<div id="release-modal" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 id="release-modal-title" class="modal-title">Modal title</h4>
</div>
<div id="q3" class="modal-body">
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<script src="lib/underscore-min.js"></script>
<script src="lib/jquery-2.1.3.min.js"></script>
<script src="lib/bootstrap.min.js"></script>
<script src="lib/rdf-ext.min.js"></script>
<script src="lib/bootstrap3-typeahead.min.js"></script>
<script src="lib/uduvudu.js"></script>
<script src="js/matcher.js"></script>
<script src="js/artist.js"></script>
<script src="js/queries.js"></script>
<script src="js/main.js"></script>
<script>
$(document).ready(function () {
$(window).on('hashchange', hashUrlHandler);
$('#identifier-search').typeahead({
source: getArtistHint,
updater: function(selected) {
document.location = '#/' + selected;
console.log('Loading artist:' + selected);
},
hint: true,
minLength: 2,
// limit : 10
});
$('form').submit(function(event) {
event.preventDefault();
hashUrlHandler();
});
$('[data-tab]').on('click', function (e) {
var identifier = location.hash.slice(2);
var query = $(this).data('tab');
service = true;
if (query == "q1") serivce = false;
$(this).addClass('active').siblings('[data-tab]').removeClass('active');
loadArtist(identifier, eval(query), $('#'+query), service);
});
hashUrlHandler();
});
</script>
</body>
</html>