Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');
<html> | |
<body> | |
<form> | |
<input name="email" /> | |
<input name="name" /> | |
</form> | |
<script> | |
document.querySelector('input[name="email"]').addEventListener('click', function(event) { | |
console.log('Hello World'); | |
}); |
Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');