A vanilla JS fork of Lettering.js. Follow along in the tutorial video at https://gomakethings.com/converting-a-jquery-plugin-to-vanilla-js-lettering.js/.
Pass in a selector for the elements you want to run Vanilla Lettering.js on.
A vanilla JS fork of Lettering.js. Follow along in the tutorial video at https://gomakethings.com/converting-a-jquery-plugin-to-vanilla-js-lettering.js/.
Pass in a selector for the elements you want to run Vanilla Lettering.js on.
| (function ($) { | |
| /* Twitter Bootstrap Message Helper | |
| ** Usage: Just select an element with `alert` class and then pass this object for options. | |
| ** Example: $("#messagebox").message({text: "Hello world!", type: "error"}); | |
| ** Author: Afshin Mehrabani <[email protected]> | |
| ** Date: Monday, 08 October 2012 | |
| */ | |
| $.fn.message = function(options) { | |
| //remove all previous bootstrap alert box classes | |
| this[0].className = this[0].className.replace(/alert-(success|error|warning|info)/g , ''); |