summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbtopro2012-11-20 15:16:28 (GMT)
committer btopro2012-11-20 15:16:28 (GMT)
commitf21994f8cf7f2071f3b208dcf753ec82d1d0812b (patch)
treea74410e9994242145f6300f51601105aa2722925
parent389111fdb709e89392ec82bf27ba0779fbe7deba (diff)
split thumb navigation style added; this is new default as it has no dependencies
-rw-r--r--thumbnav_libs/split_thumbs/thumbnav_split_thumbs.css13
-rw-r--r--thumbnav_libs/split_thumbs/thumbnav_split_thumbs.js12
2 files changed, 25 insertions, 0 deletions
diff --git a/thumbnav_libs/split_thumbs/thumbnav_split_thumbs.css b/thumbnav_libs/split_thumbs/thumbnav_split_thumbs.css
new file mode 100644
index 0000000..a001184
--- /dev/null
+++ b/thumbnav_libs/split_thumbs/thumbnav_split_thumbs.css
@@ -0,0 +1,13 @@
+/* CSS Document */
+.thumbnav_zone {
+ display:none;
+}
+.thumbnav_controller {
+ width:8%;
+}
+/* increase touch size on phones */
+@media screen and (max-width: 500px) {
+ .thumbnav_controller {
+ width:12%;
+ }
+} \ No newline at end of file
diff --git a/thumbnav_libs/split_thumbs/thumbnav_split_thumbs.js b/thumbnav_libs/split_thumbs/thumbnav_split_thumbs.js
new file mode 100644
index 0000000..b3d1f80
--- /dev/null
+++ b/thumbnav_libs/split_thumbs/thumbnav_split_thumbs.js
@@ -0,0 +1,12 @@
+(function ($) {
+ $(document).ready(function(){
+ // display left controller if told to do so
+ if (Drupal.settings.thumbnav.left) {
+ Drupal.thumbnav.leftControllerShow();
+ }
+ // display right controller if told to do so
+ if (Drupal.settings.thumbnav.right) {
+ Drupal.thumbnav.rightControllerShow();
+ }
+ });
+})(jQuery); \ No newline at end of file