• Skip to main content
  • Skip to secondary navigation
  • Skip to primary sidebar
  • Skip to footer

recoveryArea

Content Management for Everyone!

  • About me
  • Blog
  • Contact me
  • AB Testing
  • WordPress
  • Portfolio

Blog

Blog

Yeah, I even have a blog on my website! This is the place where I drop short write-ups with tips and tricks, offer old hardware for sale, maybe even share a song with you, my dear audience and (future) clientele.

« Previous Page

Track That!

7 February 2016 By iPasqualito

This function tracks every event with all its attributes in the div that's set in the caller function. Handy if you need custom tracking for your AB test. var trackThat = function() { var t = {}, r = {}, a = window.event ? window.event.srcElement : i.target, c = document.getElementsByTagName(a.tagName), k = ""; try { for (var d = 0; d < c.length; ++d) c[d] == a && (r.tag = a.tagName, r.index = d, r.text = … [Read more...] about Track That!

Filed Under: JavaScript

A smarter console.info

9 February 2011 By iPasqualito

Here is a little piece of code you can use in your project for slightly smarter console messages. Objects and arrays are handled differently when logged to the console than strings. Firebug gives you a stringified version of the object while console.dir gives you an expandable object. Both give you the expandable object in Chrome. To work around this you can use this little snippet, it will always give you the correct version. var debug = function(message) { "object" … [Read more...] about A smarter console.info

Filed Under: JavaScript

« Previous Page

Primary Sidebar

Recent Posts

  • Notify Enter Viewport the proper way: Intersection Observer.
  • Notify Enter Viewport
  • AB Test jQuery Performance Cheat Sheet
  • Track That!
  • A smarter console.info

Archives

  • February 2020
  • June 2018
  • October 2016
  • February 2016
  • February 2011

Categories

  • AB Testing
  • JavaScript
  • Performance

Footer

Office

recoveryArea
Nijverheidstraat 11-1
7511 JM Enschede

KvK: 65594940

Goals

Let's make a more elegant, easy to use internet, accessible for everyone. Let's move forward to an empathic, secular, sustainable future, enabled through science and technology.

Read my full profile

Get in touch

  • GitHub
  • LinkedIn
  • Twitter

Copyright © 2021 · Author Pro On Genesis Framework · WordPress · From recoveryArea with