Created
June 9, 2022 16:12
-
-
Save dimsemenov/bdb8b9aefadab975a679d71cc7e27b41 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function rs_enter_fullscreen_on_slide_click() { | |
?> | |
$('.royalSlider').each(function() { | |
var slider = $(this).data('royalSlider'); | |
// listen for slide click | |
slider.ev.on('rsSlideClick', function() { | |
// enter fullscreen mb_decode_numericentity | |
slider.enterFullscreen(); | |
}); | |
}); | |
<?php | |
} | |
add_action('new_rs_after_js_init_code', 'rs_enter_fullscreen_on_slide_click'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment