Skip to content

Commit

Permalink
Updated slider code for show_page so it uses all attributes on page.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Lee Little III committed Mar 26, 2016
1 parent d7f4a80 commit d1510a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/assets/javascripts/site/show_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ function call_document_ready_on_show_page() {
function start_flex_sliders() {
slideshow_nav_pagination = $("#slider-nav").text() === "true";
slideshow_effect = $("#slider-effect").text();
slideshow_auto = $("#slider-auto").text() || "true"
slideshow_speed = $("#slider-speed").text() || "5000"
slideshow_auto = $("#slider-auto").text()=="true" ? true : false
slideshow_speed = $("#play-speed").text() || "5000"

if ($('.flexslider').length > 0) {
require("jquery.flexslider.js");
$('.flexslider').flexslider({start: function () {
$('#page-slider-gallary-page').fadeIn();
}, directionNav: slideshow_nav_pagination, animationSpeed: 2000, slideshowSpeed: slideshow_speed});
}, slideshow: slideshow_auto, animation: slideshow_effect ,directionNav: slideshow_nav_pagination, animationSpeed: 2000, slideshowSpeed: slideshow_speed});

}
}
Expand Down

0 comments on commit d1510a6

Please sign in to comment.