The Cardinal Javascript IDE beta version 1.0
Check it out! Finally someone decides to make a javascript compiler and IDE! What's more, it's 100% free, and entirely web
based! Find out how to use it and other info here.
Code to be embedded in the <Head>
Code to be embedded in the <Body>
Functions
Function number 2
Function number 3
Function number 4
Additional functions may be placed in the Body javascript coding.
Pure HTML code (DONT put an <HTML> tag! This is for use with hrefs, images, forms and etc. only.)
"+document.forms.shutup.z.value+" ")
}
function equality(){
var x = 0;
var l = 0;
var xx = 0;
var ll = 0;
txt= new String(document.forms.shutup.a.value);
/////////////////////////////////////////// function 1 ////////////////////////////////////
if(txt.indexOf(')') != -1)
while(txt.indexOf(')', ll) != -1){
ll = (txt.indexOf(')', ll)) + 1;
xx++;
}
if(txt.indexOf('(') != -1)
while(txt.indexOf('(', l) != -1){
l = (txt.indexOf('(', l)) + 1;
x++;
}
if(x != xx){alert('Your parentheses in funtion 1 did not pass the equality test!');}
x = 0;l = 0;xx=0;ll=0;
if(txt.indexOf('}') != -1)
while(txt.indexOf('}', ll) != -1){
ll = (txt.indexOf('}', ll)) + 1;
xx++;
}
if(txt.indexOf('{') != -1)
while(txt.indexOf('{', l) != -1){
l = (txt.indexOf('{', l)) + 1;
x++;
}
if(x != xx){alert("Your curly braces '{}' in funtion 1 did not pass the equality test!");}
/////////////////////////////////////// function 2 ///////////////////////////////////////
x = 0;l = 0;xx=0;ll=0;
txt = document.forms.shutup.b.value;
if(txt.indexOf(')') != -1)
while(txt.indexOf(')', ll) != -1){
ll = (txt.indexOf(')', ll)) + 1;
xx++;
}
if(txt.indexOf('(') != -1)
while(txt.indexOf('(', l) != -1){
l = (txt.indexOf('(', l)) + 1;
x++;
}
if(x != xx){alert('Your parentheses in funtion 2 did not pass the equality test!');}
x = 0;l = 0;xx=0;ll=0;
if(txt.indexOf('}') != -1)
while(txt.indexOf('}', ll) != -1){
ll = (txt.indexOf('}', ll)) + 1;
xx++;
}
if(txt.indexOf('{') != -1)
while(txt.indexOf('{', l) != -1){
l = (txt.indexOf('{', l)) + 1;
x++;
}
if(x != xx){alert("Your curly braces '{}' in funtion 2 did not pass the equality test!");}
////////////////////////////////////////// function 3 /////////////////////////////////////////
x = 0;l = 0;xx=0;ll=0;
txt = document.forms.shutup.c.value;
if(txt.indexOf(')') != -1)
while(txt.indexOf(')', ll) != -1){
ll = (txt.indexOf(')', ll)) + 1;
xx++;
}
if(txt.indexOf('(') != -1)
while(txt.indexOf('(', l) != -1){
l = (txt.indexOf('(', l)) + 1;
x++;
}
if(x != xx){alert('Your parentheses in funtion 3 did not pass the equality test!');}
x = 0;l = 0;xx=0;ll=0;
if(txt.indexOf('}') != -1)
while(txt.indexOf('}', ll) != -1){
ll = (txt.indexOf('}', ll)) + 1;
xx++;
}
if(txt.indexOf('{') != -1)
while(txt.indexOf('{', l) != -1){
l = (txt.indexOf('{', l)) + 1;
x++;
}
if(x != xx){alert("Your curly braces '{}' in funtion 3 did not pass the equality test!");}
////////////////////////////////////// function 4 //////////////////////////////////////////////////
x = 0;l = 0;xx=0;ll=0;
txt = document.forms.shutup.d.value;
if(txt.indexOf(')') != -1)
while(txt.indexOf(')', ll) != -1){
ll = (txt.indexOf(')', ll)) + 1;
xx++;
}
if(txt.indexOf('(') != -1)
while(txt.indexOf('(', l) != -1){
l = (txt.indexOf('(', l)) + 1;
x++;
}
if(x != xx){alert('Your parentheses in funtion 4 did not pass the equality test!');}
x = 0;l = 0;xx=0;ll=0;
if(txt.indexOf('}') != -1)
while(txt.indexOf('}', ll) != -1){
ll = (txt.indexOf('}', ll)) + 1;
xx++;
}
if(txt.indexOf('{') != -1)
while(txt.indexOf('{', l) != -1){
l = (txt.indexOf('{', l)) + 1;
x++;
}
if(x != xx){alert("Your curly braces '{}' in funtion 4 did not pass the equality test!");}
///////////////////////////////////// body /////////////////////////////////////////////////////
x = 0;l = 0;xx=0;ll=0;
txt = document.forms.shutup.u.value;
if(txt.indexOf(')') != -1)
while(txt.indexOf(')', ll) != -1){
ll = (txt.indexOf(')', ll)) + 1;
xx++;
}
if(txt.indexOf('(') != -1)
while(txt.indexOf('(', l) != -1){
l = (txt.indexOf('(', l)) + 1;
x++;
}
if(x != xx){alert('Your parentheses in the Body did not pass the equality test!');}
x = 0;l = 0;xx=0;ll=0;
if(txt.indexOf('}') != -1)
while(txt.indexOf('}', ll) != -1){
ll = (txt.indexOf('}', ll)) + 1;
xx++;
}
if(txt.indexOf('{') != -1)
while(txt.indexOf('{', l) != -1){
l = (txt.indexOf('{', l)) + 1;
x++;
}
if(x != xx){alert("Your curly braces '{}' in the Body did not pass the equality test!");}
////////////////////////////////////////////// head //////////////////////////////////////////////
x = 0;l = 0;xx=0;ll=0;
txt = document.forms.shutup.y.value;
if(txt.indexOf(')') != -1)
while(txt.indexOf(')', ll) != -1){
ll = (txt.indexOf(')', ll)) + 1;
xx++;
}
if(txt.indexOf('(') != -1)
while(txt.indexOf('(', l) != -1){
l = (txt.indexOf('(', l)) + 1;
x++;
}
if(x != xx){alert('Your parentheses in the Head did not pass the equality test!');}
x = 0;l = 0;xx=0;ll=0;
if(txt.indexOf('}') != -1)
while(txt.indexOf('}', ll) != -1){
ll = (txt.indexOf('}', ll)) + 1;
xx++;
}
if(txt.indexOf('{') != -1)
while(txt.indexOf('{', l) != -1){
l = (txt.indexOf('{', l)) + 1;
x++;
}
if(x != xx){alert("Your curly braces '{}' in the Head did not pass the equality test!");}
}
// end hiding -->