PageSourceSearch

https://moppyart.netlify.app/assets/js/main.js

js moppyart.netlify.app collected 2026-10-03 11:10:39 UTC 786 bytes, 32 lines download raw bytes

1window.onGatsbyRouteUpdate = function() {
2/**
3 * Main JS file for theme behaviours
4 */
5
6// Responsive video embeds
7var videoEmbeds = [
8  'iframe[src*="youtube.com"]',
9  'iframe[src*="vimeo.com"]'
10];
11reframe(videoEmbeds.join(','));
12
13// Mobile menu
14var menuToggle = document.querySelectorAll('.menu-toggle');
15if (menuToggle) {
16  for (var i = 0; i < menuToggle.length; i++) {
17    menuToggle[i].addEventListener('click', function (e) {
18      document.body.classList.toggle('menu--opened');
19      e.preventDefault();
20    }, false);
21  }
22
23  document.body.classList.remove('menu--opened');
24
25  window.addEventListener('resize', function () {
26    if (menuToggle[0].offsetParent === null) {
27      document.body.classList.remove('menu--opened');
28    }
29  }, true);
30}
31
32};

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.