Skip to content

Instantly share code, notes, and snippets.

Chris Morgan chris-morgan

Block or report user

Report or block chris-morgan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View details.js
* Note that this script is intended to be included at the *end* of the document, before </body>
(function (window, document) {
if ('open' in document.createElement('details')) return;
// made global by myself to be reused elsewhere
var addEvent = (function () {
if (document.addEventListener) {
return function (el, type, fn) {
You can’t perform that action at this time.