/
index.html
357 lines (341 loc) · 13.2 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
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
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
<!DOCTYPE html>
<!--
Chordlove is a tool for sharing song chords and lyrics.
Copyright (C) 2013-2014 NA Konsult AB
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<html manifest="manifest.appcache">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Chordlove.com</title>
<script src="//ajax.googleapis.com/ajax/libs/webfont/1.5.3/webfont.js"></script>
<script>
if (!window.WebFont) {
document.write('<script src="//cdn.chordlove.com/libs/webfont-1.5.3.js">\x3C/script>');
}
</script>
<script>
'use strict';
window.ChordloveFontLoading = ( function () {
var fonts = {};
var listeners = {};
function registerActiveFont(name) {
fonts[name] = true;
checkListeners(name);
}
function registerInactiveFont(name) {
fonts[name] = false;
checkListeners(name);
}
function addListener(name, listener) {
if (!( name in listeners )) {
listeners[name] = [];
}
listeners[name].push(listener);
checkListeners(name);
}
function checkListeners(name) {
if (( name in listeners ) && ( name in fonts )) {
var nameListeners = listeners[name];
for (var i = 0; i < nameListeners.length; i++) {
var listener = nameListeners[i];
listener(fonts[name]);
}
}
}
return {
'registerActiveFont': registerActiveFont,
'registerInactiveFont': registerInactiveFont,
'addListener': addListener
};
}() );
var fontCssLocation = '//cdn.chordlove.com/style/fonts-2014-07-19/fonts.css';
// check for chrome bug under windows in version < 37.
var ua = navigator.userAgent.toLowerCase();
if (ua.indexOf('chrome') > -1 && ua.indexOf('Win') !== -1) {
var ver = parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1], 10);
if (ver < 37) {
fontCssLocation = '//cdn.chordlove.com/style/fonts-2014-07-19/fonts-winchromefix.css';
}
}
WebFont.load({
custom: {
families: [ 'DejaVuSerifBook', 'DejaVuSansCondensedBold', 'PT Sans' ],
urls: [ fontCssLocation ]
},
fontactive: window.ChordloveFontLoading.registerActiveFont,
fontinactive: window.ChordloveFontLoading.registerInactiveFont
});
</script>
<!--[if lt IE 9]>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
if (!window.jQuery) {
document.write('<script src="//code.jquery.com/jquery-1.11.1.min.js">\x3C/script>');
}
</script>
<![endif]-->
<!--[if gte IE 9]><!-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
if (!window.jQuery) {
document.write('<script src="//code.jquery.com/jquery-2.1.1.min.js">\x3C/script>');
}
</script>
<!--<![endif]-->
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/jquery-ui.min.js"></script>
<script>
if (!window.jQuery.ui) {
document.write('<script src="//code.jquery.com/ui/1.11.0/jquery-ui.min.js">\x3C/script>');
}
</script>
<script src="//cdnjs.cloudflare.com/ajax/libs/raphael/2.1.2/raphael-min.js"></script>
<script>
if (!window.Raphael) {
document.write('<script src="//cdn.jsdelivr.net/raphael/2.1.2/raphael-min.js">\x3C/script>');
}
</script>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
<link href="style/style.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<script src="//cdn.chordlove.com/libs/jquery.ba-hashchange-1.3.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="//cdn.chordlove.com/libs/inject-0.7.1.min.js"></script>
<script>
if (!window.Inject) {
document.write('<script src="libs/inject-0.7.1.min.js">\x3C/script>');
}
</script>
<script>
Inject.setModuleRoot("modules");
if (window.location.hostname == "localhost") {
Inject.setExpires(0);
}
require.run("main");
</script>
<script src="//cdn.chordlove.com/libs/vexchord-2013-08-24.min.js"></script>
<script>
function initGapi() {
window.gapi.client.setApiKey('AIzaSyDQHCBTiXVuvKz9EtqP7AamTpYqxWzWM-Q');
}
</script>
<link rel="shortcut icon" href="favicon.ico"/>
<link rel="apple-touch-icon" sizes="144x144" href="apple-touch-icon-144x144.png"/>
<link rel="apple-touch-icon" sizes="114x114" href="apple-touch-icon-114x114.png"/>
<link rel="apple-touch-icon" sizes="72x72" href="apple-touch-icon-72x72.png"/>
<link rel="apple-touch-icon" sizes="57x57" href="apple-touch-icon-57x57.png"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<link href="//cdn.chordlove.com/style/jquery.oembed-2013-09-01.css" rel="stylesheet">
<script src="//cdn.chordlove.com/libs/jquery.oembed-2013-09-01.js"></script>
<!--
<script src="//cdnjs.cloudflare.com/ajax/libs/fastclick/1.0.0/fastclick.min.js"></script>
<script>
$( function()
{
if ( FastClick )
{
FastClick.attach( document.body );
}
} );
</script>
-->
</head>
<body>
<div id="spinner">
<img src="//cdn.chordlove.com/images/loading.gif" alt="loading …">
</div>
<div id="help" class="modal fade" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 class="chordlove-color-dark">
<img src="//cdn.chordlove.com/images/icon-43.svg" alt="" class="img-rounded-small" width="30"
height="30"> Chordlove
</h3>
</div>
<div class="modal-body">
<p>Chordlove is a tool for sharing song chords and lyrics.</p>
<div id="intro">
<img src="//cdn.chordlove.com/images/loading.gif" alt="loading …"
style="padding-left: 50%; margin-left: -33px;">
</div>
</div>
<div class="modal-footer">
<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
</div>
</div>
</div>
<div class="navbar navbar-fixed-top" id="navbar">
<img class="img-rounded" id="chordlove-navbar-icon" alt="" src="//cdn.chordlove.com/images/icon-43.svg"
width="43" height="43" title="About Chordlove">
<div id="cpanel" class="btn-toolbar">
<span class="btn-group always-visible">
<button id="navigation-back" class="btn btn-default navbar-btn btn-lg" title="Undo / Go back">
<i class="fa fa-chevron-left"></i>
</button>
<button id="navigation-forward" class="btn btn-default navbar-btn btn-lg" title="Redo / Go forward">
<i class="fa fa-chevron-right"></i>
</button>
</span>
<span class="btn-group always-visible">
<button type="button" title="Edit mode" id="edit" class="btn btn-default navbar-btn btn-lg">
<i class="fa fa-pencil"></i>
</button>
</span>
<span class="btn-group">
<button id="add-chord" class="btn btn-default navbar-btn btn-lg" title="Add chord">
<i class="fa fa-plus"></i>
</button>
</span>
<span id="sharpflat" class="btn-group NIY" data-toggle="buttons-radio">
<button type="button" title="Use flats" id="flat" class="btn btn-default navbar-btn active btn-lg chord-font">♭
</button>
<button type="button" title="Use sharps" id="sharp" class="btn btn-default navbar-btn btn-lg chord-font">♯
</button>
</span>
<div class="btn-group">
<a class="btn btn-default btn-lg navbar-btn dropdown-toggle" data-toggle="dropdown" data-target="#">
<i class="fa fa-briefcase"></i>
<!-- <span class="caret"></span> -->
</a>
<ul class="dropdown-menu" role="menu">
<li>
<a id="cut" href="javascript:;">
<i class="fa fa-fw fa-cut"></i> Cut
</a>
</li>
<li>
<a id="copy" href="javascript:;">
<i class="fa fa-fw fa-copy"></i> Copy
</a>
</li>
<li>
<a id="paste" href="javascript:;">
<i class="fa fa-fw fa-paste"></i> Paste at the end
</a>
</li>
<li>
<a id="delete" href="javascript:;">
<i class="fa fa-fw fa-times"></i> Delete
</a>
</li>
<li role="presentation" class="divider"></li>
<li>
<a id="clear" href="javascript:;">
<i class="fa fa-fw fa-trash-o"></i> Clear all
</a>
</li>
</ul>
</div>
<div id="addons-menu" class="btn-group">
<a class="btn btn-default btn-lg navbar-btn dropdown-toggle" data-toggle="dropdown" href="#" title="More pieces">
<i class="fa fa-puzzle-piece"></i>
<!-- <span class="caret"></span> -->
</a>
<ul id="addons-list" class="dropdown-menu" role="menu">
</ul>
</div>
<div id="tools-menu" class="btn-group always-visible">
<a class="btn btn-default btn-lg navbar-btn dropdown-toggle" data-toggle="dropdown" href="#" title="Tools">
<i class="fa fa-wrench"></i>
<!-- <span class="caret"></span> -->
</a>
<ul id="tools-list" class="dropdown-menu" role="menu">
</ul>
</div>
<div id="archive-menu" class="btn-group NIY always-visible">
<a class="btn btn-default btn-lg navbar-btn dropdown-toggle" data-toggle="dropdown" href="#" title="Archive">
<i class="fa fa-archive"></i>
<!-- <span class="caret"></span> -->
</a>
<ul class="dropdown-menu" role="menu">
<li>
<a id="save" href="javascript:;">
<i class="fa fa-fw fa-save"></i> Save
</a>
</li>
<li>
<a id="open" href="javascript:;">
<i class="fa fa-fw fa-folder-open-o"></i> Open
</a>
</li>
<li>
<a id="delete-song" href="javascript:;">
<i class="fa fa-fw fa-times-circle"></i> Delete
</a>
</li>
</ul>
</div>
<div class="btn-group always-visible">
<a id="share-dropdown" title="Share" class="btn btn-default btn-lg navbar-btn dropdown-toggle disabled"
data-toggle="dropdown"
data-target="#">
<i class="fa fa-share-alt"></i>
<!-- <span class="caret"></span> -->
</a>
<ul class="dropdown-menu" role="menu">
<li><a id="share-twitter" href="" target="_blank" data-toggle="tooltip" title="Tweet the song">
<i class="fa fa-fw fa-twitter-square"></i> Twitter
</a></li>
<li><a id="share-facebook" href="" target="_blank" data-toggle="tooltip" title="Share song on Facebook">
<i class="fa fa-fw fa-facebook-square"></i> Facebook
</a></li>
<li><a id="share-google-plus" href="" target="_blank" data-toggle="tooltip"
title="Share song on Google+">
<i class="fa fa-fw fa-google-plus-square"></i> Google+
</a></li>
<li><a id="share-link" href="" title="Get a link to this song" data-toggle="tooltip">
<i class="fa fa-fw fa-link"></i> Link
</a></li>
</ul>
</div>
<div class="btn-group always-visible">
<a class="btn btn-default btn-lg navbar-btn dropdown-toggle" data-toggle="dropdown" data-target="#">
<i class="fa fa-info-circle"></i>
<!-- <span class="caret"></span> -->
</a>
<ul class="dropdown-menu" role="menu">
<li><a href="#help" id="help-btn" role="button" data-toggle="modal" title="About Chordlove">
<i class="fa fa-fw fa-info-circle"></i> Introduction
</a></li>
<li class="disabled"><a href="http://blog.chordlove.com/" target="_blank">
<i class="fa fa-fw fa-globe"></i> Blog
</a></li>
<li class="disabled"><a href="https://twitter.com/ChordloveApp" target="_blank">
<i class="fa fa-fw fa-twitter-square"></i> Twitter
</a></li>
<li class="disabled"><a href="https://github.com/chordlove/chordlove/issues" target="_blank">
<i class="fa fa-fw fa-ticket"></i> Issues
</a></li>
<li class="disabled"><a href="https://github.com/chordlove/chordlove" target="_blank">
<i class="fa fa-fw fa-code-fork"></i> Project
</a></li>
</ul>
</div>
</div>
</div>
<h1>
<input type="text" class="form-control" id="title" title="Add a title" placeholder="Song title …"/>
</h1>
<dl id="items"></dl>
<ol id="addons-core"></ol>
<ol id="addons"></ol>
<div id="dialogs"></div>
<div id="footer">
<a href=".">chordlove.com</a>
</div>
<script src="//cdn.chordlove.com/libs/ga.min.js"></script>
</body>
</html>