https://staticcyl.euronews.com/wp-content/themes/new-euronews/assets/js/add-to-cal.js?ver=1655303998
1(function($) { 2 3 var $btn = $('.js-add-to-cal'); 4 if (!$btn.length) { 5 return; 6 } 7 8 var event_start = $btn.data('start'), 9 event_end = $btn.data('end'), 10 // event_timezone = $btn.data('timezone'), 11 event_title = $btn.data('title'), 12 event_description = $btn.data('description'), 13 event_location = $btn.data('location'); 14 15 var addToCalInstance = createCalendar({ 16 options: {}, 17 data: { 18 // Event title 19 title: event_title, 20 21 // Event start date 22 start: new Date(event_start), 23 24 // Event duration (IN MINUTES) 25 // duration: 120, 26 27 // You can also choose to set an end time 28 // If an end time is set, this will take precedence over duration 29 end: new Date(event_end), 30 31 // Event Address 32 address: event_location, 33 34 // Event Description 35 description: event_description, 36 } 37 }); 38 39 $(addToCalInstance).insertAfter($btn); 40 var $addToCalButton = $('.add-to-calendar'), 41 $addToCalLabel = $addToCalButton.find('label'); 42 43 // Replace data from the initial button, populate the new with old data and remove the initial button 44 $addToCalLabel.addClass('btn-text-calendar cursor-pointer').html($btn.html()); 45 $btn.remove(); 46 47 // Center the view when the button is clicked 48 jQuery(document).on('click', '.add-to-calendar', function(ev) { 49 50 var $btn = $(ev.currentTarget); 51 $btn[0].scrollIntoView({ block: 'center' }); 52 53 }); 54 55})(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.