Help with preloader

Need some help installing a preloader on this website, can’t figure out what I’ve done wrong, please help. The screenshots show what I’ve done so far.

It seems like to lightbox you were using is in a different scope, therefore it doesn’t recognize the ID. If you want to show a lightbox on a button click event, you should the the openLightbox function instead.

Good luck!