Ninja Slider / Posts /

Remove arrows once video is playing

21

I have my arrows inside my div so when I click to open my video I would like the arrows to disappear and then reappear once I close out of the video. I tried through JS but not able to target the ".stopVideoIcon" div because it isn't actually in the html I guess.

Brandon  3 years ago   viewed: 6467    

3 Answers

3

I think you are on track, and you have found the following code in ninjaVideoPlugin.js:

f.className="stopVideoIcon";f.onclick=function(a){g.unloadPlayer();a.stopPropagation()};

Then you can add your own function into the f.onclick event:

f.className="stopVideoIcon"; f.onclick=function(a){ if (myStopVideoCallback) myStopVideoCallback(); g.unloadPlayer();a.stopPropagation()};

And add the following script to your page:

<script>
function  myStopVideoCallback() {
$("#ninja-slider-prev").show();
$("#ninja-slider-next").show();
}
</script>
Milo   3 years ago
0
0

Watch The White Princess show on the Starz app

White Princess is a nail-biting, riotous TV drama in British TV entertainment revolves around a bunch of women whose goal is to strive for power. You can enjoy the White Princess on all your streaming devices via the Starz app. In ananecdote of supremacy, people, love, and infidelity, "The White Princess is produced and broadcasted via the Starz app. The drama show is expressed from the perception of three female aristocrats instigating afragmentary conflict for the sovereignty at the end of the Combat of the Rosettes. Assured in nuptial to the afreshtopped King Henry VII in expectations that it will yoke the Realm, Princess Elizabeth instead resents and plots against him. You can easily activate the channel via Activate starz.

For further information contact our customer support team @ +1-877-991-8710.

aragates
  4 hours ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question: