$(document).ready(function() { flexLayoutLoad(); flexLayout();
$(document).on('click', '#popup-inner', function(e) { closePopup(); })
$(document).on('click', '#popup-content', function(e) { e.stopPropagation(); });
$(document).on('click', '.popup-close', function(e) { closePopup(); });
$("body").on("click", '[data-popup="iframe"]', function(e) { e.preventDefault(); var url = $(this).attr('href'); var popwidth = $(this).attr('data-popup-width'); var popheight = $(this).attr('data-popup-height'); //alert(popwidth); popup(url, 'iframe', popwidth, popheight); });
$("body").on("click", '[data-popup="inline"]', function(e) { e.preventDefault(); var url = $(this).attr('href'); var popwidth = $(this).attr('data-popup-width'); var popheight = $(this).attr('data-popup-height'); //alert(popwidth); popup(url, '', popwidth, popheight);
});
$('.mobile-header .hamburger img').click(function(e) { //alert('click'); if($('.mobile-nav').css('display') == 'none') { $('.mobile-nav').css('display','block'); } var nav_pos = $('.mobile-nav').css('left'); //alert(nav_pos); if(nav_pos == '0px') { $('.mobile-nav').animate({left:'-86%'},'100'); $('.outer-container').animate({margin:'0 0 0 0 !important'},'100'); $('.outer-container').css('border-left','0px solid #ccc'); } else {
$('.mobile-nav').animate({left:'0'},'100'); $('.outer-container').animate({margin:'0 0 0 86% !important'},'100'); $('.outer-container').css('border-left','1px solid #ccc'); } e.preventDefault();
});
$("audio").each(function( index ) { $(this).bind("play", function(){
var src = basename($(this).find('source').attr('src')); //alert('a' + src); ga("send", { hitType: "event", eventCategory: "Audio", eventAction: "Play Mobile", eventLabel: src });
});
});
$('body').on('click', '.mobile-video-inner a.quality', function(e) { var src = basename($(this).attr('href'));
ga("send", { hitType: "event", eventCategory: "Video", eventAction: "Play Mobile", eventLabel: src, transport: 'beacon'
}) });
});