Spotlight

This utility allows you to restrict input to a particular element by masking all other page content.

The js is not minified so it is readable. See spotlight-example.js.