PageSourceSearch

https://ngo.by/sites/all/themes/ngo/js/scripts.js

js ngo.by collected 2026-09-24 22:19:44 UTC 1,528 bytes, 45 lines download raw bytes

1(function ($, Drupal) {
2
3  Drupal.behaviors.STARTER = {
4    attach: function(context, settings) {
5    $('.language-switcher-locale-url li a').bind('click', function() {
6      document.cookie = "ngo_language="+ $(this).attr('xml:lang') +"; path=/; expires=31536000";
7    });
8		$('.side-nav li:has("ul")').addClass('hasChildren'); // add class to li in ul child
9		$('.side-nav li:has("ul")').click(function () {
10		  $(this).toggleClass("active") // add active class to clicked menu item
11		  $(this).children("ul").slideToggle(); //toggle submenu
12		}); // accordion menu
13
14		$('ul.side-nav > li').each(function (index) {
15		  $(this).addClass('menu-item item-' + index);
16		});
17
18		var acc = document.getElementsByClassName("accordion");
19
20		$("#menu-toggle").click(function(e) {
21		  e.preventDefault();
22		  $("#page-content-wrapper").toggleClass("toggled");
23		  $("#sidebar-wrapper").toggleClass("toggled");
24		  $(".sidebar-nav").toggleClass("toggled");
25		  $("#wrapper").toggleClass("toggled");
26		});
27
28		for (var i = 0; i < acc.length; i++) {
29		  acc[i].onclick = function () {
30			this.classList.toggle("active");
31			this.nextElementSibling.classList.toggle("show");
32		  }
33		}; // simple accordion
34
35		$('.header-menu .menu a').addClass('button');
36		$('.footer .menu').addClass('block-grid-small-2 block-medium-5 block-grid-large-2');
37    }
38  };
39})(jQuery, Drupal);
40jQuery(document).foundation({
41  equalizer : {
42    // Specify if Equalizer should make elements equal height once they become stacked.
43    equalize_on_stack: true
44  }
45});

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.