diff --git a/demoassets/main.js b/demoassets/main.js index db8e854..7e56e7b 100644 --- a/demoassets/main.js +++ b/demoassets/main.js @@ -72,6 +72,10 @@ $(function(){ var img = w.document.createElement("img"); img.src = diffImage.src; img.alt = "image diff"; + img.style.maxWidth = "100%"; + img.addEventListener("click", function() { + this.style.maxWidth = this.style.maxWidth === "100%" ? "" : "100%"; + }); body.appendChild(img); });