document.write("\n"); document.write("\n"); document.write("\n"); document.write("\n"); document.write("
\n"); document.write("\n"); document.write("\n"); document.write("\n"); document.write("\n"); document.write("\n"); document.write("\n"); document.write("\"Buskerud\n"); document.write("\n"); document.write("
\n"); document.write(" ×\n"); document.write(" \n"); document.write("
\n"); document.write("
\n"); document.write("\n"); document.write("\n"); document.write("// Get the modal\n"); document.write("var modal = document.getElementById\('myModal'\);\n"); document.write("\n"); document.write("// Get the image and insert it inside the modal - use its \"alt\" text as a caption\n"); document.write("var img = document.getElementById\('myImg'\);\n"); document.write("var modalImg = document.getElementById\(\"img01\"\);\n"); document.write("var captionText = document.getElementById\(\"caption\"\);\n"); document.write("img.onclick = function\(\){\n"); document.write(" modal.style.display = \"block\";\n"); document.write(" modalImg.src = this.src;\n"); document.write(" captionText.innerHTML = this.alt;\n"); document.write("}\n"); document.write("\n"); document.write("// Get the element that closes the modal\n"); document.write("var span = document.getElementsByClassName\(\"close\"\)[0];\n"); document.write("\n"); document.write("// When the user clicks on \(x\), close the modal\n"); document.write("span.onclick = function\(\) {\n"); document.write(" modal.style.display = \"none\";\n"); document.write("}\n"); document.write("\n"); document.write("\n"); document.write("\n"); document.write("
\n");