//editable cookies enable $(function(){ var liveEdit = document.getElementById('live-edit'); $(liveEdit).blur(function(){ localStorage.setItem('liveEditData', this.innerHTML); }); //when the page loads if ( localStorage.getItem('liveEditData')){ liveEdit.innerHTML = localStorage.getItem('liveEditData'); } }); //end function of contenteditable $(function(){ var editUser = document.getElementById('edit-user'); $(editUser).blur(function(){ localStorage.setItem('editUserData', this.innerHTML); }); //when the page loads if ( localStorage.getItem('editUserData')){ editUser.innerHTML = localStorage.getItem('editUserData'); } }); //end function of contenteditable
All muhaza's note in developing website. Front-end & uiux method. Real life implementation for webdesigner.
Thursday, 25 October 2018
JS : Contenteditable Save data at local
Translate manually Wordpress
add_filter( 'gettext', function( $translated, $original, $domain ) { // Senarai penggantian (case-insensitive) $map = array...
-
Press Windows + S , search for "Environment Variables" , and select: 👉 "Edit the system environment variables" Click...
-
/* Responsive Styles */ @media (max-width: 768px) { add ccs here } @media (max-width: 480px) { add css here ...