oppgave uke 4
This commit is contained in:
parent
f072b9146e
commit
996f8b9d05
|
@ -37,16 +37,17 @@ function insertWords2(word) {
|
||||||
word2 = word;
|
word2 = word;
|
||||||
sentence = "Once there was " + word1 + " " + word2 + " that " + word3 + " in the " + word4 + " - and great things happened. The End";
|
sentence = "Once there was " + word1 + " " + word2 + " that " + word3 + " in the " + word4 + " - and great things happened. The End";
|
||||||
document.getElementById('sentence').innerHTML = sentence;
|
document.getElementById('sentence').innerHTML = sentence;
|
||||||
|
updateView();
|
||||||
}
|
}
|
||||||
function insertWords3(word) {
|
function insertWords3(word) {
|
||||||
word3 = word;
|
word3 = word;
|
||||||
sentence = "Once there was " + word1 + " " + word2 + " that " + word3 + " in the " + word4 + " - and great things happened. The End";
|
sentence = "Once there was " + word1 + " " + word2 + " that " + word3 + " in the " + word4 + " - and great things happened. The End";
|
||||||
document.getElementById('sentence').innerHTML = sentence;
|
document.getElementById('sentence').innerHTML = sentence;
|
||||||
|
updateView();
|
||||||
} function insertWords4(word) {
|
}
|
||||||
|
function insertWords4(word) {
|
||||||
word4 = word;
|
word4 = word;
|
||||||
sentence = "Once there was " + word1 + " " + word2 + " that " + word3 + " in the " + word4 + " - and great things happened. The End";
|
sentence = "Once there was " + word1 + " " + word2 + " that " + word3 + " in the " + word4 + " - and great things happened. The End";
|
||||||
document.getElementById('sentence').innerHTML = sentence;
|
document.getElementById('sentence').innerHTML = sentence;
|
||||||
|
updateView();
|
||||||
}
|
}
|
Loading…
Reference in a new issue