UI adaptation for supporting ONAP portal SDK
[validation.git] / ui / src / main / webapp / static / fusion / sample / js / scribble.js
1 function storeUserScribble(id) {
2     var scribble = document.getElementById('scribble').innerHTML;
3     localStorage.setItem('userScribble', scribble);
4 }
5
6 function getUserScribble() {
7     if (localStorage.getItem('userScribble')) {
8         var scribble = localStorage.getItem('userScribble');
9     } else {
10         var scribble = 'You can scribble directly on this sticky... and I will also remember your message the next time you visit my blog!';
11     }
12     document.getElementById('scribble').innerHTML = scribble;
13 }
14
15 function clearLocal() {
16     clear: localStorage.clear();
17     return false;
18 }