Hi. I get a problem with the Menu Button on Mobile size (only home page). In preview everything OK, but after publish Menu button not working, only have blinking. Please help with this problem. Thanks in advance.
I already know the problem. It’s problem with the script for sync two sliders. Could somebody check this? Where is a mistake?
var Webflow = Webflow || ; Webflow.push(function() { // Store cached references to nav elements var sourceNav = $(‘#sourceNav’); var targetNav = $(‘#targetNav’); // Every 200ms setInterval(function() { // Find the index of source slideNav button’s active class var index = sourceNav.children(‘.w-active’).index(); // Update target slider by triggering a “tap” event on the targetNav corresponding slide button targetNav.children().eq(index).trigger(‘tap’); }, 200); // End interval }); // End ready function </script
I already know the problem. It’s problem with the script for sync two sliders. Could somebody check this? Where is a mistake?
var Webflow = Webflow || [];
Webflow.push(function() {
// Store cached references to nav elements
var sourceNav = $('#sourceNav');
var targetNav = $('#targetNav');
// Every 200ms
setInterval(function() {
// Find the index of source slideNav button's active class
var index = sourceNav.children('.w-active').index();
// Update target slider by triggering a "tap" event on the targetNav corresponding slide button
targetNav.children().eq(index).trigger('tap');
}, 200); // End interval
}); // End ready function
</script
var Webflow = Webflow || [];
Webflow.push(function() {
// Store cached references to nav elements
var sourceNav = $('#sourceNav');
var targetNav = $('#targetNav');
var savedIndex = 0
// Every 200ms
setInterval(function() {
// Find the index of source slideNav button's active class
var index = sourceNav.children('.w-active').index();
if (savedIndex != index) {
// Update target slider by triggering a "tap" event on the targetNav corresponding slide button
targetNav.children().eq(index).trigger('tap');
}
savedIndex = index
}, 200); // End interval
}); // End ready function
</script