Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<!DOCTYPE html>
<html manifest="manifest.php" lang="en-US">
<title>Reference Library</title>
<meta id="Copyright" name="Copyright" content="Copyright 2010 Apple Inc. All Rights Reserved.">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link type="image/png" rel="apple-touch-icon" href="images/icon.png">
<link type="text/css" rel="stylesheet" href="ui/css/ui-ipad.css">
<link type="text/css" rel="stylesheet" href="../Resources/439/CSS/ac_media.css">
<link type="text/css" rel="stylesheet" href="../Resources/439/CSS/devpubs.css">
<link type="text/css" rel="stylesheet" href="../Resources/439/CSS/docs.css">
<link type="text/css" rel="stylesheet" href="../Resources/439/CSS/pedia.css">
<link type="text/css" rel="stylesheet" href="iPad_ReferenceLibrary.css">
<script type="text/javascript" src="../Resources/439/JavaScript/lib/prototype.js"></script>
<body class="iPad">
<!-- Media player includes -->
<script type="text/javascript" src="../Resources/439/JavaScript/lib/scriptaculous.js"></script>
<script type="text/javascript" src="../Resources/439/JavaScript/lib/event_mixins.js"></script>
<script type="text/javascript" src="../Resources/439/JavaScript/lib/browserdetect.js"></script>
<script type="text/javascript" src="../Resources/439/JavaScript/lib/ac_media.js"></script>
<!-- /Media player includes -->
<script type="text/javascript" src="ui/js/ui-ipad.js" charset="utf-8"></script>
<script type="text/javascript" src="iPad.js" charset="utf-8"></script>
<script type="text/javascript">
/* TODO: Insert Initialization Script Here at build time */
/* Initialization
To debug on the desktop set the localSorage item debugSawtooth:
localStorage.setItem('debugSawtooth', 'true');
Handles redirection of browser to correct version of library.
We are not waiting unti the DOM is fully loaded so we can redirect as fast as possible.
if (ADSupportsTouches || (localStorage && localStorage.getItem('debugSawtooth') == 'true')) {
if (window.innerWidth >= 768 || (localStorage && localStorage.getItem('debugSawtooth') == 'true')) {
var iPad_ReferenceLibrary = new ReferenceLibrary();
} else {
// Redirect to iPhone/iPod Touch version
if (window.location.hash){
window.location = '../' + window.location.hash.replace(/^#/, '').replace(/%23/, '#');
} else {
window.location = '../';
} else {
// Redirect to desktop version
if (window.location.hash){
window.location = '../' + window.location.hash.replace(/^#/, '').replace(/%23/, '#');;
} else {
window.location = '../';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.