|
@@ -977,6 +977,12 @@ const Utils = {
|
|
|
"aria-controls='collapse" + i + "' " +
|
|
|
"title=\"Show/hide contents of '" + Utils.escapeHtml(file.fileName) + "'\">🔍</a>";
|
|
|
|
|
|
+ const hexFileData = Utils.byteArrayToHex(new Uint8Array(file.bytes));
|
|
|
+
|
|
|
+ const switchFileDataToInput = "<a href='#switchFileToInput" + i + "' " +
|
|
|
+ "class='file-switch' " +
|
|
|
+ "fileValue='" + hexFileData + "'>⇧</a>";
|
|
|
+
|
|
|
const html = "<div class='panel panel-default'>" +
|
|
|
"<div class='panel-heading' role='tab' id='heading" + i + "'>" +
|
|
|
"<h4 class='panel-title'>" +
|
|
@@ -984,6 +990,7 @@ const Utils = {
|
|
|
Utils.escapeHtml(file.fileName) +
|
|
|
" " + expandFileContentsElem +
|
|
|
" " + downloadAnchorElem +
|
|
|
+ " " + switchFileDataToInput +
|
|
|
"<span class='pull-right'>" +
|
|
|
// These are for formatting when stripping HTML
|
|
|
"<span style='display: none'>\n</span>" +
|