Skip to content

Instantly share code, notes, and snippets.

@dantetesta
Last active June 1, 2022 18:40
Show Gist options
  • Select an option

  • Save dantetesta/fdf344c4c2bc59276921184e08d06ccf to your computer and use it in GitHub Desktop.

Select an option

Save dantetesta/fdf344c4c2bc59276921184e08d06ccf to your computer and use it in GitHub Desktop.
/*By Jarvis e Dante */
/*ID DO POPUP = 131 nesse exemplo */
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script>
jQuery(document).ready(function(){
var flag = 0;
jQuery(window).scroll(function(){
if(jQuery(window).scrollTop() >= jQuery('#abrir-popup').offset().top && flag == 0){
elementorProFrontend.modules.popup.showPopup( { id: 131 } );
flag = 1;
}
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment