PageSourceSearch

https://easl.eu/wp-content/cache/min/1/wp-content/plugins/easl-cor…/js/upcoming-deadlines.js?ver=1789727983

js easl.eu collected 2026-09-24 09:03:46 UTC 2,083 bytes, 11 lines download raw bytes

1(function(){'use strict';var config=window.easlUDConfig||{};function setEmpty(list,message){var li=document.createElement('li');li.className='easl-ud-empty';li.textContent=message||'No upcoming deadlines at the moment.';list.innerHTML='';list.appendChild(li);list.removeAttribute('aria-busy')}
2function fillColumn(col,data){var list=col.querySelector('.easl-ud-list');if(!list){return}
3if(data&&data.count>0){list.innerHTML=data.html;list.removeAttribute('aria-busy')}else{setEmpty(list,col.getAttribute('data-empty'))}}
4function load(widget){if(widget.getAttribute('data-ud-loaded')){return}
5widget.setAttribute('data-ud-loaded','1');var cols=Array.prototype.slice.call(widget.querySelectorAll('.easl-ud-col'));var withItems=cols.filter(function(col){return(col.getAttribute('data-types')||'')!==''});if(!withItems.length){return}
6var params=new URLSearchParams({action:'easl_upcoming_deadlines',cols:withItems.map(function(col){return col.getAttribute('data-types')}).join('|'),max:widget.getAttribute('data-max')||'8'});fetch((config.ajaxUrl||'/wp-admin/admin-ajax.php')+'?'+params.toString(),{credentials:'same-origin'}).then(function(response){return response.json()}).then(function(result){if(!result||!result.success||!result.data.columns){throw new Error('easl-ud: bad response')}
7withItems.forEach(function(col,i){fillColumn(col,result.data.columns[i])})}
7).catch(function(){withItems.forEach(function(col){fillColumn(col,null)})})}
8function initAll(root){(root||document).querySelectorAll('.easl-ud').forEach(load)}
9if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',function(){initAll()})}else{initAll()}
10window.addEventListener('elementor/frontend/init',function(){if(window.elementorFrontend&&window.elementorFrontend.hooks){window.elementorFrontend.hooks.addAction('frontend/element_ready/easl_upcoming_deadlines.default',function($scope){var scope=$scope&&$scope[0]?$scope[0]:$scope;if(!scope||!scope.querySelectorAll){return}
11scope.querySelectorAll('.easl-ud').forEach(function(el){el.removeAttribute('data-ud-loaded');load(el)})})}})})()

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.