');
document.writeln('
');
document.writeln('Generate Alien Words or Names');
document.writeln('
');
document.writeln('
');
document.writeln('');
document.writeln('
');
document.writeln('');
document.writeln('
"C" = consonant capitalized
');
document.writeln('
"c" = consonant lower-cased
');
document.writeln('
"V" = vowel capitalized
');
document.writeln('
"v" = vowel lower-cased
');
document.writeln('
All other characters and spaces are verbatim.
');
document.writeln('');
document.writeln('
');
document.writeln('To add more fo'+'rmats, type them here, one fo'+'rmat per line. All fo'+'rmats must have at least one of "C", "c", "V", or "v". When done, then
tap this button
');
document.writeln('
');
document.writeln('');
document.writeln('
');
document.writeln('');
document.writeln('
');
document.writeln('');
document.writeln('
');
document.writeln('Tap on a fo'+'rmat button below to generate a list of alien words or names using that fo'+'rmat. Tap the "Random" button to generate a list with randomly se'+'lected fo'+'rmats.');
document.writeln('
');
document.writeln('
');
document.writeln('');
document.writeln('
Copy results from here
');
document.writeln('
');
var AWN_WB_url = "https://willbontrager.com/service/AlienWordsNames.php?";
function AWN_WB_AddFormats()
{
var http = new XMLHttpRequest();
if(! http) { return; }
var params = new Array();
params.push( "newtemplates=" + encodeURIComponent(document.getElementById("AWN_WB-more-formats").innerHTML) );
var d;
var list = "";
if( (d=document.getElementById("AWN_WB-formats-for-alien-words-names")) ) { list=d.innerHTML; }
params.push( "oldtemplates=" + encodeURIComponent(list) );
AWN_WBformatsexplanation('close');
http.onreadystatechange = function()
{
if(http.readyState == 4)
{
if(http.status == 200)
{
//alert('response:'+http.responseText);
if( http.responseText.substr('Error: ')===0 )
{
alert(http.responseText);
return;
}
document.getElementById("AWN_WB-word-tap-setup").innerHTML = http.responseText;
}
else { alert("Content request error, status code "+http.status+" "+http.statusText); }
}
}
http.open("POST",AWN_WB_url,true);
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http.send(params.join("&"));
}
function AWN_WBformatsexplanation(which)
{
if( which=='open' )
{
document.getElementById("AWN_WB-formats-open-me").style.display="none";
document.getElementById("AWN_WB-formats-close-me").style.display="inline";
document.getElementById("AWN_WB-formats-explanation").style.display="block";
}
else
{
document.getElementById("AWN_WB-formats-open-me").style.display="inline";
document.getElementById("AWN_WB-formats-close-me").style.display="none";
document.getElementById("AWN_WB-formats-explanation").style.display="none";
}
}
function AWN_WB_Generate(num,wrd,id)
{
var http = new XMLHttpRequest();
if(! http) { return; }
var params = new Array();
if( num == 1 ) { params.push( "tmplt=" + encodeURIComponent(wrd.innerHTML) ); }
else { params.push( "frmts=" + encodeURIComponent( document.getElementById("AWN_WB-formats-for-alien-words-names").innerHTML ) ); }
http.onreadystatechange = function()
{
if(http.readyState == 4)
{
if(http.status == 200) { document.getElementById(id).innerHTML = http.responseText; }
else { alert("Content request error, status code "+http.status+" "+http.statusText); }
}
}
http.open("POST",AWN_WB_url,true);
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http.send(params.join("&"));
}
AWN_WB_AddFormats();document.writeln('');