2015-12-07 js (condition ? ifTrue : ifFalse) 三項演算子とか知らんかった。 conditionが条件式でpreventDefault() は、その要素のイベントをキャンセルし、stopPropagation()は、親要素への伝播をキャンセルする。