Home | Rules and Guide | Sign In/Create Account | Write a Post | Donate | #ludumdare on irc.afternet.org (Info)

Ludum Dare 23 — April 20th-23rd, 2012 — 10 Year Anniversary!

Ludum Dare 22 :: December 16th-19th, 2011 :: Theme: Alone

[ Results: Top 50 Compo, Jam | Top 25 Categories | View My Entry ]

[ View All (Compo, Jam) | Warmup ]


That map thing

Posted by of Platymuus (twitter: @SpaceManiacX)
September 27th, 2008 1:22 pm

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

You must be logged in to post a comment.


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

[fcache: storing page]