Join #ludumdare on irc.afternet.org
Mini LD #5 :: November 7th-9th Weekend :: Theme :: Cover

Sign In | Write your Journal
Home | Planet Ludum | Rules Wiki | Mailing List
Ludum Dare 12 Final Results NOW AVAILABLE

Click HERE for the Ludum Dare 12 entries image grid
(to be included in the image grid, you must upload an image to the blog)


That map thing

Posted by SpaceManiac

In case you still care, I found a solution to mrfun’s problem with requiring a wordpress template (http://www.ludumdare.com/compo/2008/09/07/where-is-the-world-are-you/). You need to insert Javascript that adds an event listener to the document’s onLoad and onUnload events. I’ll explain in more detail and in a cross-browser way in just a moment…

– EDIT –

Ok, first get core.js out of this archive: core.zip

Use a <script> tag to load it into the page (this can be anywhere on the page)

After the load/unload functions have been defined, add this code:

<script>
Core.addEventListener(window, “load”, load);
Core.addEventListener(window, “unload”, GUnload);
</script>

And you’re set.

One Response to “That map thing”

  1. mrfun Says:

    Sounds good Space, I’ll give that a shot next time I play with it!

Leave a Reply


All posts, images, and comments are owned by their creators.