Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ <h3 id="quote_line2">"Mathematical Modeling is nothing<br>but Mathematics and Mo

var x;

document.getElementById("bgimage").style = "background-image:url('images/road-2.jpg');";
//document.getElementById("bgimage").style = "background-image:url('images/road-2.jpg');";
x = document.getElementById("quote_input1").value;
x = x.split(',');
x = x.join('<br>');
Expand Down Expand Up @@ -95,7 +95,16 @@ <h3 id="quote_line2">"Mathematical Modeling is nothing<br>but Mathematics and Mo
document.getElementById("author2").innerHTML = "<cite>" + x[1] + "(" + y[i].value + ")" + "</cite>";
}
}
if(y[0].checked) {
document.getElementById("bgimage").style = "background-image:url('images/road-dawn-mountains-sky.jpeg');";
}
if(y[1].checked) {
document.getElementById("bgimage").style = "background-image:url('images/road-2.jpg');";
}
if(y[2].checked) {
document.getElementById("bgimage").style = "background-image:url('images/road-3.jpg');";
}
}
</script>
</body>
</html>
</html>