HTML and CSS Reference
In-Depth Information
new TextButton(368,171,"Button
3,4",85,50,gr,"#000000","#ffff00","#000000")
],
[
new TextButton(0,228,"Button
4,0",85,50,gr,"#000000","#ffff00","#000000"),
new TextButton(92,228,"Button
4,1",85,50,gr,"#000000","#ffff00","#000000"),
new TextButton(184,228,"Button
4,2",85,50,gr,"#000000","#ffff00","#000000"),
new TextButton(276,228,"Button
4,3",85,50,gr,"#000000","#ffff00","#000000"),
new TextButton(368,228,"Button
4,4",85,50,gr,"#000000","#ffff00","#000000")
]
];
}
function initSounds(){
clickSound = document.getElementById('clicksound');
}
function chooseButtonsForCard(){
//copy jargon into temp array
var tempArray = [];
for (var arrayctr=0;arrayctr<standardJargonList.length;arrayctr++){
tempArray.push(standardJargonList[arrayctr]);
}
for (var ctr1=0;ctr1<buttons.length;ctr1++){
for (var ctr2=0; ctr2<buttons[ctr1].length;ctr2++){
var randInt = Math.floor(Math.random()*tempArray.length)
buttons[ctr1][ctr2].text = tempArray[randInt];
tempArray.splice(randInt,1)
}
}
}
function drawScreen() {
//ConsoleLog.log("standardAcronymList="+standardAcronymList.length);
//ConsoleLog.log("standardJargonList="+standardJargonList.length);
for (var ctr1=0;ctr1<buttons.length;ctr1++){
ConsoleLog.log("ctr1="+ctr1)
Search WWH ::




Custom Search