diff --git a/committees.org b/committees.org index be7e69a..121aa52 100644 --- a/committees.org +++ b/committees.org @@ -1,5 +1,6 @@ #+TITLE: SMT for IN3070 #+AUTHOR: Lars Tveito +#+HTML_HEAD: #+HTML_HEAD: #+OPTIONS: toc:nil num:nil html-style:nil diff --git a/js/script.js b/js/script.js new file mode 100644 index 0000000..ffddae4 --- /dev/null +++ b/js/script.js @@ -0,0 +1,16 @@ +function blurPython() { + blocksToBlur = document.getElementsByClassName('src-python'); + // Note: Skipping the two first code blocks + for (var i = 1; i < blocksToBlur.length; i++) { + const block = blocksToBlur[i] + block.setAttribute("style", "cursor: pointer;"); + block.classList.toggle("blur"); + block.addEventListener("click", function () { + block.classList.toggle("blur"); + }); + } +} + +document.addEventListener('DOMContentLoaded', function(){ + blurPython(); +}, false);