jQuery(document).ready(function(){
jQuery.get( "https://satine69.com/includes/module/login_modal/template.php", function(data) {
jQuery("#EroCMSLoginModal").html(data);
jQuery(".regBtn").click(function() {
jQuery("#EroCMSregModal").show();
})
jQuery(".regClose").click(function() {
jQuery("#EroCMSregModal").hide();
})
jQuery("#submitEroCMSregModal").on("click", function() {
jQuery.ajax({
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
data: jQuery("#EroCMSregForm").serialize()+"&submit_reg=true",
type: "POST",
url: "https://satine69.com/includes/ajax/registrieren.php"
}).done(function(data, textStatus, jqXHR) {
//console.log("Data sent."+data);
jQuery("#sendstatusEroCMSregModal").html(data);
}).fail(function(jqXHR, textStatus, errorThrown) {
//console.log("There was an error.");
jQuery("#sendstatusEroCMSregModal").html(data);
});
return false;
})
jQuery("#submitEroCMSLoginModal").on("click", function() {
jQuery.ajax({
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
data: jQuery("#EroCMSloginForm").serialize()+"&submit_login=true",
type: "POST",
url: "https://satine69.com/includes/ajax/check_login.php"
}).done(function(data, textStatus, jqXHR) {
//console.log("Data sent."+data);
jQuery("#sendstatusEroCMSLoginModal").html(data);
}).fail(function(jqXHR, textStatus, errorThrown) {
//console.log("There was an error.");
jQuery("#sendstatusEroCMSLoginModal").html(data);
});
return false;
})
jQuery(".loginLink, .regLink").on("click", function() {
jQuery("#EroCMSregForm").toggle();
jQuery("#EroCMSloginForm").toggle();
})
});
})