Skip to content

Instantly share code, notes, and snippets.

View nicholasstephan's full-sized avatar

Nicholas Stephan nicholasstephan

View GitHub Profile
@nicholasstephan
nicholasstephan / webapp meta
Last active December 15, 2015 01:19 — forked from tfausak/ios-8-web-app.html
HTML: Full iOS webapp meta data.
<meta content="yes" name="apple-mobile-web-app-capable">
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
<!-- iPhone -->
<link href="img/touch-icon-57x57.png"
sizes="57x57"
rel="apple-touch-icon">
<link href="img/touch-startup-image-320x460.png"
media="(device-width: 320px) and (device-height: 480px)
@nicholasstephan
nicholasstephan / rAF.js
Last active December 14, 2015 21:08 — forked from paulirish/rAF.js
JS: requestAnimationFrame polyfill
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller
// fixes from Paul Irish and Tino Zijdel
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {