modal

A script for a modal.
It works with the elements visible on the screen to give the navigation a Current class.