Adult DVDs @ Adult DVD Empire
(function() { //dom event listeners. if (window.addEventListener) window.addEventListener('load',scriptBag,false); else if (window.attachEvent) window.attachEvent('onload',scriptBag); else { //Older browsers only if (typeof window.onload=='function') { var oldload=window.onload; window.onload=function(){ oldload(); scriptBag(); } } else window.onload = new function() { scriptBag(); }; } //retrieves a script and stop execution of dependent scripts in success function getScript(url,success){ var script=document.createElement('script'); script.src=url; var head=document.getElementsByTagName('head')[0],done=false; script.onload=script.onreadystatechange = function(){ if ( !done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete') ) { done=true; success(); script.onload = script.onreadystatechange = null; head.removeChild(script); } }; head.appendChild(script); } function scriptBag() { getScript('http://static.adultempire.com/js/r1_0_6229_19417_mastercombo.js',function(){ //disable caching of ajax responses //hmmm. could you cache the customer cells? $.ajaxSetup({ cache: false }); //common scripts //Swap the vector images if the browser supports svgs $(".svgswap").svgswap(); //google tracking $(function() { // if tracking=false omit impressions from GA. $('*:not(a)[data-ta][data-tl][data-tid]').each(function() { ga('send', 'event', 'tracking', $(this).attr("data-ta"), $(this).attr("data-tl") + "-" + $(this).attr("data-tid"), 1, {'nonInteraction': 1}); }); $(document).on('click', 'a[data-ta][data-tl][data-tid]', function() { ga('send', 'event', 'tracking', $(this).attr("data-ta"), $(this).attr("data-tl") + "-" + $(this).attr("data-tid")); }); $(document).on('click', 'a[Category]', function() { ga('send', 'event', ($(this).attr("Category")), 'click', $(this).attr("Label")); }); }); }); } })(); he the customer cells? $.ajaxSetup({ cache: false }); //common scripts //Swap the vector images if the browser supports svgs $(".svgswap").svgswap(); //google tracking $(function() { // if tracking=false omit impressions from GA. $('*:not(a)[data-ta][data-tl][data-tid]').each(function() { ga('send', 'event', 'tracking', $(this).attr("data-ta"), $(this).attr("data-tl") + "-" + $(this).attr("data-tid"), 1, {'nonInteraction': 1}); }); $(document).on('click', 'a[data-ta][data-tl][data-tid]', function() { ga('send', 'event', 'tracking', $(this).attr("data-ta"), $(this).attr("data-tl") + "-" + $(this).attr("data-tid"));