PageSourceSearch

https://iiaqatar.org/wp-content/plugins/booster-plus-for-woocommerce/includes/js/wcj-weekpicker.js?ver=7.5.0

js iiaqatar.org collected 2026-10-08 05:35:11 UTC 2,142 bytes, 44 lines download raw bytes

1/**
2 * wcj-weekpicker.
3 *
4 * version 5.3.6
5 */
6jQuery(document).ready(function() {
7    jQuery("input[display='week']").each(function() {
8        jQuery(this).datepicker({
9            dateFormat: jQuery(this).attr("dateformat"),
10            minDate: jQuery(this).attr("mindate"),
11            maxDate: jQuery(this).attr("maxdate"),
12            firstDay: jQuery(this).attr("firstday"),
13            changeYear: jQuery(this).attr("changeyear"),
14            yearRange: jQuery(this).attr("yearrange"),
15            showOtherMonths: true,
16            selectOtherMonths: true,
17            changeMonth: true,
18            showWeek: true,
19            beforeShow: function(dateText, inst) {
20                // for week highighting
21                jQuery(".ui-datepicker-calendar tbody").on("mousemove", "tr", function() {
22                    jQuery(this).find("td a").addClass("ui-state-hover");
23                    jQuery(this).find(".ui-datepicker-week-col").addClass("ui-state-hover");
24                });
25                jQuery(".ui-datepicker-calendar tbody").on("mouseleave", "tr", function() {
26                    jQuery(this).find("td a").removeClass("ui-state-hover");
27                    jQuery(this).find(".ui-datepicker-week-col").removeClass("ui-state-hover");
28                });
29            },
30            onClose: function(dateText, inst) {
31                var date = jQuery(this).datepicker("getDate");
32                if (date != null) {
33                    var dateFormat = inst.settings.dateFormat || jQuery(this).datepicker._defaults.dateFormat;
34                    var endDate = new Date(date.getFullYear(), date.getMonth(), date.getDate() - date.getDay() + 6);
35                    var endDateFormatted = jQuery.datepicker.formatDate(dateFormat, endDate, inst.settings);
36                    jQuery(this).val(dateText + " - " + endDateFormatted);
37                }
38                // disable live listeners so they dont impact other instances
39                jQuery('.ui-datepicker-calendar tbody tr').off('mousemove');
40                jQuery('.ui-datepicker-calendar tbody tr').off('mouseleave');
41            }
42        });
43    });
44});

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.