Motif features JavaScript plugins that depend on the jQuery framework -- jQuery plugins, if you will. You'll want to make sure that one way or another, jQuery v1.11.0 is included in your site to take advantage of the plugins. From core, infinitely configurable plugins to more specific use-case plugins built on top of them, these plugins are built with the intent of progressively enhancing a visitor's web experience.
Note: All Motif jQuery Plugins require /utils/motif.utils.plugins.js
for initialization.
Location: /forms/
Version: 1.0.0
Location: /forms/motif.gauntlet.js
A form validation plugin that depends on HTML5 syntax.
See the full documentation of Gauntlet.
Version: 0.3.0
Location: /forms/motif.conditioner.js
Conditionally enable and disable form elements.
Documentation coming soon!
Version: 0.2.0
Location: /forms/motif.ajax-submission.js
A simple plugin to aid in Ajax form submission, with callback messages and form reseting. (Requires Gauntlet.)
Documentation coming soon!
Location: /ui/
Version: 2.0.0
Location: /ui/motif.reveal.js
Show and hide things with class(es).
Documentation coming soon!
Location: /scroll/
Version: 0.2.0
Location: /scroll/motif.herald.js
Fire off events depending on scroll position.
Documentation coming soon!
Version: 0.1.1
Location: /scroll/motif.sidekick.js
A basic sticky sidebar. (Requires Herald.)
Documentation coming soon!
June 26th, 2018 Addition of the ability to pass how much Throttle should be applied to your listener for when to apply/remove Sticky. Default is 50ms. If you see flickers, lessen this number.
$(".js-sticky-element").sidekick({
"minWidth": 768,
"throttle": 0
})
Version: 0.1.0
Location: /scroll/motif.scroll-patrol.js
A basic navigation scroll "spy". (Requires Herald.)
Documentation coming soon!
Location: /utils/
Version: 1.0.0
Location: /utils/motif.utils.load-script.js
Slightly modified version of https://gist.github.com/niftylettuce/3620903. (Does not require jQuery.)
Version: 0.2.0
Location: /utils/motif.utils.plugins.js
Not a plugin in itself, but a set of tool for initializing plugins safely.
Documentation coming soon!