Skip to content

Instantly share code, notes, and snippets.

@pehrlich
Created December 4, 2011 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pehrlich/1431019 to your computer and use it in GitHub Desktop.
Save pehrlich/1431019 to your computer and use it in GitHub Desktop.
Phonegap index.html
<!DOCTYPE html>
<html>
<head>
<!-- todo: optimize preloading & caching in the app -->
<title>Brickbook iOS</title>
<script src="http://jsconsole.com/remote.js?E4FD2C56-98CF-notgivingyoumyactualkey-34EB-69B8779345D0"></script>
<link href="http://192.168.47.105:3000/assets/application.css" media="screen" rel="stylesheet" type="text/css"/>
<script src="http://192.168.47.105:3000/assets/application.js" type="text/javascript"></script>
<meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1.0, user-scalable=no">
<script type="text/javascript">
// dom ready happens before device ready
$(function(){
document.cookie = localStorage.getItem('cookie');
// alert('loaded cookie from sotrage', document.cookie);
$.mobile.allowCrossDomainPages = true;
$.mobile.changePage("http://192.168.47.105:3000/discover");
});
</script>
</head>
<body style="background-color: black; color: #ddd;">
<h1>Brickbook</h1>
<p>Could not connect to Brickbook.co. This is an online-only app, please check your connection and try again.</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment