aseprite/data/www/index.html

32 lines
811 B
HTML
Raw Normal View History

<!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>