ASCII-GLB-Viewer / dat.gui-master /src /dat /gui /saveDialogue.html.js
Suryash Malviya
reconfigured the setup
695ea30
Raw History Blame Contribute Delete
709 Bytes
const saveDialogContents = `<div id="dg-save" class="dg dialogue">
Here's the new load parameter for your <code>GUI</code>'s constructor:
<textarea id="dg-new-constructor"></textarea>
<div id="dg-save-locally">
<input id="dg-local-storage" type="checkbox"/> Automatically save
values to <code>localStorage</code> on exit.
<div id="dg-local-explain">The values saved to <code>localStorage</code> will
override those passed to <code>dat.GUI</code>'s constructor. This makes it
easier to work incrementally, but <code>localStorage</code> is fragile,
and your friends may not see the same values you do.
</div>
</div>
</div>`;
export default saveDialogContents;