UNPKG

dat.gui

Version:

A lightweight graphical user interface for changing variables in JavaScript.

24 lines (14 loc) 709 B
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;