Created
June 19, 2012 21:31
-
-
Save lurraca/2956660 to your computer and use it in GitHub Desktop.
My html file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>Cines</title> | |
<link rel="stylesheet" type="text/css" href="stylesheets/style.css" media="all"> | |
<link rel="stylesheet" href="stylesheets/jquery.mobile-1.1.0.min.css" /> | |
<script src="jquery-1.7.2.min.js"></script> | |
<script src="jquery.mobile-1.1.0.min.js"></script> | |
<script type="text/javascript" charset="utf-8" src="cordova-1.8.1.js"> | |
</script> | |
<script type="text/javascript" charset="utf-8"> | |
// Wait for PhoneGap to load | |
// | |
function init() { | |
document.addEventListener('deviceready', onDeviceReady, false); | |
var url = "http://23.21.128.153:3000/regions.json";var jsonresults; | |
$.getJSON(url,function(data){ | |
jsonresults = data; | |
$.each(jsonresults, function(i,v){ | |
$('#main-content').append('<li>'+jsonresults[i].name+'</li>'); | |
}); | |
}); | |
} | |
// PhoneGap is ready | |
// | |
function onDeviceReady() { | |
} | |
// alert dialog dismissed | |
function alertDismissed() { | |
// do something | |
} | |
// Show a custom alert | |
// | |
function showAlert() { | |
navigator.notification.alert( | |
'You are the winner!', // message | |
alertDismissed, // callback | |
'Game Over', // title | |
'Done' // buttonName | |
); | |
} | |
</script> | |
</head> | |
<body onload="init()"> | |
<div id="home-header"> | |
<img src="images/cines_head.png" id="estrenos-img" alt="" style="float:left"> | |
<img src="images/search.png" alt="" id="search-img" style="float:left"> | |
</div> | |
<script type="application/javascript"> | |
$(document).ready(function() { | |
}); | |
</script> | |
<div id="main-content"> | |
buttons and all the stuff in here! | |
</div> | |
<div id="ad-bottom"> | |
<img src="images/ad.png" alt=""> | |
</div> | |
<div id="bottom-buttons"> | |
<img src="images/ajustes.png" alt="" id="ajustes"> | |
<img src="images/info.png" alt="" id="info"> | |
</div> | |
</body> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment