Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using reel js object animated by a slider (jquery ui) inside a book of moodle. It doesn't work #337

Open
mcamilobrazil opened this issue Jul 26, 2019 · 0 comments

Comments

@mcamilobrazil
Copy link

I am trying to make a reel js object being controle by slider (jquery ui) inside a book of the moodle lms.

When I teste it outside moodle it works fine. But when I upload it as a chapter of a book on moodle it doesn't work at all. The object can be rotated manually (dragging the object) but doesn't work with the slider.

Thanks in advance.

I am using moodle 3.5 , reel js version 1.3.0 and jquery 1.11.1 and jquery.ui 1.10.3

html

Javascript

$('#animCoracao.selected').reel({

            images: url + "un01_a01_p01_#.jpg",
            });

            //slider
            $slider = $(".rg-slider").slider({
              value: 1,
              min: 1,
              max: 60,
              step: 1,
              disabled: false,
              slide: function(event, ui) {
                $("#animCoracao.selected").trigger("reach", [ui.value, 10]);
              }
            }); 

As the slider slides it should rotate the reel js object. But the object doesn't rotate when I slide the slider.

It seems that when on the book of moodle, the slider can´t trigger the "reach" method of the reel js element.

It doen't show any javascript error on console.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant