Skip to content

Instantly share code, notes, and snippets.

@Tom-Ski
Created January 13, 2014 23:48
Show Gist options
  • Save Tom-Ski/8410288 to your computer and use it in GitHub Desktop.
Save Tom-Ski/8410288 to your computer and use it in GitHub Desktop.
gwt index
<!doctype html>
<html>
<head>
<title>%APP_NAME%</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style>
canvas {
cursor: default;
outline: none;
}
</style>
</head>
<body>
<h1>Test page for Libgdx with GWT</h1>
Project loading shortly:<br>
<div align="center" id="embed-%PACKAGE%.GdxDefinition"></div>
<script type="text/javascript" src="%PACKAGE%.GdxDefinition/%PACKAGE%.GdxDefinition.nocache.js"></script>
</body>
<script>
function handleMouseDown(evt) {
evt.preventDefault();
evt.stopPropagation();
evt.target.style.cursor = 'default';
}
function handleMouseUp(evt) {
evt.preventDefault();
evt.stopPropagation();
evt.target.style.cursor = '';
}
document.getElementById('embed-%PACKAGE%.GdxDefinition').addEventListener('mousedown', handleMouseDown, false);
document.getElementById('embed-%PACKAGE%.GdxDefinition').addEventListener('mouseup', handleMouseUp, false);
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment