|
|
|
@ -53,15 +53,6 @@ var run = function () { |
|
|
|
|
loadFiles(filesToLoad); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// ------------------ query params (hash) ----------------
|
|
|
|
|
|
|
|
|
|
function syncQueryParams () { |
|
|
|
|
$('#optimize').attr('checked', (queryParams.get().optimize === 'true')); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
window.onhashchange = syncQueryParams; |
|
|
|
|
syncQueryParams(); |
|
|
|
|
|
|
|
|
|
// -------- check file upload capabilities -------
|
|
|
|
|
|
|
|
|
|
if (!(window.File || window.FileReader || window.FileList || window.Blob)) { |
|
|
|
@ -531,6 +522,9 @@ var run = function () { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// set default
|
|
|
|
|
$('#optimize').attr('checked', (queryParams.get().optimize === 'true')); |
|
|
|
|
|
|
|
|
|
document.querySelector('#optimize').addEventListener('change', function () { |
|
|
|
|
queryParams.update({ optimize: document.querySelector('#optimize').checked }); |
|
|
|
|
compiler.compile(); |
|
|
|
|