var modal = document.getElementById(“myModal”);
var span = document.getElementsByClassName(“close”)[0];
var btn1 = document.getElementById(“btn1”);
var btn2 = document.getElementById(“btn2”);
var btn3 = document.getElementById(“btn3”);
var btn4 = document.getElementById(“btn4”);
var btn5 = document.getElementById(“btn5”);
var btn6 = document.getElementById(“btn6”);
var btn7 = document.getElementById(“btn7”);
var btn8 = document.getElementById(“btn8”);
var btn9 = document.getElementById(“btn9”);
var btn10 = document.getElementById(“btn10”);
var btn11 = document.getElementById(“btn11”);
var btn12 = document.getElementById(“btn12”);
var btn13 = document.getElementById(“btn13”);
var btn14 = document.getElementById(“btn14”);
btn1.onclick = function() {
document.getElementById(“modalText”).innerHTML = “Produces bile, which helps carry away waste and break down fats in the small intestine during digestion. It also detoxify food that enters the duodenum.”;
modal.style.display = “block”;
}
btn2.onclick = function() {
document.getElementById(“modalText”).innerHTML = “Store and concentrates bile.”;
modal.style.display = “block”;
}
btn3.onclick = function() {
document.getElementById(“modalText”).innerHTML = “Carry bile from the gallbladder and empty it into the upper part of the small intestine.”;
modal.style.display = “block”;
}
btn4.onclick = function() {
document.getElementById(“modalText”).innerHTML = “Attach the stomach and duodenum to the liver.”;
modal.style.display = “block”;
}
btn5.onclick = function() {
document.getElementById(“modalText”).innerHTML = “Produces enzymes which includes trypsin and chymotrypsin to break down proteins, amylase for the conversion of carbs, and lipase to break down body fats and glycerol. It also produces bicarbonate to neutralize the acids from the stomach. As endocrine gland, it produces insulin and glucagon to regulate glucose in the blood.”;
modal.style.display = “block”;
}
btn6.onclick = function() {
document.getElementById(“modalText”).innerHTML = “Prepares chyme to be further broken down so that nutrients can easily be absorbed.”;
modal.style.display = “block”;
}
btn7.onclick = function() {
document.getElementById(“modalText”).innerHTML = “Absorb vitamin B12, bile salts, and other products of digestion were not absorbed by the jejunum.”;
modal.style.display = “block”;
}
btn8.onclick = function() {
document.getElementById(“modalText”).innerHTML = “Stores food material where bacteria are able to break down the cellulose.”;
modal.style.display = “block”;
}
btn9.onclick = function() {
document.getElementById(“modalText”).innerHTML = “Acts as a temporary storage site for feces. Plays a key role in the defecation mechanism.”;
modal.style.display = “block”;
}
btn10.onclick = function() {
document.getElementById(“modalText”).innerHTML = “Reabsorbs water and other fluids and process waste products from the body and prepare for its elimination.”;
modal.style.display = “block”;
}
btn11.onclick = function() {
document.getElementById(“modalText”).innerHTML = “The boundary of the stomach that forms a long usually convex curve on the left from the opening for the esophagus to the opening into the duodenum.”;
modal.style.display = “block”;
}
btn12.onclick = function() {
document.getElementById(“modalText”).innerHTML = “Acts as a blood filter and controls the amount of red blood cells and blood storage in the body, and helps to fight infection.”;
modal.style.display = “block”;
}
btn13.onclick = function() {
document.getElementById(“modalText”).innerHTML = “Secretes hydrochloric acids and enzymes that break down the food so that it can continue on its journey through the digestive system.”;
modal.style.display = “block”;
}
btn14.onclick = function() {
document.getElementById(“modalText”).innerHTML = “Connects the throat and the stomach.”;
modal.style.display = “block”;
}
span.onclick = function() {
modal.style.display = “none”;
}
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = “none”;
}
}