We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d8b066 commit d2a40ddCopy full SHA for d2a40dd
static/ips/assets/js/renderIPS.js
@@ -51,6 +51,7 @@ function updateDisplayMode(displayMode) {
51
update(e, (shlContents.length === 1 ? "" : i));
52
});
53
if (config.show_demo) {
54
+ $('#ipsInput').val(JSON.stringify(shlContents[0], null, 2));
55
updateFromText();
56
}
57
};
@@ -203,7 +204,8 @@ function prepareSHLContents(contents) {
203
204
addTab("IPS Demo", "Demo");
205
$(Sqrl.Render(template, {index: "Demo"}))
206
.appendTo('#rendered-ips');
- loadSample();
207
+ $('#ipsInput').val(JSON.stringify(shlContents[0]));
208
+ updateFromText();
209
$("#submit").on('click', updateFromText);
210
$('#clearSample').on('click', clearData);
211
$("#loadSample").on('click', loadSample);
0 commit comments