diff --git a/jquery.popmenu.min.js b/jquery.popmenu.min.js
index 7d320a5..2f610ed 100644
--- a/jquery.popmenu.min.js
+++ b/jquery.popmenu.min.js
@@ -1 +1 @@
-!function(a){a.fn.popmenu=function(b){function j(){f.css({display:d,position:"absolute","margin-top":-c.top,"margin-left":-c.left,background:c.background,width:c.width,"float":"left",padding:"0","border-radius":c.borderRadius}),g.css({display:"block",color:"#fff","float":"left",width:c.iconSize,height:c.iconSize,"text-align":"center","border-radius":c.borderRadius}),h.css({"text-decoration":"none",color:"#fff"}),i.hover(function(){i.css("cursor","pointer")},function(){i.css("cursor","default")}),i.click(function(b){b.preventDefault(),f.show("fast"),a(document).mouseup(function(a){var b=f;b.is(a.target)||0!==b.has(a.target).length||b.hide(),b.hide()})}),g.hover(function(){a(this).css({background:c.focusColor,cursor:"pointer"})},function(){a(this).css({background:c.background,cursor:"default"})})}var c=a.extend({controller:!0,width:"300px",background:"#34495e",focusColor:"#1abc9c",borderRadius:"10px",top:"50",left:"0",iconSize:"100px"},b);if(c.controller===!0)var d="none";else d="block";var e=a(this),f=e.children("ul"),g=f.children("li"),h=g.children("a"),i=e.children(".pop_ctrl");return j()}}(jQuery);
\ No newline at end of file
+!function(o){o.fn.popmenu=function(r){function n(){i.css({display:e,position:"absolute","margin-top":-t.top,"margin-left":-t.left,background:t.background,width:t.width,"float":"left",padding:"0","border-radius":t.borderRadius}),s.css({display:"block",color:"#fff","float":"left",width:t.iconSize,height:t.iconSize,"text-align":"center","border-radius":t.borderRadius}),u.css({"text-decoration":"none",color:"#fff"}),a.hover(function(){a.css("cursor","pointer")},function(){a.css("cursor","default")}),a.click(function(r){r.preventDefault(),i.show("fast"),o(document).mouseup(function(o){var r=i;r.is(o.target)||0!==r.has(o.target).length||r.hide()})}),s.hover(function(){o(this).css({background:t.focusColor,cursor:"pointer"})},function(){o(this).css({background:t.background,cursor:"default"})})}var t=o.extend({controller:!0,width:"300px",background:"#34495e",focusColor:"#1abc9c",borderRadius:"10px",top:"50",left:"0",iconSize:"100px"},r);if(t.controller===!0)var e="none";else e="block";var c=o(this),i=c.children("ul"),s=i.children("li"),u=s.children("a"),a=c.children(".pop_ctrl");return n()}}(jQuery);
\ No newline at end of file
diff --git a/src/jquery.popmenu.js b/src/jquery.popmenu.js
index e34a84a..793175c 100644
--- a/src/jquery.popmenu.js
+++ b/src/jquery.popmenu.js
@@ -64,7 +64,7 @@ Based on jQuery 2.0.3
if(!_con.is(e.target) && _con.has(e.target).length === 0){
_con.hide();
}
- _con.hide();
+ //_con.hide(); some functions you want
});
});
tar_list.hover(function() {
From 3403fa88ee8a3bc8bb65c068c8de08a4caa341cc Mon Sep 17 00:00:00 2001
From: gucheen
Date: Thu, 27 Feb 2014 19:16:53 +0800
Subject: [PATCH 2/8] update 2014-2-27
---
index.html | 28 +++++++++++++++++++---------
jquery.popmenu.min.js | 4 +++-
src/jquery.popmenu.js | 24 ++++++++++++++----------
3 files changed, 36 insertions(+), 20 deletions(-)
diff --git a/index.html b/index.html
index 58b0258..9151ac3 100644
--- a/index.html
+++ b/index.html
@@ -7,12 +7,12 @@
@@ -60,17 +61,26 @@
jQuery pop menu
Exit
-
How to use:
-
- $('#demo_box').popmenu();
-
+
How to use:
+
$('#demo_box').popmenu({parameters});
+
You can use parameters below.
+
{
+ 'controller': true, // use control button or not
+ 'width': '300px', // width of menu
+ 'background': '#34495e', // background color of menu
+ 'focusColor': '#1abc9c', // hover color of menu's buttons
+ 'borderRadius': '10px', // radian of angles, '0' for right angle
+ 'top': '50', // pixels that move up
+ 'left': '0', // pixels that move left
+ 'iconSize': '100px' // size of menu's buttons
+}