PageSourceSearch

https://www.mesaartscenter.com/themes/custom/mesaartscenter/swposh/js/js-custom.js

js mesaartscenter.com collected 2026-09-24 19:26:31 UTC 4,863 bytes, 148 lines download raw bytes

1$(document).ready(function() {
2    $('.icons-menu, .icons-menu a').removeAttr('role');
3});
4$(document).ready(function () {
5    if ($('body').hasClass('page-1')) {
6
7        $('img').each(function () {
8            var $img = $(this);
9            $img.on('load', function () {
10                if (!$img.attr('width')) {
11                    $img.attr('width', this.naturalWidth);
12                }
13                if (!$img.attr('height')) {
14                    $img.attr('height', this.naturalHeight);
15                }
16            });
17            if (this.complete) {
18                $img.trigger('load');
19            }
20        });
21    }
22});
23$(document).ready(function () {
24    var $moveBtns = $('.movebtns');
25    var $target = $('.page-11 .heading-sec-left');
26
27    if ($moveBtns.length && $target.length) {
28        $moveBtns.appendTo($target);
29    }
30});
31(function () {
32  const pageTitle = document.title.trim();
33  let counter = 1;
34  function processImages(scope = document) {
35    const images = scope.querySelectorAll("img");
36    images.forEach(img => {
37      if (!img.hasAttribute("alt") || img.getAttribute("alt").trim() === "") {
38        img.setAttribute("alt", pageTitle + " - visual " + counter);
39        counter++;
40      }
41    });
42  }
43  // run once for existing images
44  processImages();
45  // watch for dynamically added images
46  const observer = new MutationObserver(mutations => {
47    mutations.forEach(mutation => {
48      mutation.addedNodes.forEach(node => {
49        if (node.nodeType !== 1) return;
50        if (node.tagName === "IMG") {
51          processImages(node.parentNode);
52        } else {
53          processImages(node);
54        }
55      });
56    });
57  });
58  observer.observe(document.body, {
59    childList: true,
60    subtree: true
61  });
62})();
63document.getElementById("goog-gt-votingForm")?.setAttribute("aria-hidden","true");
64function fixGoogleTranslateLabels() {
65
66  const fields = [
67    { id: "goog-gt-votingInputSrcLang", label: "Source language" },
68    { id: "goog-gt-votingInputTrgLang", label: "Target language" },
69    { id: "goog-gt-votingInputSrcText", label: "Source text" },
70    { id: "goog-gt-votingInputTrgText", label: "Translated text" },
71    { id: "goog-gt-votingInputVote", label: "Translation vote" }
72  ];
73
74  fields.forEach(field => {
75    const input = document.getElementById(field.id);
76    if (input && !input.hasAttribute("aria-label")) {
77      input.setAttribute("aria-label", field.label);
78    }
79  });
80
81}
82
83const observer = new MutationObserver(() => {
84  if (document.getElementById("goog-gt-votingForm")) {
85    fixGoogleTranslateLabels();
86  }
87});
88
89observer.observe(document.body, {
90  childList: true,
91  subtree: true
92});
93
94
95
96  // season button update start
97
98$(document).ready(function () {
99    if (window.location.pathname.includes('/season-package/4/')) {
100        $('.season-package-detail .class-detail-info .btn-primary')
101            .text('Subscriptions and renewals on sale now');
102    }
103if (window.location.pathname.includes('/season-package/2/')) {
104        $('.season-package-detail .class-detail-info .btn-primary')
105            .text('Subscriptions and renewals on sale now');
106    }
107if (window.location.pathname.includes('/season-package/3/')) {
108        $('.season-package-detail .class-detail-info .btn-primary')
109            .text('Subscriptions and renewals on sale now');
110    }
111});
112$(document).ready(function () {
113    $('body.page-211 #eventslist .secondary-page:nth-child(1) .class-detail-info a.btn-primary')
114        .filter(function () {
115            return $(this).text().trim() === 'Subscribe Here';
116        })
117        .text('Subscriptions and renewals on sale now');
118});
119$(document).ready(function () {
120    $('body.page-211 #eventslist .secondary-page:nth-child(2) .class-detail-info a.btn-primary')
121        .filter(function () {
122            return $(this).text().trim() === 'Subscribe Here';
123        })
124        .text('Subscriptions and renewals on sale now');
125});
126$(document).ready(function () {
127    $('body.page-211 #eventslist .secondary-page:nth-child(3) .class-detail-info a.btn-primary')
128        .filter(function () {
129            return $(this).text().trim() === 'Subscribe Here';
130        })
131        .text('Subscriptions and renewals on sale now');
132});
133  // season button update end
134
135
136document.addEventListener("DOMContentLoaded", function () {
137    const observer = new MutationObserver(mutations => {
138        mutations.forEach(mutation => {
139            mutation.addedNodes.forEach(node => {
140                if (node.nodeType === 1 && node.classList.contains('tns-nav')) {
141                    node.setAttribute('role', 'group');
142                }
143            });
144        });
145    });
146
147    observer.observe(document.body, { childList: true, subtree: true });
148});

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.