PageSourceSearch

https://royalfarms.com/wp-content/themes/royalfarms/js/scripts.js

js royalfarms.com collected 2026-10-03 22:31:11 UTC 1,408 bytes, 34 lines download raw bytes

1function autoPlayVideoModal() {
2  var triggerOpen = jQuery("body").find('[data-tag-video]');
3  triggerOpen.click(function() {
4    var theModal = jQuery(this).data("bs-target"),
5    videoSRC = jQuery(this).attr("data-tag-video"),
6    videoSRCauto = videoSRC + "?autoplay=1";
7    jQuery(theModal + ' iframe').attr('src', videoSRCauto);
8    jQuery(theModal + ' button.btn-close').click(function() {
9      jQuery(theModal + ' iframe').attr('src', videoSRC);
10    });
11  });
12}
13
14jQuery(document).ready(function() {
15	// Animated Hamburger Menu
16  jQuery('.hamburger-btn').click(function() {
17      jQuery('.main-navigation').toggleClass('open');
18      jQuery('.site-header').toggleClass('nav-open');
19	jQuery(this).toggleClass('open');
20	jQuery('html, body').toggleClass('noscroll');
21  });        
22    
23  //video modal player
24  autoPlayVideoModal();            
25});
26
27var popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'))
28var popoverList = popoverTriggerList.map(function (popoverTriggerEl) {
29  return new bootstrap.Popover(popoverTriggerEl)
30})
31
32jQuery('.menu-item-has-children a').addClass('dropdown-toggle').attr('data-bs-toggle','dropdown').attr('aria-expanded','false');
33jQuery('.menu-item-has-children .sub-menu').addClass('dropdown-menu');
34jQuery('.menu-item-has-children .sub-menu a').removeClass('dropdown-toggle').removeAttr('data-bs-toggle').removeAttr('aria-expanded');

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.