Skip to content

Instantly share code, notes, and snippets.

<script>
window.onload = function(){ setTimeout(function() { window.scrollTo(0,0); },500); };
window.onorientationchange = function(){ setTimeout( function() { window.scrollTo(0,0); },100); };
</script>
<script type="text/javascript">
function load() {
if (navigator.userAgent.match(/OS 5(_\d)+ like Mac OS X/i)) { document.body.className+=" ios5" }
}
</script>
@fling
fling / gist:1013306
Created June 7, 2011 22:18
Financial Times Web App Javascript
/*!
* jQuery JavaScript Library v1.5
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
@fling
fling / gist:956189
Created May 4, 2011 22:32
page control css
#pagewrapper {
position:absolute;
z-index:1;
top: 15px; bottom:0;
width:724px;
overflow:hidden;
height: 974px;
}
#pageflip {
@fling
fling / gist:956023
Created May 4, 2011 20:59
Page Control CSS
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=724, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<title>Page Control</title>
<style>