"use strict"; var _mtm = _mtm || []; _mtm.push({'mtm.startTime': (new Date().getTime()), 'event': 'mtm.Start'}); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.async=true; g.defer=true; g.src='https://analytics.adultempire.com/js/container_iXaVs8DZ.js'; s.parentNode.insertBefore(g,s);
var currenttab; var firstload = true; //This renders the video list function rendervideolist(type) { //Reset Tabs $("#interviews-type-selector li").removeClass("active"); //Activate selected tab $("#tab-" + type).addClass("active"); //Reset List if they switch list types if (currenttab != type) { if (!firstload) resetvideoslist(); else{ firstload = false; //Fade in content because it's the first load $( "#content-list-container" ).fadeTo( "slow" , 1, function() { //Do anything when done? not sure yet. }); $( "#content-list" ).fadeTo( "slow" , 1, function() { //Do anything when done? not sure yet. }); } //Set current tab currenttab = type; var listitemcounter = 1; var thumbstoshow = 20; if (type == "all") { //Render all videos $("li.content-item a").each(function () { if (listitemcounter <= thumbstoshow) { $(this).addClass("linkthumb"); $(this).find("img").show(); $(this).find("img").attr("style", "background-image:url(" + $(this).attr("thumbnailurl") + ");"); } else { $(this).find("img").hide(); } $(this).find(".linktitle").html?partner_ID=25717034&( $(this).attr("thumbnailtitle") + "" + $(this).attr("dateposted") + "" ); $(this).fadeIn(); listitemcounter++; }); } else { $("li." + currenttab + " a").each(function () { if (listitemcounter <= 20) { $(this).addClass("linkthumb"); $(this).find("img").show(); $(this).find("img").attr("style", "background-image:url(" + $(this).attr("thumbnailurl") + ");"); } else { $(this).find("img").hide(); } $(this).find(".linktitle").html?partner_ID=25717034&( $(this).attr("thumbnailtitle") + "" + $(this).attr("dateposted") + "" ); $(this).fadeIn(); listitemcounter++; }); } } } function bindvideolinks() { $('a.interviewcontent-link').bind('click', function () { //Fade out, fast $( "#video-content-container" ).fadeTo( 0 , 0, function() { }); //Reset resetvideocontainer(); //Set new values var id = $(this).attr("id"); var youtubeurl = $(this).attr("youtubeurl"); var empirevideourl = $(this).attr("empirevideourl"); var videoposterurl = $(this).attr("videoposterurl"); var empireaudiourl = $(this).attr("empireaudiourl"); var dateposted = $(this).attr("dateposted"); var contenttitle = $(this).attr("contenttitle"); var contenttext = $(this).attr("contenttext"); var performername = $(this).attr("performername"); var performerurl = $(this).attr("performerurl"); var linktext = $(this).attr("linktext"); var linkurl = $(this).attr("linkurl"); var heroimageurl = $(this).attr("heroimageurl"); var thumbnailurl = $(this).attr("thumbnailurl"); var thumbnailtitle = $(this).attr("thumbnailtitle"); if (youtubeurl != "") { //Insert YouTube Player var youtubeplayer = ""; $("#video-container").html?partner_ID=25717034&(youtubeplayer); } else { //Insert HTML Player var videoplayer = ""; $("#video-container").html?partner_ID=25717034&(videoplayer); } if (dateposted != "") $("#video-date").html?partner_ID=25717034&(dateposted); if (contenttitle != "") $("#video-title").html?partner_ID=25717034&(contenttitle); if (contenttext != "") $("#video-text-content").html?partner_ID=25717034&(contenttext); if ((linkurl != "") && (linktext != "")){ $("#video-link").attr("href", linkurl); $("#video-link").html?partner_ID=25717034&(linktext); $("#video-link").show(); } else $("#video-link").hide(); if ((thumbnailurl != "") && (performerurl != "")) { $("#video-performer-thumb-link").show(); $("#video-performer-image").attr("style", "background-image:url(" + thumbnailurl + ");"); $("#video-performer-thumb-link").attr("href", performerurl); if (performername != "") $("#video-performer-thumb-link").attr("title", performerurl); } if (heroimageurl != "") { $("#video-content-container").attr("style", "background-image:url(" + heroimageurl + ");"); $("#video-info-container").addClass("hashero"); } //Fade In $( "#video-content-container" ).fadeTo( "slow" , 1, function() { //??? }); $('html, body').animate({ scrollTop: $("body").offset().top }, 1000); }); } function resetvideoslist() { $("li.content-item a").each(function () { $(this).removeClass("linkthumb"); $(this).find(".linktitle").html?partner_ID=25717034&(); $(this).fadeOut(); }); } function resetvideocontainer() { $("#video-date").html?partner_ID=25717034&(""); $("#video-title").html?partner_ID=25717034&(""); $("#video-text-content").html?partner_ID=25717034&(""); $("#video-link").hide(); $("#video-link").attr("href", "#"); $("#video-link").html?partner_ID=25717034&(""); $("#video-content-container").attr("style", "background-image:none;"); $("#video-info-container").removeClass("hashero"); $("#video-performer-thumb-link").hide(); $("#video-performer-link").attr("href", "#"); $("#video-performer-thumb-link").hide(); $("#video-performer-thumb-link").attr("href", "#"); $("#video-performer-thumb-link").attr("title", ""); $("#video-performer-image").attr("style", "background-image:none;"); } (function scriptReady() { $.ajaxSetup({ cache: false }); elasticApm.init({ serviceName: 'ADE', serverUrl: '/um', serviceVersion: '1.0.7726.25056', pageLoadTransactionName: 'CustomPage:CP_Cache', active: Math.random() < 0.1 }) rendervideolist('all'); bindvideolinks(); //Check to see if the content has been hot linked var hash = window.location.hash.replace("#",""); if (hash != ""){ //check to see if the selected ID exists if($("#" + hash).length != 0) { //ID exists, load content $("#" + hash).trigger("click"); } else{ //ID doesnt exist, load first content item $("#content-list").find("a:first").trigger("click"); } } else{ //Not hot linked ID, load first content item $("#content-list").find("a:first").trigger("click"); } var unlimitedhoverconfig = { interval: 150, sensitivity: 3, over: showunlimitednavmsg, timeout: 0, out: hideunlimitednavmsg } $("#beacon-unlimited").hoverIntent(unlimitedhoverconfig); var navhoverconfig2017 = { interval: 150, sensitivity: 3, over: showsecondarynav, timeout: 0, out: hidesecondarynav }; $("#main-nav-subcontainer>div").each(function () { $(this).hoverIntent(navhoverconfig2017); }); var gridItemCardHoverConfig = { interval: 150, sensitivity: 3, over: activateGridItemCard, timeout: 0, out: deactivateGridItemCard }; $(".grid-item>.product-card").each(function () { $(this).hoverIntent(gridItemCardHoverConfig); }); initializeSearchControls(); $(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', '*[Category]', function() { ga('send', 'event', ($(this).attr("Category")), 'click', $(this).attr("Label")); }); }); var config = { rootMargin: '0px 0px 50px 0px', threshold: 0 }; var observer = new IntersectionObserver(function (entries, self) { for(var i = 0, len = entries.length; i < len; ++i) { var entry = entries[i]; if (entry.isIntersecting) { loadImage(entry.target); self.unobserve(entry.target); } } }, config); $("img[data-src]").each(function(i, image) { observer.observe(image); }); $("[data-bgsrc]").each(function(i, image) { observer.observe(image); }); function loadImage(img) { var bgsrc = img.getAttribute('data-bgsrc'); if(bgsrc) { img.style.backgroundImage = 'url(' + bgsrc + ')'; } else { var src = img.getAttribute('data-src'); if (!src) { return; } img.src = src; } } setTimeout(function() { try { if(!window.localStorage.getItem('modalSignup')) { $("#btnShowModal").click(); window.localStorage.setItem('modalSignup', true); ga("send", "event", { "eventCategory": "Account", "eventAction": "Create Offered", "eventLabel": "Modal" }); } } catch {} }, 30000); })(); function modalSignupComplete(form) { ga("send", "event", { "eventCategory": "Account", "eventAction": "Create", "eventLabel": "Modal" }); window.location.reload(); }