mirror of
https://github.com/photonstorm/phaser
synced 2024-12-18 09:03:29 +00:00
18 lines
No EOL
386 B
JavaScript
Executable file
18 lines
No EOL
386 B
JavaScript
Executable file
/**
|
|
* jQuery plugin for Sunlight http://sunlightjs.com/
|
|
*
|
|
* by Tommy Montgomery http://tmont.com/
|
|
* licensed under WTFPL http://sam.zoy.org/wtfpl/
|
|
*/
|
|
(function($, window){
|
|
|
|
$.fn.sunlight = function(options) {
|
|
var highlighter = new window.Sunlight.Highlighter(options);
|
|
this.each(function() {
|
|
highlighter.highlightNode(this);
|
|
});
|
|
|
|
return this;
|
|
};
|
|
|
|
}(jQuery, this)); |