starting: mobile sidebar menu (intending to take the span3 hidden on mobile and turn it into a slidein sidebar)

This commit is contained in:
psychobunny
2013-06-05 17:59:20 -04:00
parent 95830c3c7c
commit 1803595fa2

View File

@@ -240,5 +240,23 @@ var socket,
} }
} }
}, false); }, false);
addTouchEvents();
}); });
function addTouchEvents() {
var el = jQuery("#content"),
width = el.width();
el.on('touchmove', function(e) {
//this.style.marginLeft = - parseInt(width - event.touches[0].pageX) + 'px';
});
el.on('touchend', function(e) {
this.style.marginLeft = 'auto';
})
}
}()); }());