Browse Source

Added one new option: 'paginationPos'. This option determines where the pagination is added in the source code. The options are: top, bottom

pull/25/head
Geckotokay 13 years ago
parent
commit
64afb5f7ea
  1. 4
      responsiveslides.js

4
responsiveslides.js

@ -6,6 +6,7 @@
var settings = $.extend({
"auto": true, // Boolean: Animate automatically
"pagination": false, // Boolean: Show pagination
"paginationPos": "bottom", // String: define the position in source code, available options: "top" or "bottom"
"nav": false, // Boolean: Show navigation
"prevText": "Previous", // String: Text for the "previous" button
"nextText": "Next", // String: Text for the "next" button
@ -98,7 +99,8 @@
var $tabs = $pagination.find("a");
// Inject pagination
$this.after($pagination);
if(settings.paginationPos === "top") { $this.before($pagination); }
else { $this.after($pagination); }
}
// Select active tab

Loading…
Cancel
Save