PageSourceSearch

https://www.parc-naturel-chevreuse.fr/themes/custom/chevreuse/js/views/HeaderView.js?tltzev

js parc-naturel-chevreuse.fr collected 2026-09-24 09:26:52 UTC 1,472 bytes, 42 lines download raw bytes

1var HeaderView = Backbone.View.extend({
2  initialize: function (tag) {
3    this.$tag = $(tag);
4    var $burger = this.$tag.find('.burger');
5    var $blockMenus = this.$tag.find('.block-block-groupmenus');
6    var $blockPrimary = this.$tag.find('.block-block-groupprimary');
7    var $blockBreadcrumb = this.$tag.find('.block-system-breadcrumb-block');
8
9    var self = this;
10    $burger.on('click', function () {
11      jQuery('body').toggleClass('no-scroll')
12      $blockMenus.toggleClass('active');
13      $blockPrimary.toggleClass('active');
14      $burger.find('.box').toggleClass('active');
15      $burger.find('.box').toggleClass('not-active');
16    });
17    $blockPrimary.find('nav').each(function (index, element) {
18      var $element = jQuery(element);
19      $element.find('h2').click(function () {
20
21        var hasClass = false;
22        if ($element.hasClass('active')) {
23          hasClass = true;
24        }
25        $blockPrimary.find('nav').removeClass('active');
26        $blockBreadcrumb.removeClass('active');
27        if (!hasClass) {
28          $element.addClass('active');
29          $blockBreadcrumb.addClass('active');
30        }
31      });
32    });
33
34    if (jQuery(window).width() >= 922) {
35      this.$tag.find('.block-system-branding-block img').attr('src', '/themes/custom/chevreuse/logo_desktop.svg');
36      var self = this;
37      setTimeout(function () {
38        self.$tag.find('.block-system-branding-block img').css('opacity', 1)
39      }, 20);
40    }
41  },
42});

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.