lambdaspeech
::
localStorage
1
[
pages
][
login
][
load
]
_h1 localStorage _p Sometimes a page, say {b mypage}, is accidentally closed before you saved it and, when coming back to it, the content saved on the server is called and the last content seems to have been lost. Don't worry, at each keystroke the code is automatically saved in the localStorage. So, to restore the page, follow these steps: _ul first, {b don't edit anything} in {b mypage}, _ul then open this page, "localStorage", enter the name {b mypage}, click on "get localStorage" and copy the code, _ul come back to {b mypage}, open the editor, paste it and save the page. _ul The last state of {b mypage} is restored. {input {@ id="input" type="text" value="" placeHolder="Enter a page name..."}} {input {@ type="button" value="get localStorage" onclick="display()"}} ( Try "localStorage"... ) {pre {@ id="output" style="white-space:pre-wrap"}} {script ;; var display = function() { var input = TANK.getId('input').value; if (input === '') alert('Please, enter a name...') else TANK.getId('output').innerHTML = localStorage.getItem( 'ls_lambdaspeech::' + input ) }; }
lambdaspeech v.20180812