Created
September 2, 2016 23:00
-
-
Save MikeDigitize/3021c2239e12a4786a8d2d4dade6ee5f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var selector = '#aoFooterSmallPrint'; | |
var addEvent = a => b => c => a.addEventListener(b, c); | |
var footerText = document.querySelector(selector); | |
var footerTextEvents = addEvent(footerText); | |
var footerTextOnClick = footerTextEvents('click'); | |
var footerTextOnMouseOver = footerTextEvents('mouseover'); | |
var log = evt => console.log(evt); | |
footerTextOnClick(log); | |
footerTextOnMouseOver(log); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment