danmofo
6/16/2013 - 7:59 PM

Lanyrd mobile source

Lanyrd mobile source

(function() {
  		var d = document,
				w = window,
				de = d.documentElement,
				os = w.applicationCache && w.JSON && w.localStorage,
				om = window.operamini,
				pe = 'pointerEvents' in de.style && !window.opera, // Opera gives false positive
				bs = 'backgroundSize' in de.style && !om, // Opera Mini gives false positive
				ie = !('__proto__' in {}); // Idiom from http://zeptojs.com/

			if (w.doneIntro) return;

			// Dirty and you love it - this really speeds up ancient devices, avoids bulk of js parsing
			w.preventScript = om || !os || ie;
			w.isAppCacheRoot = !0;
			w.doneIntro = !0;
			de.className+= (preventScript ? '' : ' js')
						 + (os ? ' offline-support' : '')
						 + (pe ? ' pointer-events-support' : '')
						 + (de.addEventListener ? ' bubbling-support' : '')
						 + (bs ? ' background-size-support' : '')
						 + ('placeholder' in d.createElement('input') ? ' placeholder-support' : '');

				w._gaq=[['_setAccount','UA-18148195-5'],['_trackPageview']];(function(t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}('script'))

			// Add a class to images that fail/load
			function il(className) {
				return function(event) {
					var t = event.target;
					if (t.nodeName === 'IMG') t.className += className;
				}
			}

			if ( de.addEventListener ) {
				de.addEventListener( 'error', il(' img-failed'), true);
				de.addEventListener( 'load',  il(' img-loaded'), true);
			}
		})();