From a105e6ba6d7b899ba9c3a62e5012d443a9147224 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Wed, 21 Nov 2018 06:49:24 +0000 Subject: [PATCH] Make contact email a link, add github link --- passmate.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/passmate.js b/passmate.js index 3fdc242..2f58a98 100644 --- a/passmate.js +++ b/passmate.js @@ -73,7 +73,18 @@ class PassMate { }); this.addElement('h2', overview, 'Questions? Suggestions?'); - this.addElement('blurb', overview, 'Contact ian@passmate.io'); + + let contact = this.addElement('blurb', overview, 'Contact ian@passmate.io'); + contact.style.cursor = 'pointer'; + contact.addEventListener('click', () => { + document.location = 'mailto:ian@passmate.io'; + }); + + let github = this.addElement('blurb', overview, 'Source code & issue tracking at GitHub'); + github.style.cursor = 'pointer'; + github.addEventListener('click', () => { + document.location = 'https://github.com/flamingcowtv/passmate'; + }); } addPages(container, numPages) {