Skip to content

Commit

Permalink
Merge pull request #2 from jleverenz/update-hosts
Browse files Browse the repository at this point in the history
Update hosts for viewer tool
  • Loading branch information
davidjgraph authored Jan 7, 2025
2 parents 526d4e4 + ce4a2bb commit 8804f85
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tools/viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
area.style.display = 'none';
area.innerHTML = '';
a.innerHTML = '';

var link = 'https://www.draw.io';


if (url.substring(0, 32) == 'https://drive.google.com/file/d/')
{
var id = url.substring(32, url.lastIndexOf('/'));
Expand All @@ -33,16 +31,19 @@

if (document.getElementById('iframe').checked)
{
var link = 'https://viewer.diagrams.net';
area.style.display = '';
area.appendChild(document.createTextNode(
'<iframe frameborder="0" style="width:100%;height:' +
document.getElementById('height').value + ';" src="' +
link + '?lightbox=1#U' + encodeURIComponent(url) + '"></iframe>'));
link + '?#U' + encodeURIComponent(url) + '"></iframe>'));
area.focus();
document.execCommand('selectAll');
}
else
{
var link = 'https://app.diagrams.net';

if (document.getElementById('lightbox').checked)
{
link += '?lightbox=1&edit=_blank';
Expand Down

0 comments on commit 8804f85

Please sign in to comment.