-
Notifications
You must be signed in to change notification settings - Fork 50
/
jtab-chordchart.htm
84 lines (65 loc) · 2.56 KB
/
jtab-chordchart.htm
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>jTab - Chord Chart</title>
<meta name="description" content="jTab is a javascript-based library that allows you to easily render arbitrary guitar chord and tabulature (tab) notation on the web"/>
<meta name="keywords" content="guitar,chord,tab,tabulature,music,notation,javascript,css,svg,html,xhtml"/>
<link type="text/css" rel="stylesheet" href="css/jtab-site.css"/>
<!-- START: for jtab -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link type="text/css" rel="stylesheet" href="css/jtab-helper.css"/>
<script src="javascripts/jquery.js" type="text/javascript"></script>
<script src="javascripts/raphael.js" type="text/javascript"></script>
<script src="javascripts/jtab.js" type="text/javascript"></script>
<!-- END: for jtab -->
<script type='text/javascript'>
var chordList = jtab.ChordList();
function render_chord_chart(start) {
var startAt = (start === undefined) ? 0 : start;
var endAt = startAt + 5;
var tokens = '';
for (var key = startAt; key < endAt; key++) {
if ( chordList[key] === undefined ) break;
var token = chordList[key];
// accumulate row tokens
tokens += token + ' ';
}
// emit a new child to hold a row
var rowHolder = $('<div id="builder_'+(jtab.element_count++)+'"></div>')
$('#chart').append(rowHolder)
jtab.render(rowHolder,tokens);
// yeild/async continuation of the chord chart if not yet complete
if (endAt < chordList.length) setTimeout('render_chord_chart(' + endAt + ')', 0 );
}
</script>
</head>
<body onload="setTimeout('render_chord_chart()', 50 );">
<div id="header">
<h1>jTab - Chord Chart</h1>
<p>
This page generates a complete chord chart for all chords supported by jTab.
</p>
</div>
<div id="menu">
<ul>
<li><a href="index.htm#">About jTab</a></li>
<li><a href="examples.htm">Live Examples</a></li>
<li><a href="index.htm#notation">Notation Reference</a></li>
<li><a href="index.htm#download">Download</a></li>
<li><a href="index.htm#install">How To Install</a></li>
<li><a href="index.htm#help">Troubleshooting and Tips</a></li>
<li><a href="index.htm#feedback">Feedback & Contribute</a></li>
<li><a href="index.htm#limitations">Limitations</a></li>
<li><a href="index.htm#inthewild">jTab in the Wild</a></li>
</ul>
</div>
<div id="content">
<div id="chart">
</div>
</div>
<div id="footer">
</div>
</body>
</html>