PageSourceSearch

https://unhabitat.org/themes/custom/habitat/js/executive_board.js?v=9.5.11

js unhabitat.org collected 2026-09-24 08:34:56 UTC 1,709 bytes, 63 lines download raw bytes

1(function($, Drupal) {
2
3  'use strict';
4
5  Drupal.behaviors.executive_board = {
6    attach: function(context, settings) {
7      $(document).ready(function(){
8
9        //get our hash from the url
10        var targetTab = 0;
11
12        $(".js-tabs").each(function (index) {
13
14          if (window.location.hash) {
15            var hash = window.location.hash.substring(1);
16            $(this).find('.js-tabs-panel').each(function (i) {
17              if ($(this).attr('id') === hash) {
18                targetTab = i;
19              }
20            });
21            new AccordionTabs(this, {
22              breakpoint: 640,
23              tabsAllowed: true,
24              selectedTab: targetTab,
25              startCollapsed: false
26            });
27          }
28
29        });
30
31        const icons_top = '.a11y-paragraphs-tabs__section-container';
32        const page = $("html, body");
33        page.on("click",'.tabs-trigger',function(evt){
34
35          evt.preventDefault();
36
37          var href = $(this).attr('href');
38
39          $(href).removeClass('is-hidden');
40
41          $(href).addClass('is-open');
42
43          if (window.location.hash) {
44            history.replaceState({}, document.title, window.location.href.split('#')[0]);
45          }
46            $(document).ready(function(){
47              page.on("scroll mousedown wheel DOMMouseScroll mousewheel keyup touchmove", function(){
48                  page.stop();
49                });
50
51              page.animate({ scrollTop: $(icons_top).offset().top }, 500,  function(){
52                  page.off("scroll mousedown wheel DOMMouseScroll mousewheel keyup touchmove");
53                });
54
55              });
56
57            });
58
59      });
60      
61    }
62  };
63})(jQuery, Drupal);

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.