エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント4件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
コナミコマンドをWebで - ぷりきゅあだいすき!
なんとなくこんなの作った。 var KeyCommand = Class.create(); KeyCommand.prototype = { initialize: ... なんとなくこんなの作った。 var KeyCommand = Class.create(); KeyCommand.prototype = { initialize: function() { this.map = []; this.key_history = ''; Event.observe(document, 'keyup', this.observer.bind(this)); }, observer: function (event) { this.key_history += "/" + event.keyCode; for(i=0, len=this.map.length; i < len; i++) { if (this.key_history.indexOf(this.map[i].command) > -1) { this.map[i].callback(); this
2007/04/24 リンク