Cambia questo pezzo di codice:
codice:
//CONTROLLING EVENTS IN jQuery
$(document).ready(function(){
//LOADING POPUP
//Click the button event!
$("#button").click(function(){
//centering with css
centerPopup();
//load popup
loadPopup();
});
Con questo:
codice:
//CONTROLLING EVENTS IN jQuery
$(document).ready(function(){
//LOADING POPUP
//Open load page
//centering with css
centerPopup();
//load popup
loadPopup();
in pratica togli questo $("#button").click(function(){
}); e lasci le due funzioni centerPopup() e loadPopup() poi togli anche il div(#button) e il pulsante