User:Conor S. O'Brien/vector.js

/*// GETTING ALL THE TD ELEMENTS ON THE PAGE THAT ARE CONTAINED IN A .truthtable TABLE var tds = $(".truthtable td");

// ITTERATING THROUGH ALL THE TD ELEMENTS for(i=0;i<tds.length;i++){ var td = tds[i]; if(td.innerHTML==="F"){ // GIVING THE FALSE CELLS A RED COLOR td.style.backgroundColor = "#F99"; } else if(td.innerHTML==="T"){ // GIVING THE TRUE CELLS A GREEN COLOR td.style.backgroundColor = "#9F9"; } else { // GIVING THE OTHER CELLS A MEDIUM-GREY COLOR td.style.backgroundColor = "#999"; } }*/

// THANKS TO MOZILLA function randInt(min,max){ return Math.floor(Math.random * (max - min)) + min; }

// SNATCH ELEMENT var title = $("title")[0]; // CREATE RANDOM SAYINGS: var randomSayings = ["Hello, y'all!","User:Conor S. O'Brien","User:CSOB","CODECODECODE","̸͔̫͙͎ͮͥ ̹͖̰;͙̙̱͊ͥͮ̓͐͡Z̡͍͉̟̜̞͛̌̋͋̕a̸͔̦̱̦͖̘ͪ̌͑̒̓̽l̟̗̭̭̱̊ͫ̂̇͑g͙̱̮̘͓͉ͤoͫͤ̑̓̌̀̒͐͞͏͔͚͎̠̥͍͈̦.̺̭ͤ̅ͮ̑̈́̇́͜͠"]; function titleMe{ title.innerHTML = randomSayings[randInt(0,randomSayings.length)]; } $("#empty").html("New Title ");