-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
30 lines (25 loc) · 900 Bytes
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<html>
<head>
<title>Custom Context</title>
<script src="../customContextMenu.js"></script>
</head>
<body id="body">
<h3>The body of this page has a custom context menu. Right click to see it.</h3>
<h3>With this plugin, it is extremely easy to add custom context menus<br>
to specific elements on a page.</h3>
<h3>The menus can be user-written HTML elements or generated from scratch.<br>
Both are extremely intuitive and very flexible.</h3>
<ul id="customMenu" class="customContextMenu">
<li onClick="alert('Alert!')">Alert</li>
<li onClick="console.log('Log!')">Console Log</li>
<hr style="margin: 0">
<li onClick="window.open('https://github.com/dankramp/customContextMenu.js', '_blank')"><b>Go To GitHub</b></li>
</ul>
<script>
var customContext = new customContext({
target: "body",
menu: "customMenu"
});
</script>
</body>
</html>