Skip to content

Instantly share code, notes, and snippets.

View kathangeorg's full-sized avatar

Schorsch kathangeorg

View GitHub Profile
@kathangeorg
kathangeorg / gist:2146326
Created March 21, 2012 11:33
Flexslider order
// sort flexslider correctly
$(document).ready(function(){
var z = 999;
$("ul.slides li").each(function(){
z-=1;
$(this).css({'z-index':z});
});
$('.flexslider').flexslider({
slideToStart: 0,
animation: "fade"
@kathangeorg
kathangeorg / gist:2145704
Created March 21, 2012 09:00
iOS, Android detection and position fixed
var ua = navigator.userAgent;
var checker = {
iphone: ua.match(/(iPhone|iPod|iPad)/),
blackberry: ua.match(/BlackBerry/),
android: ua.match(/Android/)
};
/*Check if device runs iOS 5 or higher*/
fiveorhigher = navigator.userAgent.match(/[5-9]_[0-9]/) !== null;
if(console) {console.log(fiveorhigher);}
@kathangeorg
kathangeorg / mimetype
Created March 20, 2012 17:24
HTML5 Video Mimetypes per .htaccess
AddType video/ogg .ogm
AddType video/ogg .ogv
AddType video/ogg .ogg
AddType video/webm .webm
AddType audio/webm .weba
AddType video/mp4 .mp4
AddType video/x-m4v .m4v