<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dominik Winter&#039;s Blog &#187; hacking</title>
	<atom:link href="http://blog.edge-project.org/category/programming-language/javascript/hacking/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.edge-project.org</link>
	<description></description>
	<lastBuildDate>Fri, 01 Jul 2011 20:45:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>jCharacterfall</title>
		<link>http://blog.edge-project.org/2009/10/15/jcharacterfall/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://blog.edge-project.org/2009/10/15/jcharacterfall/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 21:57:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[hacking]]></category>

		<guid isPermaLink="false">http://blog.edge-project.org/?p=79</guid>
		<description><![CDATA[This is the first article of my new section "javascript/hacking".

Firefox and and the Firebug add-on are required for the most scripts, I will post from time to time.

First go to this site http://demo.marcofolio.net/jcharacterfall/, put the code at the bottom in the console and run it. Then start the game.

Have much fun!

]]></description>
			<content:encoded><![CDATA[<p>This is the first article of my new section &#8220;javascript/hacking&#8221;.</p>
<p><a href="http://www.mozilla.org/">Firefox</a> and and the <a href="http://getfirebug.com/">Firebug add-on</a> are required for the most scripts, I will post from time to time.</p>
<p>First go to this site <a href="http://demo.marcofolio.net/jcharacterfall/">http://demo.marcofolio.net/jcharacterfall/</a>, put the code <span>at the bottom</span> in the console and run it. Then start the game.</p>
<p>Have much fun!</p>
<pre class="brush: jscript; title: ; notranslate">
$(function () {
    var still = [];
    var $document = $(document);

    window.setInterval(function () {
        var $drop = $('#waterfall .fallingchar:last-child');
        var id = $drop.attr('id');

        if ($drop.length !== 1 || $.inArray(id, still) !== -1) {
            return true;
        }

        var letter = $.trim($('p', $drop).text());

        $document.trigger({
            type: 'keydown',
            keyCode: String.charCodeAt(letter)
        });

        still.push(id);
    }, 1);
});
</pre>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://blog.edge-project.org/2009/10/15/jcharacterfall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

