Store users choice of CSS-style with local storage (How?)
问题 The user can choose between 4 different themes (4 different CSS-files) by clicking links. The users choice should be saved (and somehow selected by being bold for example) in local storage and the chosen CSS-style should then be loaded when the user opens up the webpage. The choice should be stored for at least a week. I am completely new to local storage so I am uncertain of how I should approach this. As far as I understand, localStorage.setItem , localStorage.getItem and onChange() should