PageSourceSearch

https://visitnamibia.com.na/wp-content/themes/equadio/skins/default/skin.js

js visitnamibia.com.na collected 2026-10-02 04:43:31 UTC 2,727 bytes, 62 lines download raw bytes

1/* global jQuery, EQUADIO_STORAGE */
2
3(function() {
4	"use strict";
5
6	// Init skin-specific actions on first run
7	// Attention! Don't forget to add the class "inited" and check it to prevent re-initialize the elements
8	jQuery( document ).on(
9		'action.ready_equadio', function() {
10
11            // MailChimp - ID
12            //------------------
13            if (jQuery('.mc4wp-form-fields').length > 0) {
14                var count_mc4wp = 1;
15                jQuery('.mc4wp-form-fields').each(
16                    function () {
17                        jQuery(this).find('input[type="checkbox"]').each(
18                            function () {
19                                var id = jQuery(this).attr('id');
20                                if (id) {
21                                }
22                                else {
23                                    id = 'mc4wp';
24                                }
25                                jQuery(this).attr('id', id + '-' + count_mc4wp);
26                                jQuery(this).next('label').attr('for', id + '-' + count_mc4wp);
27                                count_mc4wp++;
28                            });
29                    });
30            }
31
32            // GDPR on click add class checked to label
33            if (jQuery('#wpgdprc').length > 0) {
34                var label = jQuery('.wpgdprc-checkbox label');
35                if (jQuery('#wpgdprc').attr("checked") == 'checked') {
36                    label.toggleClass('checked');
37                }
38                jQuery('#wpgdprc').on('click', function () {
39                    if (jQuery('#wpgdprc').attr("checked") == 'checked') {
40                        label.addClass('checked');
41                    } else {
42                        label.removeClass('checked');
43                    }
44                });
45            }
46
47            //Fix Events Calendar (Remove empty tag)
48            if ( jQuery( '.tribe-events-view.tribe-events-view--day,.tribe-events-view.tribe-events-view--list,.tribe-events-view.tribe-events-view--month' ).length > 0 ) {
49                var check_empty_day = function() {
50                    setTimeout( function() {
51                        if (jQuery('.tribe-events-calendar-day').length > 0 && jQuery('.tribe-events-calendar-day').html().trim() === '') {
52                            jQuery('.tribe-events-calendar-day').remove();
53                        }
54                        jQuery('.tribe-events-view.tribe-events-view--day,.tribe-events-view.tribe-events-view--list,.tribe-events-view.tribe-events-view--month').on('beforeAjaxSuccess.tribeEvents', check_empty_day );
55                    }, 1 );
56                };
57                check_empty_day();
58            }
59		}
60	);
61
62})();

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.