Fix download link

This commit is contained in:
Nick 2019-11-07 17:53:32 -06:00
parent 66c8243d49
commit 14347206d1
3 changed files with 12 additions and 4 deletions

View File

@ -60,10 +60,9 @@ class MSQ
error($error->message);
}
$html['header'] = '<div class="error">Unable to parse MSQ.</div>';
throw new MSQ_ParseException("Error parsing XML", '<div class="error">Unable to parse MSQ.</div>');
} else if ($msq) {
$msqHeader = '<div class="info">';
$msqHeader .= '<div style="float: right;"><a title="Download MSQ File" href="download.php?msq=' . $_GET['msq'] . '">💾</a></div>';
$msqHeader .= "<div>Format Version: " . $msq->versionInfo['fileFormat'] . "</div>";
$msqHeader .= "<div>MS Signature: " . $msq->versionInfo['signature'] . "</div>";
$msqHeader .= "<div>Tuning SW: " . $msq->bibliography['author'] . "</div>";

View File

@ -96,6 +96,7 @@ if (isset($_GET['msq'])) {
<label><input id="normalizeAxis" type="checkbox" disabled />Normalize Axis</label>
</div>
</div>
<div id="downloadLink"><a title="Download MSQ File" href="download.php?msq=' . $_GET['msq'] . '">💾 Download MSQ</a></div>
<?php
}
?>

View File

@ -82,9 +82,17 @@ div#splash img.tutorial {
div#settings {
z-index: 999;
background: rgba(224, 224, 224, 32);
position: absolute;
float: right;
margin-top: 4px;
right: 8px;
}
img#settingsIcon {
cursor: pointer;
}
div#downloadLink {
margin: 5px;
float: right;
}
#fileDropZone {