|
42 | 42 |
|
43 | 43 | <nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
44 | 44 | <div class="wy-side-nav-search">
|
45 |
| - <a href="http://swisnl.github.io/jQuery-contextMenu/" class="fa fa-home"> jQuery contextMenu</a> |
| 45 | + <a href="http://swisnl.github.io/jQuery-contextMenu/"> jQuery contextMenu</a> |
46 | 46 | </div>
|
47 | 47 |
|
48 | 48 | <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
|
270 | 270 | </ul>
|
271 | 271 | </li>
|
272 | 272 | </ul>
|
| 273 | + <div class="swis-branding"> |
| 274 | + <span>Maintained by:</span> |
| 275 | + <a href="http://www.swis.nl"><img src="images/swis-logo.jpg" class="swis-logo">Creative Digital Agency</a> |
| 276 | + </div> |
273 | 277 | </div>
|
274 | 278 |
|
275 | 279 | </nav>
|
|
285 | 289 | <div class="wy-nav-content">
|
286 | 290 | <div class="rst-content">
|
287 | 291 | <div role="main" class="document">
|
288 |
| - <a href="https://github.com/swisnl/jQuery-contextMenu/blob/master/documentation/demo/accesskeys.md" class="edit-on-github fa fa-github"> Edit on GitHub</a> |
| 292 | + <a href="https://github.com/swisnl/jQuery-contextMenu" class="edit-on-github fa fa-github"> Fork on GitHub</a> |
| 293 | + |
| 294 | + <h1 id="demo-accesskeys">Demo: Accesskeys</h1> |
| 295 | +<!-- START doctoc generated TOC please keep comment here to allow auto update --> |
| 296 | +<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> |
| 297 | +<ul> |
| 298 | +<li><a href="#example-code">Example code</a></li> |
| 299 | +<li><a href="#example-html">Example HTML</a></li> |
| 300 | +</ul> |
| 301 | +<!-- END doctoc generated TOC please keep comment here to allow auto update --> |
| 302 | +<p><span class="context-menu-one btn btn-neutral">right click me</span></p> |
| 303 | +<h2 id="example-code">Example code</h2> |
| 304 | +<script type="text/javascript" class="showcase"> |
| 305 | +$(function(){ |
| 306 | + $.contextMenu({ |
| 307 | + selector: '.context-menu-one', |
| 308 | + callback: function(key, options) { |
| 309 | + var m = "clicked: " + key; |
| 310 | + window.console && console.log(m) || alert(m); |
| 311 | + }, |
| 312 | + items: { |
| 313 | + "edit": {name: "Edit", icon: "edit", accesskey: "e"}, |
| 314 | + "cut": {name: "Cut", icon: "cut", accesskey: "c"}, |
| 315 | + // first unused character is taken (here: o) |
| 316 | + "copy": {name: "Copy", icon: "copy", accesskey: "c o p y"}, |
| 317 | + // words are truncated to their first letter (here: p) |
| 318 | + "paste": {name: "Paste", icon: "paste", accesskey: "cool paste"}, |
| 319 | + "delete": {name: "Delete", icon: "delete"}, |
| 320 | + "sep1": "---------", |
| 321 | + "quit": {name: "Quit", icon: function($element, key, item){ return 'context-menu-icon context-menu-icon-quit'; }} |
| 322 | + } |
| 323 | + }); |
| 324 | +}); |
| 325 | +</script> |
| 326 | +<h2 id="example-html">Example HTML</h2> |
| 327 | +<div style="display:none;" class="showcase" data-showcase-import=".context-menu-one"></div> |
289 | 328 | <h1 id="demo-accesskeys">Demo: Accesskeys</h1>
|
290 | 329 | <!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
291 | 330 | <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
@@ -313,7 +352,7 @@ <h2 id="example-code">Example code</h2>
|
313 | 352 | "paste": {name: "Paste", icon: "paste", accesskey: "cool paste"},
|
314 | 353 | "delete": {name: "Delete", icon: "delete"},
|
315 | 354 | "sep1": "---------",
|
316 |
| - "quit": {name: "Quit", icon: function($element, key, item){ return 'icon icon-quit'; }} |
| 355 | + "quit": {name: "Quit", icon: function($element, key, item){ return 'context-menu-icon context-menu-icon-quit'; }} |
317 | 356 | }
|
318 | 357 | });
|
319 | 358 | });
|
|
0 commit comments