Okt 23 2011

Complicate your code

Christoph

// To make Flash Storage work on IE, we have to load up an
// iFrame which contains an HTML page that embeds the
// object using an object tag wrapping an embed tag.
// Of course, this is unnecessary for all browsers except
// for IE, which, to my knowledge, is the only browser in
// existance where you need to complicate your code to
// fix bugs. Goddamnit. :(

Source: Direct link to the source code
Software: jStore
Programming language: Java Script

1 Star2 Stars3 Stars4 Stars5 Stars (3 Bewertungen, Durchschnitt: 3,67 von 5)
Loading ... Loading ...

Dez 15 2010

Metacommenting should also be good

Christoph

/*JS File: ../js/data/export/flash.js*/
/**
 * @author antimatter15
 *
 * Wow! Flash! isn’t it all about this these days? Oh wait.
 * wrong version. Who cares? Flash is everwhere. It may suck
 * in some ways (cross-platformness) but its better than the
 * competition (*cough* silverlight *cough*)
 *
 * This probably doesn’t make much sense. I can’t even make
 * sense of this. But IDK. this is just another comment on
 * comments, which is now a commment on commments on comments
 * because meta-thinking is good, metacommenting should also
 * be good.
 */

Source: Direct link to the source code
Software: AJAX Animator
Programming language: JavaScript

1 Star2 Stars3 Stars4 Stars5 Stars (3 Bewertungen, Durchschnitt: 3,33 von 5)
Loading ... Loading ...

Jan 27 2010

IE’s textRange

Christoph

//IE’s textRange and selection object is woefully inadequate,
//which means this fancy stuff is gecko only sorry :-|
//Die Bill, Die. (IE supports it somewhat nativly though)

Source: Direct link to the source code
Software: Xinha
Programming language: JavaScript

1 Star2 Stars3 Stars4 Stars5 Stars (4 Bewertungen, Durchschnitt: 3,75 von 5)
Loading ... Loading ...

Dez 8 2009

Replaced immediately

Christoph

Thanks to Marco for this code candy.

// FIXME: the following 2 functions totally suck, are useless
// and should be replaced immediately.

Source: Direct link to the source code
Software: jQuery
Programming language: JavaScript

1 Star2 Stars3 Stars4 Stars5 Stars (5 Bewertungen, Durchschnitt: 4,00 von 5)
Loading ... Loading ...

Nov 19 2009

I’m going senile

Christoph

// OK, I’ve disabled this temporarily, to be honest, I can’t
// rightly remember what the original problem was I was
// trying to solve with it. I think perhaps that
// EnterParagraphs might solve the problem, whatever the hell
// it was. I’m going senile, I’m sure.

Source: Direct link to the source code
Software: Xinha
Programming language: JavaScript

1 Star2 Stars3 Stars4 Stars5 Stars (6 Bewertungen, Durchschnitt: 4,17 von 5)
Loading ... Loading ...