diff --git a/index.html b/index.html index 1232d2c..dc2f67e 100644 --- a/index.html +++ b/index.html @@ -75,20 +75,16 @@

Here is corresponding piece of code:

-

-                $('#pagination-demo').twbsPagination({
-                totalPages: 35,
-                visiblePages: 8,
-                onPageClick: function (event, page) {
-                $('#page-content').text('Page ' + page);
-                }
-                });
-            
+
    $('#pagination-demo').twbsPagination({
+        totalPages: 35,
+        visiblePages: 8,
+        onPageClick: function (event, page) {
+            $('#page-content').text('Page ' + page);
+        }
+    });

And HTML code:

-
    <ul id="pagination-demo"
-                class="pagination-sm"></ul>
-            
+
    <ul id="pagination-demo"class="pagination-sm"></ul>

URL page link

You can specify url using href option:

-
 $(selector).twbsPagination({
-                totalPages: 35,
-                visiblePages: 8,
-                href: '?page={{number}}'
-                });
+
    $(selector).twbsPagination({
+        totalPages: 35,
+        visiblePages: 8,
+        href: '?page={{number}}'
+    });

Visible pages option

The max number of visible pages specifies via visiblePages option. The following example shows the 10 visible pages:

-
 $(selector).twbsPagination({
-                totalPages: 35,
-                visiblePages: 10,
-                });
+
    $(selector).twbsPagination({
+        totalPages: 35,
+        visiblePages: 10,
+    });

Note: this is normal size (without pagination-sm)