I am using background slideshow in my next wordpress project.
I am using redux framework for options panel.
I want to use JQuery UI Spinner Example 1 for controlling the speed of the slider.
How can I insert php variable into the js file of the slider?
Here is the code:
var cbpBGSlideshow = (function() {
var $slideshow = $( '#cbp-bislideshow' ),
$items = $slideshow.children( 'li' ),
itemsCount = $items.length,
$controls = $( '#cbp-bicontrols' ),
navigation = {
$navPrev : $controls.find( 'span.cbp-biprev' ),
$navNext : $controls.find( 'span.cbp-binext' ),
$navPlayPause : $controls.find( 'span.cbp-bipause' )
},
// current item´s index
current = 0,
// timeout
slideshowtime,
// true if the slideshow is active
isSlideshowActive = true,
// it takes 3.5 seconds to change the background image
interval = 3500;
}
I want to do something like this
interval= redux variable name
Thanks