Skip to content

Instantly share code, notes, and snippets.

View burnoutprojects's full-sized avatar
Convert Caffeine Into Code

Antonis Triantafyllopoulos burnoutprojects

Convert Caffeine Into Code
View GitHub Profile
@burnoutprojects
burnoutprojects / README.md
Last active October 19, 2020 22:54 — forked from cferdinandi/README.md
A vanilla JS fork of Lettering.js
@burnoutprojects
burnoutprojects / bootstrap.messagebox.js
Created November 22, 2017 03:41 — forked from afshinm/bootstrap.messagebox.js
Twitter Bootstrap Message Box Plugin
(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 <afshin.meh@gmail.com>
** 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 , '');