Skip to content

Instantly share code, notes, and snippets.

@fc-arny
fc-arny / alert.scss
Created October 31, 2013 23:10
jQuery plugin for showing flash messages Styles for alert took from 'Twitter Bootstrap' PluginBase stay here - https://gist.github.com/fc-arny/6616088
.alert {
padding: 10px;
left: 50%;
margin-left: -300px;
padding-right: 35px;
position: fixed;
top: 10px;
width: 600px;
z-index: 9999;
border: 1px solid transparent;
@fc-arny
fc-arny / jquery.plugin.base.coffee
Last active December 23, 2015 09:39
Abstract class for jquery plugin
$ = jQuery
# An abstract class that provide jQuery plugin setup functionalities.
class window.PluginBase
# Redefine this dictionary to specify default options
@defaultOptions: {}
# The default constructor calls the initialize method and set the jQuery element.
# Remember to call super in subclasses if you want to maintain this behaviour.