Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //declaration de JQUERY en javascript, pas le choix
- const scriptJquery = document.createElement("script");
- scriptJquery.setAttribute("src","https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js");
- document.head.appendChild(scriptJquery);
- //une fois le Jquery chargΓ©, on ajoute le reste en JQUERY
- scriptJquery.onload = function() {
- $.get('http://modal.local/modal.php',
- function(data){$('body').append(data);}
- );
- $(document).ready(function() { setTimeout(openModal,1000) });
- };
- function openModal(){
- $('#exampleModalCenter').modal('toggle')
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement