Beruflich Dokumente
Kultur Dokumente
TAREA 1 :
TAREA 2 :
Su funcionamiento es sencillo: el agua se filtra por los poros de la arcilla y en contacto con
el ambiente exterior se evapora, produciendo un enfriamiento. La clave del enfriamiento
está en la evaporación del agua.
TAREA 3 :
TAREA 4 :
El Búcaro
<!--
CrosswordWidth = 11;
CrosswordHeight = 13;
Words = 6;
WordLength = new Array(8, 7, 7, 13, 10, 9);
Word = new Array("ENTALPIA", "HUMEDAD", "ARCILLA", "TERMODINAMICA",
"TERMOMETRO", "ALFARERIA");
Clue = new Array("Media que nos indica el calor que absorve o cede un sistema",
"cantidad de agua en el aire",
"roca sedimentaria que se utiliza para fabricar búcaros.",
"ciencia que estudia el intercambio de energia de los cuerpos.",
"instrumento que sirve para medir la temperatura de los cuerpos",
"arte de elaborar vasijas de barro cocido");
AnswerHash = new Array(13339, 26922, 56245, 66012, 60470, 83117);
WordX = new Array(3, 0, 2, 5, 3, 8);
WordY = new Array(0, 8, 10, 0, 2, 2);
LastHorizontalWord = 2;
OnlyCheckOnce = false;
//--><!--
TableAcrossWord[x][y] = -1;
TableDownWord[x][y] = -1;
}
TableAcrossWord[x + j][y] = i;
}
}
TableDownWord[x][y + j] = i;
}
}
document.write("<td></td>");
}
document.writeln("</tr>");
}
// ----------
// Event handlers
// ----------
// Helper functions
document.getElementById("welcomemessage").style.display = "";
document.getElementById("checkbutton").style.display = "";
}
}
// Returns true if the string passed in contains any characters prone to evil.
function ContainsBadChars(theirWord)
{
for (var i = 0; i < theirWord.length; i++)
if (BadChars.indexOf(theirWord.charAt(i)) >= 0)
return true;
return false;
}
// Deselects the current word, if there's a word selected. DOES not change the value of CurrentWord.
function DeselectCurrentWord()
{
if (CurrentWord < 0) return;
var x, y, i;
document.getElementById("answerbox").style.display = "none";
ChangeCurrentWordSelectedStyle(false);
CurrentWord = -1;
if (WordNumber<= LastHorizontalWord)
for (i = 0; i < WordLength[WordNumber]; i++)
// Changes the style of the cells in the current word between the selected/unselected form.
function ChangeCurrentWordSelectedStyle(IsSelected)
{
if (CurrentWord < 0) return;
var x = WordX[CurrentWord];
var y = WordY[CurrentWord];
// Selects the new word by parsing the name of the TD element referenced by the
// event object, and then applying styles as necessary.
function SelectThisWord(event)
{
if (CrosswordFinished) return;
var x, y, i, TheirWord, TableCell;
// Determine the coordinates of the cell they clicked, and then the word that
// they clicked.
var target = (event.srcElement ? event.srcElement: event.target);
x = parseInt(target.id.substring(1, 4), 10);
y = parseInt(target.id.substring(4, 7), 10);
// If they clicked an intersection, choose the type of word that was NOT selected last time.
if (TableAcrossWord[x][y] >= 0 && TableDownWord[x][y] >= 0)
CurrentWord = PrevWordHorizontal ?
TableDownWord[x][y] : TableAcrossWord[x][y];
else if (TableAcrossWord[x][y] >= 0)
CurrentWord = TableAcrossWord[x][y];
else if (TableDownWord[x][y] >= 0)
CurrentWord = TableDownWord[x][y];
TheirWord += TableCell.innerHTML.toUpperCase();
TheirWordLength++;
}
else
{
TheirWord += "•";
}
}
document.getElementById("wordlabel").innerHTML = TheirWord;
document.getElementById("wordinfo").innerHTML = ((CurrentWord <=
LastHorizontalWord) ? "Across, " : "Down, ") + WordLength[CurrentWord] + " letters.";
document.getElementById("wordclue").innerHTML = Clue[CurrentWord];
document.getElementById("worderror").style.display = "none";
document.getElementById("cheatbutton").style.display = (Word.length == 0) ? "none" : "";
if (TheirWordLength == WordLength[CurrentWord])
document.getElementById("wordentry").value =
TheirWord;
else
document.getElementById("wordentry").value =
"";
document.getElementById("worderror").style.display = "block";
return;
}
if (TheirWord.length < WordLength[CurrentWord])
{
document.getElementById("worderror").style.display = "block";
return;
}
if (TheirWord.length > WordLength[CurrentWord])
{
document.getElementById("worderror").style.display = "block";
return;
}
// If we made it this far, they typed an acceptable word, so add these letters to the puzzle and
hide the entry box.
x = WordX[CurrentWord];
y = WordY[CurrentWord];
for (i = 0; i < TheirWord.length; i++)
{
TableCell = CellAt(x + (CurrentWord <=
LastHorizontalWord ? i : 0), y + (CurrentWord > LastHorizontalWord ? i : 0));
TableCell.innerHTML = TheirWord.substring(i, i
+ 1);
}
DeselectCurrentWord();
}
UserEntry += TableCell.innerHTML.toUpperCase();
}
else
{
UserEntry = "";
EmptyFound++;
break;
}
}
// If this word doesn't match, it's an error.
if (HashWord(UserEntry) != AnswerHash[i] &&
UserEntry.length > 0)
{
ErrorsFound++;
document.getElementById("checkbutton").style.display = "none";
}
document.getElementById("welcomemessage").style.display = "";
return;
}
//-->
E N T A L P IA
E
T R A
E M L
R O F
M D A
O I R
M N E
H UME DA D R
T M I
A R C I L LA
O C
A