Skip to content

Commit

Permalink
Version 0.4.0
Browse files Browse the repository at this point in the history
Added title option
  • Loading branch information
fatrex committed May 6, 2014
1 parent f0a007a commit 30cdb48
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.zedstate
*.zedstate
src/test.html
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ Download the minified version of the plugin, include it after jQuery and:
```
<script type="text/javascript">
$(document).ready(function(){
$.goup();
$.goup();
});
</script>
```
Expand All @@ -30,8 +28,12 @@ Yeah! You can see a live demo here: http://ryuk87.github.io/jquery-goup/
| `alwaysVisible` | Set to true if u want the button to be always visible (bypass `trigger`) | Boolean | false |
| `goupSpeed` | The speed at which the user will be brought back to the top ("slow", "normal" or "fast") | String | slow |
| `hideUnderWidth` | The threshold of window width under which the button is permanently hidden | Integer | 500 |
| `title` | A text to show on the button mouse hover | String | '' |

### Changelog
#### v0.4.0 (05-06-2014)
* Added the option `title` that permits to add a text on the button mouse hover

#### v0.3.0 (04-09-2014)
* Renamed the option `animationSpeed` in `goupAnimation`
* Added the option to choose the type of animation on the show/hide events of the button
Expand Down
2 changes: 1 addition & 1 deletion goup.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"backtotop",
"scrolltotop"
],
"version": "0.3.0",
"version": "0.4.0",
"author": {
"name": "Daniele Lenares",
"url": "https://github.com/Ryuk87"
Expand Down
4 changes: 3 additions & 1 deletion src/jquery.goup.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
goupSpeed : 'slow',
hideUnderWidth : 500,
containerColor : '#000',
arrowColor : '#fff'
arrowColor : '#fff',
title : ''
}, user_params);
/* */

Expand Down Expand Up @@ -93,6 +94,7 @@
containerStyle['border-radius'] = containerRadius;

$(container).css(containerStyle);
$(container).attr('title', params.title);

/* Arrow Style */
var arrowStyle = {};
Expand Down
2 changes: 0 additions & 2 deletions tags

This file was deleted.

0 comments on commit 30cdb48

Please sign in to comment.