forked from rism-digital/verovio.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtutorial.xhtml
80 lines (70 loc) · 2.26 KB
/
tutorial.xhtml
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
---
layout: verovio
verovio-light: true
title: Verovio – Tutorial
active: tutorial
how-active: how-tutorial
version-footer: false
tutorials:
- id: "topic"
name: "Introduction"
- id: "topic00"
name: "Getting started"
- id: "topic01"
name: "Managing options"
- id: "topic02"
name: "Handling events"
- id: "topic03"
name: "Highlighting content"
- id: "topic04"
name: "Accessing MEI elements"
- id: "topic05"
name: "Accessing MEI attributes"
- id: "topic06"
name: "Selecting readings"
- id: "topic07"
name: "Interacting with editorial choices"
- id: "topic08"
name: "Applying an XSLT"
- id: "topic09"
name: "Playing the MIDI output"
- id: "topic10"
name: "Applying SVG filters to elements"
---
<div class="row">
<div class="col-md-3 sidebar-offcanvas" id="sidebar" role="navigation">
<div class="panel panel-default">
{% include tutorial-sidebar.html %}
</div>
</div>
<div class="col-md-9">
<div class="panel-body">
<div class="alert alert-warning" role="alert">This tutorial uses the develop version of the toolkit. See the <a href="https://github.com/rism-ch/verovio/blob/master/CHANGELOG.md">CHANGELOG</a> for more information.</div>
<div id="tutorial"></div>
</div>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
function getParameterByName(name) {
var match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);
return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
}
$( document ).ready(function() {
var id = getParameterByName("id");
if (!id) {
id = "{{ page.tutorials[0].id }}";
}
var file = "" + id + ".html";
// load the file
$( "#tutorial" ).load( file, function() {
$(".toggle_code").click(function(){
$( "#" + $(this).attr("id") + "-xml" ).toggle();
$("span", this).toggleClass("glyphicon-eye-open glyphicon-eye-close");
});
});
// activate the link menu
$( "#link-" + id ).addClass( "active" );
});
//]]>
</script>