MarkerUpper 1.0.0
MarkerUpper is a simple library that can add dynamic markup to your discussion lists, based on keywords in the discussion topic.
You can customise it by editing marker-upper.js (and re-minifying it, or updating the plugin class to use the un-minified script).
In marker-upper.js, you'll see some entries already there, in defaults.keys.
The format of a markup entry is:
"keystring": { cssClass: "some-class", matchCase: true/false, wrapAll: true/false }
matchCase
defines whether or not the key match is case-sensitive, and wrapAll
defines whether to wrap just the keyword with the specified CSS class, or whether to wrap the entire discussion title.
Additionally, defaults.prefix defines a string prefix for the CSS classes. By default it is mu-
. The plugin also includes a CSS file where you can put CSS corresponding to each key option.
- Author
- jamesinc
- Version
- 1.0.0
- Updated
- Downloads
- 39
- File Size
- 3.5K
- License
- MIT
Vanilla 2021.009 Compatibility
The community has said nothing.
Version History
1.0.0 | April 2016 |