diff --git a/example.html b/example.html deleted file mode 100644 index f8445a3..0000000 --- a/example.html +++ /dev/null @@ -1,43 +0,0 @@ - - -
- - - - - -test adsgdsgds
-This is the most basic magic button, the default behavior is to stick on the right side of div which is containing magic buttons
- + @@ -98,7 +100,7 @@<div class="well span3">+
<p>This is the most basic magic button, ...</p>
<button class="magicBtn" data-image="../img/msg.png"/>
</div>
<div class="well span3">@@ -112,7 +114,7 @@
<p>This is the most basic magic button, ...</p>
<button class="magicBtn" data-image="img/msg.png"/>
</div>
Add a toggle effect using the data-toggle="magicBtn"
<button class="magicBtn" data-image="../img/msg.png" data-toggle="magicBtn"/>+
<button class="magicBtn" data-image="img/msg.png" data-toggle="magicBtn"/>@@ -132,7 +134,7 @@
Usedata-toggle-image
to customize toggle image
<button class="magicBtn" data-image="../img/pin-off.png" data-toggle="magicBtn" data-toggle-image="../img/pin-on.png"/>+
<button class="magicBtn" data-image="img/pin-off.png" data-toggle="magicBtn" data-toggle-image="img/pin-on.png"/>@@ -154,7 +156,7 @@
You can enable a hover effect over your buttons
jquery.hoverIntent is used in replacement of jQuery builtin hover
- +<button class="magicBtn hover" data-image="../img/pin-off.png" data-toggle="magicBtn" data-toggle-image="../img/pin-on.png"/>+
<button class="magicBtn hover" data-image="img/pin-off.png" data-toggle="magicBtn" data-toggle-image="img/pin-on.png"/>
$('.hover').magicBtn({hover: true});+
$('.hover').magicBtn('show');
Just put the icons inside the button
+ + +<button class="magicBtn icon"><i class="icon-search"></i></button>+
<button class="magicBtn icon"><i class="icon-user"></i></button>
$('.icon').magicBtn({hover: true, alignement: 'top'});+
$('.icon').magicBtn('show');
Shows the buttons found by selector
+Hides the buttons found by selector
+Activates toggle state
+You can enable auto toggling of a button by using data-toggle
attribute
Name | +type | +default | +description | +
---|---|---|---|
alignement | +string | +center | +start showing buttons from center, 1 in middle, even on ones top and odd ones on bottom | +
betweenSpace | +integer | +2 | +space between buttons | +
hover | +boolean | +false | +Enables hover effect | +