Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 1.6 KB

README.md

File metadata and controls

20 lines (12 loc) · 1.6 KB

CRUD

Html code

  • HTML code for a webpage that creates a CRUD (Create, Read, Update, Delete) application for managing a product catalog. The code includes a header with the title of the application and a button that toggles the dark mode feature. The page includes a form for adding new products to the catalog, with input fields for the product name, category, price, and other details, as well as a button for submitting the data. The page also includes a table for displaying the products, with columns for the product name, category, price, and other details, and buttons for editing and deleting the products. The code also uses JavaScript to search for a product by name or category.

javaScript code

  • JavaScript code that creates an application for managing a product catalog. The code uses the Document Object Model (DOM) to access and manipulate the elements of an HTML page. The code declares several variables that represent HTML elements on the page, such as input fields for the product name, category, price, and other details, as well as buttons for submitting the data and a table for displaying the products. The code uses event listeners to respond to user interactions, such as clicking the submit button to add a new product to the catalog or hovering over an image to change its source. The code also uses local storage to save the product data in the browser, so that it persists even when the page is reloaded. The code uses DOM manipulation to add, update and delete items from the catalog. The code also include a dark mode feature that can be toggled by hovering over the dark mode icon