Skip to content

Instantly share code, notes, and snippets.

View atypical's full-sized avatar

MDavid Low atypical

View GitHub Profile
@atypical
atypical / redirect.js
Created September 4, 2012 23:21
iPhone / iPod / iPad / Android Redirect JS
<script type="text/javascript"> // <![CDATA[
if ((navigator.userAgent.indexOf('iPhone') != -1) || (navigator.userAgent.indexOf('iPod') != -1)) {
document.location = "vx_iphone_experience";
} // ]]>
if ((navigator.userAgent.indexOf('iPad') != -1)) {
document.location = "vx_ipad_experience";
} // ]]>
if ( (navigator.userAgent.indexOf('Android') != -1) ) {
document.location = "vx_iphone_experience";
} // ]]>
// Processing code by Etienne JACOB
// motion blur template by beesandbombs
// opensimplexnoise code in another tab might be necessary
// --> code here : https://gist.github.com/Bleuje/fce86ef35b66c4a2b6a469b27163591e
int[][] result;
float t, c;
float ease(float p) {