@kode
Aspiring Software Developer (Javascript)
Nothing here yet.
Nothing here yet.
No blogs yet.
The concept is more of an admin-standard user settings. The admin set global preferences for all users while also the standard users will be able to set their individual preferences. In summary, the admin will set a global preference for all user to follow (this will definitely be saved in server so it affects all), while the user can further customise some other local setting which can either be saved in server or local but local storage would be better.
Jason Knight This was really helpful, thank you. However, i would love to point out somethings. In regards to putting the script right before the closing body tag, i read its a bad practice as we might sometimes require some script to run before the DOM finish loading which might cause some inconsistency. This was my reason of putting it in the head tag. I really love the idea of passing document as d, this is so badass way of writing quickly without having to write document all the time, however, i got confused at the last part when you passed document into the (). Also, where you intercepted the submit on the form instead of the button looks confusing to me. I really didn't see where the button was made to respond on the code but somehow, it worked. I will study this code more to better understand. Thank you very much.