Skip to content

Instantly share code, notes, and snippets.

View mtmzorro's full-sized avatar
🌌
Warp Drive Active

mTmzorro mtmzorro

🌌
Warp Drive Active
View GitHub Profile
/*Make position:fixed work in IE6!*/
.fixed-top /* position fixed Top */{position:fixed;bottom:auto;top:0;}
.fixed-bottom /* position fixed Bottom */{position:fixed;bottom:0;top:auto;}
.fixed-left /* position fixed Left */{position:fixed;right:auto;left:0;}
.fixed-right /* position fixed right */{position:fixed;right:0;left:auto;}
* html,* html body /* IE6 Fixed Position Jitter Fix */{background-image:url(about:blank);background-attachment:fixed;}
* html .fixed-top /* IE6 position fixed Top */{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop));}
* html .fixed-right /* IE6 position fixed right */{position:absolute;right:auto;left:expression(eval(document.documentElement.scrollLeft+document.documentElement.clientWidth-this.offsetWidth)-(parseInt(this.currentStyle.marginLeft,10)||0)-(parseInt(this.currentStyle.marginRight,10)||0));}
// Include gulp
var gulp = require('gulp');
// Include Our Plugins
var sass = require('gulp-sass');
var lr = require('tiny-lr'),
refresh = require('gulp-livereload'),
server = lr();
@mtmzorro
mtmzorro / adapt.js
Last active August 29, 2015 14:05 — forked from shenduxian1/adapt.js
//
if (navigator.userAgent.indexOf('Firefox') > 0 || window.navigator.msPointerEnabled) {
var head = document.getElementsByTagName('head');
var viewport = document.createElement('meta');
viewport.name = 'viewport';
viewport.id = 'viewport';
viewport.content = "width=640";
head.length > 0 && head[head.length - 1].appendChild(viewport);
$(window).resize(function () {
resizeWindow();