Created
December 29, 2012 20:35
-
-
Save alecmce/4409200 to your computer and use it in GitHub Desktop.
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
package; | |
#if js | |
import js.JQuery; | |
#end | |
class JeashDiv | |
{ | |
public function new() | |
{ | |
#if js | |
var div = new JQuery("#haxe:jeash"); | |
if (div.length == 0) | |
{ | |
div = new JQuery("<div id='haxe:jeash'></div>"); | |
div.hide(); | |
div.prependTo(js.Lib.document.body); | |
} | |
#end | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment