PageSourceSearch

https://isomorphic-git.org/js/codetabs.js

js isomorphic-git.org collected 2026-10-02 02:27:05 UTC 1,023 bytes, 31 lines download raw bytes

1/**
2 * Copyright (c) 2017-present, Facebook, Inc.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8// Turn off ESLint for this file because it's sent down to users as-is.
9/* eslint-disable */
10window.addEventListener('load', function() {
11  // add event listener for all tab
12  document.querySelectorAll('.nav-link').forEach(function(el) {
13    el.addEventListener('click', function(e) {
14      const groupId = e.target.getAttribute('data-group');
15      document
16        .querySelectorAll(`.nav-link[data-group=${groupId}]`)
17        .forEach(function(el) {
18          el.classList.remove('active');
19        });
20      document
21        .querySelectorAll(`.tab-pane[data-group=${groupId}]`)
22        .forEach(function(el) {
23          el.classList.remove('active');
24        });
25      e.target.classList.add('active');
26      document
27        .querySelector(`#${e.target.getAttribute('data-tab')}`)
28        .classList.add('active');
29    });
30  });
31});

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.