Skip to content

Commit

Permalink
Help for transcript debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
thvitt committed Mar 23, 2016
1 parent 0c9932b commit 0ee6b28
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@
<body>
<div id="container">
</div>
<section id="debughelp">
<h1>Transcript Generation Debugging</h1>
<p>This page helps in debugging the generation of the transcript generation. Just replace the <code>documentViewer</code> URL with the one to this HTML, retaining at least the faustUri and page parameters, and use the developer tools (F12).</p>
<p>Note this will work (1) only if served by a server and (2) only when the json files are there, i.e. generation has run at least once.</p>

</section>

<script type="text/javascript">
var parseQueryString = function( queryString ) {
Expand All @@ -69,6 +75,8 @@
console.log(params);
var json = params.faustUri.replace(/^faust:\/\/xml\/document/, 'json') + '/page_' + params.page + '.json';
console.log(json);
var help = document.getElementById("debughelp");
help.parentNode.removeChild(help);
Faust.io(json, transcriptGeneration.createDiplomaticSvg);
</script>
</body>
Expand Down

0 comments on commit 0ee6b28

Please sign in to comment.