Merge pull request #12 from WrathZA/master

'Download CyberChef' link now downloads the HTML file when clicked in browsers rather than displaying it
feature-extract-files
n1474335 2016-11-29 16:46:28 +00:00 committed by GitHub
commit 09d515cbae
2 changed files with 2 additions and 2 deletions

View File

@ -258,7 +258,7 @@ module.exports = function(grunt) {
process: function(content, srcpath) {
// TODO: Do all this in Jade
content = content.replace(
'<a href="cyberchef.htm" style="float: left; margin-left: 10px; margin-right: 80px;">Download CyberChef<img src="images/cloud_computing_download-plain-24x24.png" /></a>',
'<a href="cyberchef.htm" style="float: left; margin-left: 10px; margin-right: 80px;" download>Download CyberChef<img src="images/cloud_computing_download-plain-24x24.png" /></a>',
'<span style="float: left; margin-left: 10px;">Compile time: ' + grunt.template.today("dd/mm/yyyy HH:MM:ss") + ' UTC</span>');
return grunt.template.process(content, template_options);
}

View File

@ -40,7 +40,7 @@
</div>
<div id="content-wrapper">
<div id="banner" class="green">
<a href="cyberchef.htm" style="float: left; margin-left: 10px; margin-right: 80px;">Download CyberChef<img src="images/download-24x24.png" /></a>
<a href="cyberchef.htm" style="float: left; margin-left: 10px; margin-right: 80px;" download>Download CyberChef<img src="images/download-24x24.png" /></a>
<span id="notice">
<script type="text/javascript">
// Must be text/javascript rather than application/javascript otherwise IE won't recognise it...