YUILibrary - Open source JavaScript and CSS for building richly interactive software.
Fork YUI on GitHub
  • Home
  • Gallery
  • Forums
  • YUI 2
  • YUI 3
  • YUICompressor
  • YUIDoc
  • More
  • Gallery Forums
  • Gallery Stats
  • Gallery Calendar
  • Register
  • Login

Modules

  • Home
  • Featured
  • Popular
  • New
  • All

Documentation

  • FAQ
  • Developer FAQ
  • Developer Guide
  • Module Setup

Context Navigation

    YUI Library is not responsible for bugs or support with this module. It is available as a free service. For support please contact the module owner with the provided links.

    Konami event (gallery-event-konami)

    Last Updated: 10/27/09
    + 2 -

    Luke Smith

    YUI Developer

    See 6 more by this user.

    Featured Item

    Created: 10/25/09
    Last CDN Push: 10/27/09
    Build Tag: gallery-2009.10.27
    Project: YUI 3
    License: YUI BSD
    YUI Version: 3.0.0
    Free for use.

    Based on the Konami code. Subscribers to this event should do something special. The event will be fired only once for each subscriber. With great power comes great responsibility, after all.

    • Tags:
    • lsmith
    • Download
    • Docs
    • Homepage
    • Bugs
    • Source
    • Example
    • Forum
    • History

    Code Sample

    YUI({
        modules: {
            'gallery-event-konami': {
                fullpath: 'http://yui.yahooapis.com/gallery-2009.10.27/build/gallery-event-konami/gallery-event-konami-min.js',
                requires: ['node-base','event-custom'],
                optional: [],
                supersedes: []
          }
     
        }
    }).use('gallery-event-konami', function(Y) {
     
        Y.one('#text-input').on('konami', function (e) {
            alert("You're a filthy cheater, and will be rewarded for it");
        });
     
    });

    Forum Posts

    Subject Author Date
    too funny! Andrew Wooldridge 10/29/09
    YUI Projects
    • All YUI Downloads
    • YUI 2
    • YUI 3
    • YUIDoc
    • YUICompressor
    • YUILibrary.com
    • YUI Build Tool
    • YUI PHP Loader
    Pages & Links
    • All YUI Downloads
    • Git FAQ
    • Graded Browser Support
    • Contribute to YUI
    • Forum Stats
    • Gallery Stats
    • YUI Calendar
    Contribute
    • Submit a Bug
    • Request a Feature
    • Write Code
    • Meet the Team
    Follow YUI
    • on GitHub
    • on Twitter
    • on FriendFeed
    • on Facebook
    • on IRC
    • YUI Blog
    • YUI Theater
    • YUI Forums

    © 2010 YUI Library - Site Credits