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
/* | |
Making codepen.io a little more iPad friendly. @pixelthing | |
First - I hope this doesn't come across as being a bit of an dick. I massively appreciate | |
CodePen and know the huge amount of pressure that comes from every direction in a project this | |
big, so totally understand that not every user experience can be addressed with the time and | |
resources available. Think of this as a pull request for your consideration. | |
*Do not feel the need to pity-implement anything or let me down gently. It's your site, not mine.* | |
This is a shim to add to the CodePen editor styles (eg, greasemonkey style). |
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
/* bling.js */ | |
window.$ = document.querySelector.bind(document); | |
window.$$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
NodeList.prototype.__proto__ = Array.prototype; | |
NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |