Skip to content

Instantly share code, notes, and snippets.

@kruyvanna
Last active December 20, 2015 05:18
Show Gist options
  • Save kruyvanna/6076684 to your computer and use it in GitHub Desktop.
Save kruyvanna/6076684 to your computer and use it in GitHub Desktop.
game_controller
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<script src="plugins/plugin-loader.js"></script>
<link rel="stylesheet" href="plugins/plugin-loader.css">
<script>
var PORT = 3000;
var ROOT_DIRECTORY = "client/"
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady(){
var httpServer = new monaca.HttpServer(ROOT_DIRECTORY, PORT);
httpServer.start(function(response){
alert(JSON.stringify(response));
});
}
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment