Skip to content

mattmcguirk/highlightElements

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

highlightElements.js

highlightElements.js is an extremely simple JavaScript application that was developed as an exercise in writing code using the Module design pattern. It will higlight any element that is moused over so long as it is contained in For a good primer on the design pattern, the following links may be useful:

Requirements

  • jQuery 2.1.3 or better

Usage

  1. Include the higlightElement.js file in the head of your HTML document
  2. Pass a configuration to highlightElement.init(). The configuration can take two arguments:
    • wrapper: The element containing children which should be higlighted when moused over. The default is body.
    • color: The color of the highlight. Default is light yellow.

And that's it!

About

A javascript application that highlights html elements with a splash color. An exercise in the module design pattern.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published