Skip to content

Commit

Permalink
Adjusted debug pages to new sigil based links
Browse files Browse the repository at this point in the history
  • Loading branch information
thvitt committed Sep 12, 2018
1 parent 31fb2a9 commit 34d9768
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions svg_rendering/page/debug.html
Expand Up @@ -52,7 +52,7 @@
</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>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 sigil 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>
Expand All @@ -66,7 +66,7 @@ <h1>Transcript Generation Debugging</h1>
</div>
</footer>
<script type="text/javascript">
document.getElementById("documentViewer").href = 'documentViewer' + window.location.search;
document.getElementById("documentViewer").href = 'document' + window.location.search;
document.getElementById("debug2").href = 'debug2' + window.location.search;
</script>

Expand All @@ -87,7 +87,7 @@ <h1>Transcript Generation Debugging</h1>
};
var params = parseQueryString(window.location.search.substring(1));
console.log(params);
var json = params.faustUri.replace(/^faust:\/\/xml\/document/, 'json') + '/page_' + params.page + '.json';
var json = 'json/' + params.sigil + '/page_' + params.page + '.json';
console.log(json);
var help = document.getElementById("debughelp");
help.parentNode.removeChild(help);
Expand Down
8 changes: 4 additions & 4 deletions svg_rendering/page/debug2.html
Expand Up @@ -40,20 +40,20 @@
</div>
<section id="debughelp">
<h1>Transcript Generation Debugging</h1>
<p>This page helps in debugging the <strong>inclusion</strong> 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>This page helps in debugging the <strong>inclusion</strong> of the transcript generation. Just replace the <code>document</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 svg files are there, i.e. generation has run at least once.</p>
</section>

<footer class="pure-noprint pure-right">
<div class="pure-g-r">
<div class="pure-u-1-2">
<a id="documentViewer">Edition</a>
<a id="document">Edition</a>
<a id="debug">Generierung debuggen</a>
</div>
</div>
</footer>
<script type="text/javascript">
document.getElementById("documentViewer").href = 'documentViewer' + window.location.search;
document.getElementById("documentViewer").href = 'document' + window.location.search;
document.getElementById("debug").href = 'debug' + window.location.search;
</script>

Expand All @@ -74,7 +74,7 @@ <h1>Transcript Generation Debugging</h1>
};
var params = parseQueryString(window.location.search.substring(1));
console.log(params);
var svg = params.faustUri.replace(/^faust:\/\/xml\/document/, 'transcript/diplomatic') + '/page_' + params.page + '.svg';
var svg = 'transcript/diplomatic/' + params.sigil + '/page_' + params.page + '.svg';
console.log(svg);
var help = document.getElementById("debughelp");
help.parentNode.removeChild(help);
Expand Down

0 comments on commit 34d9768

Please sign in to comment.