Skip to content

Instantly share code, notes, and snippets.

View innbitcodes's full-sized avatar

InnBit Codes innbitcodes

View GitHub Profile
@innbitcodes
innbitcodes / JavaScript-Detect-IE
Created October 13, 2012 11:06 — forked from padolsey/gist:527683
JavaScript: Detect IE
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}
@innbitcodes
innbitcodes / source.html
Created October 31, 2012 06:07
HTML: Get HTML5 Shim
<!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
@innbitcodes
innbitcodes / maximage-generic.js
Created November 3, 2012 06:40 — forked from akv2/maximage-generic.js
jQuery: Generic settings for maximage demo.
$(function(){
$('#maximage').maximage({
cycleOptions: {
fx: 'fade',
// Speed has to match the speed for CSS transitions
speed: 1000,
timeout: 0,
prev: '#arrow_left',
next: '#arrow_right',
pause: 1