aseprite/data/www/index.html
David Capello d259b5c394 Add experimental webserver API and home page
Added webserver::IRequest/IResponse/IDelegate interfaces.
2013-04-01 19:37:02 -03:00

32 lines
811 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>Aseprite</title>
<link href="aseprite.css" rel="stylesheet">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="aseprite.js"></script>
<script type="text/javascript">
$(function() {
$('#run').click(function() {
eval($('#code').text());
});
});
</script>
</head>
<body>
<img src="aseprite.png">
<h2>Console:</h2>
<pre id="console"></pre>
<h2>Test your code:</h2>
<textarea id="code" cols="80" rows="10">
Aseprite.get_version(function(version){
alert(version.package + "/" + version.version + " APIv" + version.api +
" (" + version.webserver + " webserver)");
});</textarea><br>
<input id="run" type="button" value="Run" style="width:200px">
</body>
</html>