PageSourceSearch

https://www.citeco.fr/sites/default/files/js/optimized/js_wDpj4HH4…c43VDR0dI_gdUs3Oa9ptFq7Rjdddv0d1Y.js?tlu88p

js citeco.fr collected 2026-09-24 21:07:35 UTC 4,402 bytes, 11 lines download raw bytes

1/* Source and licensing information for the line(s) below can be found at https://www.citeco.fr/themes/custom/cem/js/calendar.js. */
2;var pathname=window.location.pathname.split('/'),Calendar=function(t){this.divId=t;this.DaysOfWeek=[Drupal.t('MON'),Drupal.t('TUE'),Drupal.t('WED'),Drupal.t('THU'),Drupal.t('FRI'),Drupal.t('SAT'),Drupal.t('SUN')];this.Months=[Drupal.t('January'),Drupal.t('February'),Drupal.t('March'),Drupal.t('April'),Drupal.t('May'),Drupal.t('June'),Drupal.t('Jully'),Drupal.t('August'),Drupal.t('September'),Drupal.t('October'),Drupal.t('November'),Drupal.t('December')];var r=new Date();this.currentDateUrl=pathname[2];if(isNaN(this.currentDateUrl)){this.currentDateUrl=pathname[3]};if(this.currentDateUrl.startsWith('20')){var l=getYearFromUrl(this.currentDateUrl),n=getMonthFromUrl(this.currentDateUrl),a=getDayFromUrl(this.currentDateUrl),e=new Date(l,parseFloat(n-1),a);setListDate(a,this.Months[n-1])};if(e!==null){this.currentMonth=e.getMonth();this.currentYear=e.getFullYear();this.currentDay=e.getDate()}
3else{this.currentMonth=r.getMonth();this.currentYear=r.getFullYear();this.currentDay=r.getDate()}};Calendar.prototype.nextMonth=function(){if(this.currentMonth==11){this.currentMonth=0;this.currentYear=this.currentYear+1}
4else{this.currentMonth=this.currentMonth+1};this.showCurrentMonth()};Calendar.prototype.previousMonth=function(){if(this.currentMonth==0){this.currentMonth=11;this.currentYear=this.currentYear-1}
5else{this.currentMonth=this.currentMonth-1};this.showCurrentMonth()};Calendar.prototype.showCurrentMonth=function(){this.showMonth(this.currentYear,this.currentMonth)};Calendar.prototype.showMonth=function(t,r){var p=new Date(),u=new Date(t,r,1).getDay(),i=new Date(t,r+1,0).getDate(),c=r==0?new Date(t-1,11,0).getDate():new Date(t,r,0).getDate();setCalendarDate(this.Months[r],t);html='<ul class="days">';for(var e=0;e<this.DaysOfWeek.length;e++){html+='<li>'+this.DaysOfWeek[e]+'</li>'};html+='</ul>';var e=1;do{var a=new Date(t,r,e).getDay();if(e==1){html+='<ul class="first-week date">';var n=c-u+2;for(var s=1;s<u;s++){html+='<li class="not-current-month">'+n+'</li>';n++}}
6else if(a==1){html+='<ul class="date">'};var o=('0'+parseFloat(r+1)).slice(-2),h=('0'+e).slice(-2),l=t+o+h;if(this.currentDateUrl!==null&&this.currentDateUrl===l){html+='<li><a href="'+l+'" class="active">'+e+'</a></li>'}
7else{html+='<li><a href="'+l+'">'+e+'</a></li>'};if(a==0){html+='</ul>'}
8else if(e==i){var n=1;for(a;a<7;a++){html+='<li class="not-current-month">'+n+'</li>';n++}};e++}
9while(e<=i);document.getElementById(this.divId).innerHTML=html};window.onload=function(){var t=new Calendar('full-calendar');t.showCurrentMonth();getId('btnNext').onclick=function(){t.nextMonth()};getId('btnPrev').onclick=function(){t.previousMonth()};setScrollLeft()};function setScrollLeft(){(function(t){let width=t(window).width();let before=t('.first-week .not-current-month').length;let selectedDay=parseInt(getDayFromUrl(pathname[2]))+before;let position=Math.ceil(selectedDay/7)-1;let go=parseInt(position*width);t('#full-calendar').scrollLeft(go)})(jQuery)};function getId(t){return document.getElementById(t)};function setCalendarDate(t,e){(function(r){r('.calendar-header h3').replaceWith('<h3>'+t+' '+e+'</h3>')})(jQuery)};function setListDate(t,e){if(t.substring(0,1)==0){t=t.substring(1,2);t=(t==1)?'1'+Drupal.t('<sup>st</sup>'):t;t=(t==2)?'2'+Drupal.t('<sup>nd</sup>'):t;t=(t==3)?'3'+Drupal.t('<sup>rd</sup>'):t}
10else{t=(t==21)?Drupal.t('21<sup>st</sup>'):t;t=(t==22)?'22'+Drupal.t('<sup>nd</sup>'):t;t=(t==23)?'23'+Drupal.t('<sup>rd</sup>'):t;t=(t==31)?Drupal.t('31<sup>st</sup>'):t};t=(t.includes('<sup>'))?t:t+Drupal.t('<sup>th</sup>');(function(r){r('.event-day-selected span').replaceWith('<span>'+Drupal.t('Agenda of')+' '+t+'&nbsp;'+e+'</span>')})(jQuery)};function getYearFromUrl(t){return t.substring(0,4)};function getMonthFromUrl(t){return t.substring(4,6)};function getDayFromUrl(t){return t.substring(6,8)}(function(t){let timer=null;t('#full-calendar').scroll(function(){let width=t(window).width();let left=t(this).scrollLeft();let position=Math.round(left/width);let go=parseInt(position*width);if(timer!==null){clearTimeout(timer)};timer=setTimeout(function(){t('#full-calendar').scrollLeft(go)},100)})})(jQuery);
11/* Source and licensing information for the above line(s) can be found at https://www.citeco.fr/themes/custom/cem/js/calendar.js. */

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.