This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################################################### | |
# _ _ _ ______ _____ _ _ # | |
# | | | | | | | _ \ | _ | | | (_) # | |
# | | | | ___| |__ | | | |_____ __ | | | |_ _ ___ ___| |_ _ ___ _ __ ___ # | |
# | |/\| |/ _ \ '_ \ | | | / _ \ \ / / | | | | | | |/ _ \/ __| __| |/ _ \| '_ \/ __| # | |
# \ /\ / __/ |_) | | |/ / __/\ V / \ \/' / |_| | __/\__ \ |_| | (_) | | | \__ \ # | |
# \/ \/ \___|_.__/ |___/ \___| \_/ \_/\_\\__,_|\___||___/\__|_|\___/|_| |_|___/ # | |
# # | |
######################################################################################### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
$(function() { | |
var mqls = [window.matchMedia("(min-width: 1900px)"), window.matchMedia("(max-width: 780px)"), window.matchMedia("(max-width: 480px)")], | |
handleOrientationChange = function(mql) { | |
switch(mql.media) { | |
case '(min-width: 1900px)' : |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
var methods = { | |
adjustHeight : function(ratio, width) { | |
if(width == currentWidth) return; | |
currentWidth = width; | |
this.height(width/ratio); | |
} | |
}, | |
currentWidth; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { // make this friendly to other libraries | |
$(function() { | |
var theCode = { // what code, I don't know what code you're talking about... | |
sequence: new Array(38,38,40,40,37,39,37,39,66,65,13), // | |
index: 0 | |
}; | |
$('body').on('keyup', function(event) { | |
//changed from 'keydown' so the function triggers on release of the key instead of as soon as its pressed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function( $ ) { | |
/** | |
* jQuery.transtionend | |
* Retrievs the total amount of time, in miliseconds that | |
* an element will be transitioned | |
*/ | |
$.fn.transtionend = function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Implements hook_form_alter | |
*/ | |
function trnAccount_form_alter(&$form, &$form_state, $form_id) { | |
global $user; | |
switch($form_id) : | |
case 'user_login': | |
// build the validators array |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* hoverEnabler | |
* @mandelbro 05/16/2012 | |
* | |
* A simple solution to adding css hover effects to elements | |
* in a cross browser capatable way | |
* | |
* Just add the .hoverEnabler class to any element which lacks |
NewerOlder