PageSourceSearch

https://www.mayadelilah.com/wp-content/cache/autoptimize/2094/auto…d228726cfee564ccceb97a25ddcbf.php?ver=3.5.9

js mayadelilah.com collected 2026-10-08 07:20:27 UTC 5,386 bytes, 18 lines download raw bytes

1(function($){"use strict";window.UMGGR_Video_Shortcode=window.UMGGR_Video_Shortcode||[]
2UMGGR_Video_Shortcode.players=[];UMGGR_Video_Shortcode.setplayer={initYtVideo:function(container,videoId){if(typeof(YT)=='undefined'||typeof(YT.Player)=='undefined'){window.onYouTubeIframeAPIReady=function(){UMGGR_Video_Shortcode.set=true;UMGGR_Video_Shortcode.setplayer.setVideoPlayer(container,videoId);};$.getScript('//www.youtube.com/iframe_api',function(){if(UMGGR_Video_Shortcode.set==false){UMGGR_Video_Shortcode.set=true;UMGGR_Video_Shortcode.setplayer.setVideoPlayer(container,videoId);}});}else
3{UMGGR_Video_Shortcode.setplayer.setVideoPlayer(container,videoId);}},setVideoPlayer:function(container,videoId){var ytplayer=new YT.Player(container,{videoId:videoId,host:UMGGR_Video_Shortcode.ytPlayerHost,});var ytplayerContainer={player:ytplayer,container:container}
4UMGGR_Video_Shortcode.players.push(ytplayerContainer);}};$(document).ready(function()
5{$('a[data-video-load-more]').on('click',function(e){e.preventDefault();var loadMoreAnchor=$(this);var currentOffset=$(this).attr('data-offset');var perPage=$(this).attr('data-load-num');var tileTemplate=$('.c-exhibition__video__item:last').clone();$(loadMoreAnchor).addClass('-is-loading');let posts={};$.ajax({type:"GET",url:UMGGR_Video_Shortcode.wpjsonurl+'/wp/v2/umggr-video',data:{'per_page':perPage,'offset':currentOffset},success:function(response){posts=response;},}).then((posts)=>{if(typeof posts!=='undefined'&&posts.length){for(var i in posts){var post=posts[i];var tile=tileTemplate.clone().attr('data-post-id',post.id).hide();if(UMGGR_Video_Shortcode.clickAction==='post'){tile.find('.item-image a').attr('href',post.link);}else{var tmpYTURL=replaceUrlParam(tile.find('a').attr('href'),'v',post['umggr-youtube-id']);tile.find('.item-image a').attr('href',tmpYTURL);}
6tile.find('.item-content .item-title h3.title').html(post.title.rendered);tile.find('.image-container div.image').css('background-image',"url('"+post['umggr-video-thumb']+"')");var ariaLabel="";if(post['umggr-video-alt-text']==''){ariaLabel=post.title.rendered;}else{ariaLabel=post['umggr-video-alt-text'];}
7tile.find('.image-container div.image').attr('aria-label',ariaLabel);tile.find('.item-content .item-description .description').empty().html(post['umggr-video-description']);tile.find('.item-content .item-date').empty().html(relative_time(post['umggr-video-date']));$('.c-exhibition__video__inner').append(tile);$(loadMoreAnchor).removeClass('-is-loading');$('div[data-post-id="'+post.id+'"]').fadeIn();}}else{}
8return posts;});var newOffset=parseInt(currentOffset)+parseInt(perPage);posts={};$.ajax({type:"GET",url:UMGGR_Video_Shortcode.wpjsonurl+'/wp/v2/umggr-video',data:{'per_page':perPage,'offset':newOffset},success:function(response){posts=response;},}).then((posts)=>{if(typeof posts==='undefined'||posts.length===0){loadMoreAnchor.hide();}else{loadMoreAnchor.attr('data-offset',parseInt(currentOffset)+parseInt(perPage));}});return false;});$('html').on('mouseenter','.fancybox-video-overlay:not(.-always)',function(){TweenMax.to($(this).find('div.image'),0.3,{scale:1.2});TweenMax.to($(this).find('.slide-overlay'),0.3,{opacity:0.8});TweenMax.fromTo($(this).find('.icon'),0.3,{rotation:-20},{rotation:0});});$('html').on('mouseleave','.fancybox-video-overlay:not(.-always)',function(){TweenMax.to($(this).find('div.image'),0.3,{scale:1});TweenMax.to($(this).find('.slide-overlay'),0.3,{opacity:0});TweenMax.to($(this).find('.icon'),0.3,{rotation:-20});});if($('#umggr-featured-video').length&&$('#umggr-featured-video').data('yt-id')){UMGGR_Video_Shortcode.setplayer.initYtVideo('umggr-featured-video',$('#umggr-featured-video').data('yt-id'));}});$(window).load(function(){$('[data-fancybox]').fancybox({baseClass:"fancy-video",media:{youtube:{url:"//www.youtube-nocookie.com/embed/$4"}}});});function relative_time(date_str){if(!date_str){return;}
9date_str=$.trim(date_str);date_str=date_str.replace(/\.\d\d\d+/,"");date_str=date_str.replace(/-/,"/").replace(/-/,"/");date_str=date_str.replace(/T/," ").replace(/Z/," UTC");date_str=date_str.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2");var parsed_date=new Date(date_str);var relative_to=(arguments.length>1)?arguments[1]:new Date();var delta=parseInt((relative_to.getTime()-parsed_date)/1000);delta=(delta<2)?2:delta;var sec=delta;var min=Math.round(delta/60);var hrs=Math.round(delta/3600);var days=Math.round(delta/86400);var weeks=Math.round(delta/604800);var mnths=Math.round(delta/2600640);var yrs=Math.round(delta/31207680);if(sec<=60){return sec+" seconds ago";}
10else if(min<=60){if(min==1){return"one minute ago";}else{return min+" minutes ago";}}
11else if(hrs<=24){if(hrs==1){return"an hour ago";}else{return hrs+" hours ago";}}
12else if(days<=7){if(days==1){return"Yesterday";}else{return days+" days ago";}}
13else if(weeks<=4.3){if(weeks==1){return"a week ago";}else{return weeks+" weeks ago";}}
14else if(mnths<=12){if(mnths==1){return"a month ago";}else{return mnths+" months ago";}}
15else{if(yrs==1){return"one year ago";}else{return yrs+" years ago";}}};function replaceUrlParam(url,paramName,paramValue)
16{if(paramValue==null){paramValue='';}
17var pattern=new RegExp('\\b('+paramName+'=).*?(&|#|$)');if(url.search(pattern)>=0){return url.replace(pattern,'$1'+paramValue+'$2');}
18url=url.replace(/[?#]$/,'');return url+(url.indexOf('?')>0?'&':'?')+paramName+'='+paramValue;}}
18)(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.