Files
2022-11-04 13:24:24 +02:00

1 line
1.2 KiB
JavaScript
Executable File

!function(e){function o(e,o){return e.indexOf(o,e.length-o.length)!==-1}var n,r,i,t,a=e("#webinar-banner"),p=a.find("a"),d="data-gtm-event",l="KendoUI2021R1",s=Date.UTC(2021,0,29),c=!0,v={"/kendo-demos/":"yellow-strip, KendoUI2018R1ExportWebinar, kendo-overview-page","kendo-demos/":"yellow-strip, KendoUI2018R1ExportWebinar, kendo-demos-page","/kendo-ui/":"yellow-strip, KendoUI2018R1ExportWebinar, kendo-overview-page","/aspnet-mvc/":"yellow-strip, KendoUI2018R1ExportWebinar, mvc-overview-page","/aspnet-core/":"yellow-strip, KendoUI2018R1ExportWebinar, core-overview-page","/php-ui/":"yellow-strip, KendoUI2018R1ExportWebinar, php-overview-page","/jsp-ui/":"yellow-strip, KendoUI2018R1ExportWebinar, jsp-overview-page"};for(n in v)if(r="/kendo-ui/"===n||"/kendo-demos/"===n||"/php-ui/"===n||"/jsp-ui/"===n||"/aspnet-mvc/"===n||"/aspnet-core/"===n,i=location.href.indexOf(n)>0,t=o(location.href,n),i&&(r&&t||!r&&!t)){try{c=(void 0===s||s>(new Date).getTime())&&"1"!==localStorage.getItem(l)}catch(g){}c&&(p.attr(d,v[n]),a.css("display","flex").find(".close").on("click",function(){try{return localStorage.setItem(l,1),a.animate({height:0},function(){a.hide(),a.remove(),e(window).trigger("resize")}),!0}catch(o){}}));break}}($);