When a user submits a post via the modal, the application captures the image URL, post title, and caption, renders a new post card to the feed instantly, and saves the post array directly in browser localStorage. On page load, the script reads postCount along with indexed image, title, and description keys (postImageN, postTitleN, postDescriptionN) from localStorage to rebuild and display saved posts across reloads. Styled in custom CSS with flexible container dimensions, inverted icon filters, hidden WebKit scrollbars, and styled story borders, this lightweight application demonstrates dynamic DOM manipulation, modal interactions, and persistent client-side data storage without relying on external libraries or frameworks.
When a user submits a post via the modal, the application captures the image URL, post title, and caption, renders a new post card to the feed instantly, and saves the post array directly in browser localStorage. On page load, the script reads postCount along with indexed image, title, and description keys (postImageN, postTitleN, postDescriptionN) from localStorage to rebuild and display saved posts across reloads. Styled in custom CSS with flexible container dimensions, inverted icon filters, hidden WebKit scrollbars, and styled story borders, this lightweight application demonstrates dynamic DOM manipulation, modal interactions, and persistent client-side data storage without relying on external libraries or frameworks.
