JSFiddle

  • Hotkey Inspector (no text-shadows)

    Little toy to help me making hotkeys with javascript keypress. Version without text-shadows to show why I use them.

    document.addEventListener('keydown', function(e) {
        
        // Just in case someone wonders, no, this code
        // wasn't minified...
        
        var h = '';
        for(i ...
  • Hotkey Inspector

    Little toy to help me making hotkeys with javascript keypress.

    document.addEventListener('keydown', function(e) {
        
        // Just in case someone wonders, no, this code
        // wasn't minified...
        
        var h = '';
        for(i ...
  • Animated JPEG #110 is the latest revision

    Uses JPEG and Javascript instead of an animated GIF to create something better. See http://stackoverflow.com/a/10139720/124119 for more info.

    function animateSprite(div, data, pos) {
        if(!pos) var pos = 0; // Default position.
        var stopAttribute = div.getAttribute('stop');
        if(stopAttribute == 'true ...
  • Tag Remove Button Mockup

    A mockup created by me for a stackoverflow question: http://meta.stackoverflow.com/questions/40990/wanted-a-way-to-remove-tags-from-a-search

    // Icon by Yusuke Kamiyamane.
    var iconUri = 'data:image/png;base64,' +
        'iVBORw0KGgoAAAANSUhEUgAAABAAAAAQ' +
        'CAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2Fy' +
        'ZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAA' +
        'Ae5JREFUeNqkk89KG1EUxr+ZubnUjJai' +
        'pgtNtTZKxE1AVIi4yM5tF30Hoe/iA3Tn' +
        'QkTBRbZFKApCAl1142CJqLR0ZUNJJpPJ' +
        'ZP70nJvcEK0SpAPfzD3n5vedM2dujCRJ ...