jQuery(document).ready(function () {
var host = window.location.hostname;
$('#nodename').html(host);
$("#formphone").submit(function(e) {
e.preventDefault(); // avoid to execute the actual submit of the form.
console.log("button PHONE clicked");
$("#phoneresultat").html("
ensuite patiente un peu... ce monde est Zen." +
"Tu recevras une clef pour te libérer des services privés du vieux monde.
" +
"");
// declare these vars
var phone = jQuery("#phone");
var parrain = jQuery("#parrain");
var naissance = jQuery("#naissance");
var data = '';
// ajax call to ajax.php
jQuery.getJSON("http://"+host+":10099/sms_loveland.php", {
phone: phone.val(), parrain: parrain.val(), naissance: naissance.val()
}, function (data) {
$("#phoneresultat").html("
Votre inscription en prise en compte...
");
});
});
$("#formlink").submit(function(e) {
e.preventDefault(); // avoid to execute the actual submit of the form.
console.log("button LINK clicked");
$("#linkresultat").html("Merci! nous envoyons votre message à la GUILDE
");
// declare these vars
var link = jQuery("#link");
var phone = jQuery("#phone");
var data = '';
// ajax call to ajax.php
jQuery.getJSON("ajax.php", {
link: link.val(), phone: phone.val()
}, function (data) {
$("#linkresultat").html("Astroport vous remercie pour votre nourriture médiatique
");
});
});
});