HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

MarkerUpper 1.0.0

Adds the marker-upper jQuery plugin to Vanilla

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.


No questions yet.