User:Matt2905/common.js

var createLink = function( event ) { console.log(decodeURIComponent(this.attributes.href) +5) var link = event.originalTarget.dataset.imageName; };

var images = document.getElementsByClassName('image link-internal'); for (i=0, x=images.length; i < x; ++i) { images[i].addEventListener("mouseover", createLink); }