2021-08-11 04:39:38 +02:00
|
|
|
jQuery(document).ready(function () {
|
|
|
|
var host = window.location.hostname;
|
2021-08-11 05:07:26 +02:00
|
|
|
$('#nodename').html(host);
|
|
|
|
|
2021-08-11 04:39:38 +02:00
|
|
|
$("#formphone").submit(function(e) {
|
|
|
|
e.preventDefault(); // avoid to execute the actual submit of the form.
|
|
|
|
console.log("button PHONE clicked");
|
|
|
|
$("#phoneresultat").html("<p><h3>ensuite patiente un peu... ce monde est Zen.<h3>" +
|
|
|
|
"<h5>Tu recevras une clef pour te libérer des services privés du vieux monde.</h5></p>" +
|
|
|
|
"<script type='text/javascript'>var _mtm = _mtm || []; _mtm.push({'mtm.startTime': (new Date().getTime()), 'event': 'mtm.Start'}); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.async=true; g.defer=true; g.src='https://piwik.p2p.legal/js/container_XDhfGZPj.js'; s.parentNode.insertBefore(g,s); </script>");
|
|
|
|
// declare these vars
|
|
|
|
var phone = jQuery("#phone");
|
|
|
|
var parrain = jQuery("#parrain");
|
|
|
|
var naissance = jQuery("#naissance");
|
|
|
|
var data = '';
|
2021-08-11 05:07:26 +02:00
|
|
|
// ajax call to ajax.php
|
2021-08-11 04:39:38 +02:00
|
|
|
jQuery.getJSON("http://"+host+":10099/sms_loveland.php", {
|
|
|
|
phone: phone.val(), parrain: parrain.val(), naissance: naissance.val()
|
|
|
|
}, function (data) {
|
|
|
|
$("#phoneresultat").html("<p>Votre inscription en prise en compte...</p>");
|
|
|
|
});
|
|
|
|
});
|
2021-08-11 05:07:26 +02:00
|
|
|
|
|
|
|
$("#formlink").submit(function(e) {
|
2021-08-11 04:39:38 +02:00
|
|
|
e.preventDefault(); // avoid to execute the actual submit of the form.
|
|
|
|
console.log("button LINK clicked");
|
2021-08-11 05:07:26 +02:00
|
|
|
$("#linkresultat").html("<p><h3>Merci! nous envoyons votre message à la GUILDE</h3></p>");
|
2021-08-11 04:39:38 +02:00
|
|
|
// declare these vars
|
|
|
|
var link = jQuery("#link");
|
2021-08-11 05:07:26 +02:00
|
|
|
var phone = jQuery("#phone");
|
2021-08-11 04:39:38 +02:00
|
|
|
var data = '';
|
|
|
|
// ajax call to ajax.php
|
|
|
|
jQuery.getJSON("ajax.php", {
|
2021-08-11 05:07:26 +02:00
|
|
|
link: link.val(), phone: phone.val()
|
2021-08-11 04:39:38 +02:00
|
|
|
}, function (data) {
|
2021-08-11 05:07:26 +02:00
|
|
|
$("#linkresultat").html("<p><h3>Astroport vous remercie pour votre nourriture médiatique</h3></p>");
|
2021-08-11 04:39:38 +02:00
|
|
|
});
|
|
|
|
});
|
2021-08-11 05:07:26 +02:00
|
|
|
|
2021-08-11 04:39:38 +02:00
|
|
|
|
|
|
|
});
|