I hereby claim:
- I am safrmo on github.
- I am safrmo (https://keybase.io/safrmo) on keybase.
- I have a public key ASBu-WO-xxfU6n0lkWsmHwlyGp3X2eba7iBHO70mLul_uwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<template> | |
<main class="content home"></main> | |
</template> | |
<script> | |
export default {} | |
</script> |
// catch newsletter button - any link with `#newsletter` triggers the callback | |
window.addEventListener('click', evt => { | |
if( evt.target && event.target.href && typeof evt.target.href == 'string' && event.target.href.indexOf('#newsletter') != -1 ){ | |
evt.preventDefault() | |
// YOUR ACTION HERE... | |
} | |
}) | |
// keys! |
Some NPM packages I've written or contributed to:
/** | |
* Get the host of the this script. The host will be used for posting the data. | |
*/ | |
var getHost = function () { | |
var scripts = document.getElementsByTagName("script"); | |
var i; | |
for (i = 0; i < scripts.length; i++) { | |
var urlAttribute = scripts[i].attributes.getNamedItem("src"); | |
if (urlAttribute) { | |
var url = urlAttribute.nodeValue; |
Problem: we have:
Favorites:
(newest to oldest)