Created
January 13, 2014 23:48
-
-
Save Tom-Ski/8410288 to your computer and use it in GitHub Desktop.
gwt index
This file contains hidden or 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>%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