Changeset 808
- Timestamp:
- 04/28/06 10:37:19 (2 years ago)
- Files:
-
- presentations/2006/ajax_experience/includes/key_events.html (modified) (1 diff)
- presentations/2006/ajax_experience/slides.html (modified) (1 diff)
- presentations/2006/ajax_experience/ui/mochikit/examples/key_events.js (modified) (1 diff)
- presentations/2006/ajax_experience/ui/mochikit/mochikit.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
presentations/2006/ajax_experience/includes/key_events.html
r805 r808 26 26 <table> 27 27 <tr> 28 <th>Shift</th> 29 <th>Ctrl</th> 30 <th>Alt (Option)</th> 31 <th>Meta (Command)</th> 32 </tr> 33 <tr> 34 <td id="shift">-</td> 35 <td id="ctrl">-</td> 36 <td id="alt">-</td> 37 <td id="meta">-</td> 28 <th class="keyoff" id="k_shift"> Shift </th> 29 <th class="keyoff" id="k_ctrl"> Ctrl </th> 30 <th class="keyoff" id="k_alt">Alt</th> 31 <th class="keyoff" id="k_meta">Meta</th> 38 32 </tr> 39 33 </table> presentations/2006/ajax_experience/slides.html
r807 r808 1228 1228 <table> 1229 1229 <tr> 1230 <th>Shift</th> 1231 <th>Ctrl</th> 1232 <th>Alt (Option)</th> 1233 <th>Meta (Command)</th> 1234 </tr> 1235 <tr> 1236 <td id="shift">-</td> 1237 <td id="ctrl">-</td> 1238 <td id="alt">-</td> 1239 <td id="meta">-</td> 1230 <th class="keyoff" id="k_shift"> Shift </th> 1231 <th class="keyoff" id="k_ctrl"> Ctrl </th> 1232 <th class="keyoff" id="k_alt">Alt</th> 1233 <th class="keyoff" id="k_meta">Meta</th> 1240 1234 </tr> 1241 1235 </table> presentations/2006/ajax_experience/ui/mochikit/examples/key_events.js
r805 r808 9 9 updateModifiers: function(e) { 10 10 var modifiers = e.modifier(); 11 replaceChildNodes('shift', modifiers.shift); 12 replaceChildNodes('ctrl', modifiers.ctrl); 13 replaceChildNodes('alt', modifiers.alt); 14 replaceChildNodes('meta', modifiers.meta); 11 var keys = ['shift', 'alt', 'ctrl' ,'meta']; 12 for (var i = 0; i < keys.length; i++) { 13 var k = keys[i]; 14 if (modifiers[k]) { 15 removeElementClass('k_' + k, 'keyoff'); 16 } else { 17 addElementClass('k_' + k, 'keyoff'); 18 } 19 } 15 20 } 16 21 }; presentations/2006/ajax_experience/ui/mochikit/mochikit.css
r805 r808 33 33 #controls #navLinks a { background: transparent; } 34 34 #controls #navList #jumplist { background: transparent; } 35 .keyoff { color: rgb(200, 200, 200); }
