Skip to content

Instantly share code, notes, and snippets.

View mpouncy-netpulse's full-sized avatar

Mike Pouncy mpouncy-netpulse

View GitHub Profile
.alertDot, .alertDotSpan {
text-align:center;
vertical-align:middle;
-webkit-transform-style:preserve-3d;
-webkit-transform-origin:left;
-webkit-transition:all 1s ease-in-out;
}
.alertDot {
display:inline-table;
margin:auto;
@mpouncy-netpulse
mpouncy-netpulse / jquery.alterclass.js
Last active January 11, 2018 19:00 — forked from peteboere/jquery.alterclass.js
jQuery alterClass plugin: Remove element classes with wildcard matching. Optionally add classes.
/**
* jQuery alterClass plugin
*
* Remove element classes with wildcard matching. Optionally add classes:
* $( '#foo' ).alterClass( 'foo-* bar-*', 'foobar' )
*
* Copyright (c) 2011 Pete Boere (the-echoplex.net)
* Updated 2013 by Mike Pouncy (scrupl.es) - Condensed code, removed unneeded vars.
* Free under terms of the MIT license: http://www.opensource.org/licenses/mit-license.php
*
@mpouncy-netpulse
mpouncy-netpulse / gist:7810757
Created December 5, 2013 18:34
jQuery Text Change Event Plugin. Simple cross browser detection of text changes for input and textarea elements using a jQuery custom event plugin. SEE: http://www.zurb.com/playground/jquery-text-change-custom-event. Adapted to make debugging a bit easier.
/*!
* jQuery TextChange Plugin
* http://www.zurb.com/playground/jquery-text-change-custom-event
*
* Copyright 2010, ZURB
* Released under the MIT License
*/
;(function(a) {
a.event.special.textchange = {
setup : function textchangeSetup() {
@mpouncy-netpulse
mpouncy-netpulse / BADGLOBALS.js
Created November 6, 2013 01:26
Include this script BEFORE any scripts you want to scan for bad globals. After the scripts you want to scan, run BADGLOBALS.check() and watch firebug. This script will only work in Firefox or Chrome, NOT in Internet Explorer. Copied from http://www.adequatelygood.com/Finding-Improper-JavaScript-Globals.html
/*jslint white: true, onevar: true, devel: true, undef: true, nomen: true, eqeqeq: true, plusplus: true, bitwise: true, regexp: true, strict: false, newcap: true, immed: true */
/*globals window: false */
/* Copied from http://www.adequatelygood.com/Finding-Improper-JavaScript-Globals.html */
// Include this script BEFORE any scripts you want to scan for bad globals.
// After the scripts you want to scan, run BADGLOBALS.check() and watch firebug.
// This script will only work in Firefox or Chrome, NOT in Internet Explorer.
var BADGLOBALS = (function (window) {
var report,
@mpouncy-netpulse
mpouncy-netpulse / jquery-plugins.js
Last active December 21, 2015 02:48
File to be placed at js/jquery-plugins.js in relation to https://npjira.atlassian.net/browse/QT-1360
/*=====================================================================
JQUERY EXTENSIONS (CORE) | js/jquery-plugins.js
=====================================================================*/;
/** @fileOverview This file has functions related to extending jQuery. */
/*-------------------------------------------------------------------*/
(function($, window, undefined) {
"use strict";