Sign up / Register
button
{
color: rgba(var(--brz-global-color8),1); background-color: rgba(var(--brz-global-color3),1);
border: 2px solid rgba(var(--brz-global-color2),0); display: flex; align-items: center;
font-family: var(--brz-buttonfontfamily); font-weight: var(--brz-buttonmobilefontweight);
font-size: var(--brz-buttonmobilefontsize); line-height: var(--brz-buttonmobilelineheight);
padding: 11px 26px 11px 26px; border-radius: 2px;
}
button:hover { cursor:pointer; background-color: rgba(var(--brz-global-color3),0.8); }
input
{ padding: 10px 20px 10px 20px; border: 1px solid rgba(220, 222, 225, 0.6); min-height: 43px; color: rgba(115, 119, 127, 0.7); }
.form_row { display: flex; width: 100%; }
.form_col { flex-shrink: 0; flex-basis: 50%; margin: 10px; }
.form_col label { font-weight: bold; font-size: 1.1em; }
.form_col span { display:block; color: #666; font-size: 0.9em; margin-top: 5px; }
.small { display:block; color: #666; font-size: 0.9em; margin-top: 5px; }
@media only screen and (max-width: 800px)
{
.form_row { flex-direction: column; }
.box { margin: 0 0 1rem; }
}
Valid characters: "a-z0-9@.", maximum length: 64
Valid characters: "a-z0-9", Length: 3-20
function createPwd() { let result = ''; const characters = 'abcdefghijklmnopqrstuvwxyz0123456789'; const charactersLength = characters.length; let counter = 0; while (counter < 12) { result += characters.charAt(Math.floor(Math.random() * charactersLength)); counter += 1; } return result; } var pwd=createPwd(); var emailValid=false; var email=''; function ValidateEmail(email) { if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,24})+$/.test(email)) return true; return false; } function checkSubmit(e) { if (typeof e !== 'undefined' && e.keyCode === 13) { register(); return false; }; } function checkEmail(e) { var txt=''; email=jQuery('#email').val(); lower=email.toLowerCase(); if (email!==lower) { email=lower; jQuery('#email').val(lower); } emailValid=ValidateEmail(email); if (emailValid) txt='Email is valid.'; else txt='Email not valid.'; jQuery('#email_result').html(txt); } var hostname=''; const regex=/^[0-9a-z]{3,20}/; function checkHostname(e) { hostname=jQuery('#hostname').val(); lower=hostname.toLowerCase(); if (hostname!==lower) { hostname=lower; jQuery('#hostname').val(lower); } var result = regex.test(hostname) && hostname.length<=20; if (!result) { txt='Hostname not valid.'; jQuery('#hostname_result').html(txt); return; } jQuery.ajax({url: "https://ddns4free.com/ddns/hostname.php?hostname="+hostname}) .done(function( data ) { your_link=''; var txt=''; if (data==hostname) txt='Hostname not available.'; else if (data=='Error: Hostname not found.') { txt='Hostname is available.'; } else txt=''+data+''; jQuery('#hostname_result').html(txt); }) } function register() { console.log(hostname,email,pwd); jQuery.ajax({url: "https://ddns4free.com/ddns/register.php?hostname="+hostname+"&password="+pwd+"&email="+email}) .done(function( data ) { if (data.search('ERROR')==-1) { var your_link='
';
your_link+='
Please check your email to confirmation your registration.'; jQuery('#your_link').html(your_link); } else { jQuery('#your_link').html(''+data+''); } }) } jQuery( document ).ready(function() { checkEmail(); checkHostname(); });
Valid characters: "a-z0-9@.", maximum length: 64
Valid characters: "a-z0-9", Length: 3-20
function createPwd() { let result = ''; const characters = 'abcdefghijklmnopqrstuvwxyz0123456789'; const charactersLength = characters.length; let counter = 0; while (counter < 12) { result += characters.charAt(Math.floor(Math.random() * charactersLength)); counter += 1; } return result; } var pwd=createPwd(); var emailValid=false; var email=''; function ValidateEmail(email) { if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,24})+$/.test(email)) return true; return false; } function checkSubmit(e) { if (typeof e !== 'undefined' && e.keyCode === 13) { register(); return false; }; } function checkEmail(e) { var txt=''; email=jQuery('#email').val(); lower=email.toLowerCase(); if (email!==lower) { email=lower; jQuery('#email').val(lower); } emailValid=ValidateEmail(email); if (emailValid) txt='Email is valid.'; else txt='Email not valid.'; jQuery('#email_result').html(txt); } var hostname=''; const regex=/^[0-9a-z]{3,20}/; function checkHostname(e) { hostname=jQuery('#hostname').val(); lower=hostname.toLowerCase(); if (hostname!==lower) { hostname=lower; jQuery('#hostname').val(lower); } var result = regex.test(hostname) && hostname.length<=20; if (!result) { txt='Hostname not valid.'; jQuery('#hostname_result').html(txt); return; } jQuery.ajax({url: "https://ddns4free.com/ddns/hostname.php?hostname="+hostname}) .done(function( data ) { your_link=''; var txt=''; if (data==hostname) txt='Hostname not available.'; else if (data=='Error: Hostname not found.') { txt='Hostname is available.'; } else txt=''+data+''; jQuery('#hostname_result').html(txt); }) } function register() { console.log(hostname,email,pwd); jQuery.ajax({url: "https://ddns4free.com/ddns/register.php?hostname="+hostname+"&password="+pwd+"&email="+email}) .done(function( data ) { if (data.search('ERROR')==-1) { var your_link='
Your credentials
'; your_link+='Registration successful!
'; your_link+='Password: | '+pwd+' |
IP: | '+data+' |
DynDNS: | https://'+hostname+'.ddns4free.com/?password='+pwd+'This is the address to get your IP. |
DynDNS Update: | https://'+hostname+'.ddns4free.com/?password='+pwd+'&action=updateThis is the address to update your IP in our database. |
Please check your email to confirmation your registration.'; jQuery('#your_link').html(your_link); } else { jQuery('#your_link').html(''+data+''); } }) } jQuery( document ).ready(function() { checkEmail(); checkHostname(); });