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
// wrap history object (call only once!) | |
(function (history) { | |
const funcs = []; | |
// wrap pushState to send custom event | |
const pushState = history.pushState; | |
history.pushState = function (state, unused, href) { | |
window.dispatchEvent( | |
new CustomEvent('pushState', { detail: { state, href } }) | |
); |
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
/** | |
* Creates "contemporary" german (mainly female) names, with a little bit of fun added ;) | |
* | |
* Examples: | |
* Gerna-Bertomine Braunlens | |
* Brunlamunde Ringer-Rot | |
* Joladane zu Paffeneier | |
* Jora Wollenlens-Schiss | |
* Lata Krachling | |
* Klonlaela Grün-Eichelhorst |
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
/** | |
* Tiny helper that adds horizontal guidelines over the complete website. | |
* It can be used to validate the "vertical rhythm" in the current document. | |
* | |
* Use UP/DOWN keys to adjust height when cursor is inside text input. | |
*/ | |
(function (d) { | |
var ROW_HEIGHT = 24; | |
function resetGrid(rowHeight) { |
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
/** | |
* A tiny Adobe Analytics debugging helper to be used as bookmarklet. Compared to | |
* Adobe's own debugging helper this one simply dumps JSON objects to the console, | |
* which I personally prefer over fancy HTML tables. This one also supports POST | |
* requests as sometimes used by s.t and s.tl which is quite useful if you need to | |
* debug asynchronous tracking requests. | |
*/ | |
(function () { | |
// create a nice JSON representation of a query string | |
function jsonifyRequestUrl(url) { |