From a571e01e99bf4f95402045f5a30b42eee08fdfcb Mon Sep 17 00:00:00 2001
From: Eugene Simakin
Date: Tue, 7 Jan 2014 22:59:50 +0400
Subject: [PATCH] 'Versions' example added
---
index.html | 26 +++++++++++++++++++++-----
js/main.js | 10 ++++++++++
2 files changed, 31 insertions(+), 5 deletions(-)
diff --git a/index.html b/index.html
index 54a8a6d..0b6f342 100644
--- a/index.html
+++ b/index.html
@@ -66,11 +66,10 @@
class="octicon octicon-link">Demo
-
-
-
-
-
+
+
+
+
Here is corresponding piece of code:
@@ -128,6 +127,23 @@
Examples
+ Versions
+
+ Choose behaviour of method getPages. Try to following demos:
+
+
+
+
+
+ VS
+
+
+
+
+
+ Download first or
+ second.
+
URL page link
You can specify url using href option:
diff --git a/js/main.js b/js/main.js
index 67f240d..1ec2df1 100644
--- a/js/main.js
+++ b/js/main.js
@@ -14,6 +14,16 @@ $(document).ready(function () {
}
});
+ $('#pagination-demo-v1_0').twbsPagination({
+ totalPages: 15,
+ version: '1.0'
+ });
+
+ $('#pagination-demo-v1_1').twbsPagination({
+ totalPages: 15,
+ version: '1.1'
+ });
+
$('#visible-pages-example').twbsPagination({
totalPages: 35,
visiblePages: 10,