PageSourceSearch

https://sathmarerschwaben.de/modules/mod_iccalendar/js/jQuery.highlightToday.js?5dde0e

js sathmarerschwaben.de collected 2026-10-02 19:51:26 UTC 1,177 bytes, 33 lines download raw bytes

1(function ($) {
2
3	$.fn.highlightToday = function(option) {
4		var d = new Date(),
5			day = '0' + d.getDate(),
6			month = '0' + (d.getMonth() + 1),
7			year = d.getFullYear(),
8			client_date = year + '-' + month.slice(-2) + '-' + day.slice(-2),
9			$today = $('.style_Today', this),
10			cal_date = $today.attr('data-cal-date');//cal_date='2014-01-07'; // Test data
11		if (typeof cal_date === 'undefined' || client_date !== cal_date) {
12			// Calendar date not in the displayed month - or client date is different
13			$today.removeClass('style_Today').addClass('style_Day');
14			$('.style_Day[data-cal-date="' + client_date + '"]', this).addClass('style_Today').removeClass('style_Day');
15			// Check whether the correct month is loaded if today is required to be shown
16			if (option === 'show_today') {
17				if ($('.style_Today', this).length === 0) {
18					// The current date is not shown (because of offset between server and client date)
19					if (client_date > cal_date) {
20						// Load next month
21						$('.nextic', this).click();
22					} else {
23						// Load previous month
24						$('.backic', this).click();
25					}
26				}
27			}
28		}
29		// Support chaining
30		return this;
31	};
32
33}(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.