-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.html
More file actions
21 lines (19 loc) · 846 Bytes
/
demo.html
File metadata and controls
21 lines (19 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html>
<head>
<title>clickmenu demo - jQuery plugin</title>
<script type="text/javascript" language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script type="text/javascript" language="javascript" src="clickmenu.js"></script>
<script type="text/javascript" language="javascript">
var one = {"text":"Option 1", "callback":function(){ alert("option 1 chosen");} };
var two = {"text":"Option 2", "callback":function(){ alert("option 2 chosen");} };
var three = {"text":"The third option", "callback":function() { var t = Date(); $("#test").append("<br/>" + t)} };
$(function() {
$("#test").clickmenu([one,two,three]);
});
</script>
</head>
<body>
<div id="test">Click Here For A Demo!</div>
</body>
</html>