assets/js/gallery.js
//this function will remove gifs from the gallery, update local storage with new gifs array, and render a new gallery
this function will remove gifs from the gallery, update local storage with new gifs array, and render a new gallery
this function will remove gifs from the gallery update local storage with new gifs array and render a new gallery
function removeGif(){
        const gifsArray = JSON.parse(localStorage.getItem("gifs"));
        gifsArray.splice(gifsArray.indexOf(this.parentElement.children[0].children[0].src), 1);
        localStorage.setItem("gifs", JSON.stringify(gifsArray));
        renderGallery();
    }
function removeGif ( ) { const gifsArray = JSON . parse ( localStorage . getItem ( "gifs" ) ) ; gifsArray . splice ( gifsArray . indexOf ( this . parentElement . children [ 0 ] . children [ 0 ] . src ) , 1 ) ; localStorage . setItem ( "gifs" , JSON . stringify ( gifsArray ) ) ; renderGallery ( ) ; }
this function will remove gifs from the gallery, update local storage with new gifs array, and render a new gallery
this function will remove gifs from the gallery update local storage with new gifs array and render a new gallery
//this grabs the current gifs in local storage and stores them in gifs Array //this splices the array and removes the index of the selected gif  //this stores the gifs back into local storage without the selected gif url //this renders a new gif gallery