From c99aa72473697f05da061dfe165f6bd301b943f5 Mon Sep 17 00:00:00 2001 From: Eugene Simakin Date: Sun, 5 Jan 2014 11:12:25 +0400 Subject: [PATCH] Fix pre-code format --- index.html | 38 +++++++++++++++++--------------------- 1 file changed, 17 insertions(+), 21 deletions(-) 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)