This file contains 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($) { | |
if (!$.aniAutoHeight) { | |
$.extend({ | |
aniAutoHeight: function(elm, speed) { | |
if (!speed) speed = 200; | |
return elm.each(function(index){ | |
var curHeight = $(this).height(), | |
autoHeight = $(this).css('height', 'auto').height(); | |
$(this).height(curHeight).animate({height: autoHeight}, speed, function() { $(this).height('auto'); }); | |
}); |
This file contains 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
/* ========================================================================== | |
Globals | |
========================================================================== */ | |
@font-face { | |
font-family: 'GaramondPro'; | |
src: url('fonts/AGaramondPro-Regular.otf'); | |
font-weight: normal; | |
font-style: normal; | |
} |
This file contains 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($) { | |
if (!$.aniAutoHeight) { | |
$.extend({ | |
aniAutoHeight: function(elm, speed) { | |
if (!speed) speed = 200; | |
return elm.each(function(index){ | |
var curHeight = $(this).height(), | |
autoHeight = $(this).css('height', 'auto').height(); | |
$(this).height(curHeight).animate({height: autoHeight}, speed, function() { $(this).height('auto'); }); | |
}); |
This file contains 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
<!DOCTYPE html> | |
<html class="no-js"> | |
<head> | |
<!-- Include meta data first, although this is slowly becoming less read by modern browsers --> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta http-equiv="cache-control" content="no-cache" /> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
This file contains 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
/* ========================================================================== | |
Globals | |
========================================================================== */ | |
@font-face { | |
font-family: 'GaramondPro'; | |
src: url('fonts/AGaramondPro-Regular.otf'); | |
font-weight: normal; | |
font-style: normal; | |
} |
This file contains 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
/* String.similarTo("compare", [BOOL (default TRUE) if do reverse check]) | |
* Credit to for base formula Andrei Mackenzie | |
* https://gist.github.com/andrei-m/982927 | |
**/ | |
;(function() { | |
function l(a, b) { | |
if(a.length == 0) return b.length; | |
if(b.length == 0) return a.length; | |
var matrix = []; | |
for(var i=0;i<=b.length;i++) matrix[i] = [i]; |