PageSourceSearch

https://aframe.io/js/docs.js?v=11623a6b

js aframe.io collected 2026-10-01 06:44:23 UTC 999 bytes, 33 lines download raw bytes

1/* global $ */
2(function () {
3
4var anchorHeadingsSelector = 'h2[id], h3[id], h4[id], h5[id], h6[id]';
5
6var content = $('.content');
7
8if (content) {
9  if (window.location.hash) {
10    window.location.hash = window.location.hash.toLowerCase();
11  }
12
13  content.addEventListener('click', function (e) {
14    var el = e.target;
15    if (el.matches && el.matches(anchorHeadingsSelector)) {
16      window.location.hash = '#' + el.id;
17      ga('send', 'pageview', {
18        page: location.pathname + location.search  + location.hash
19      });
20    }
21  });
22
23  // NOTE: Hack because variables doesn't get interpolated correctly in Markdown code blocks.
24  // This is for `/docs/<version>/guide/getting-started.html`
25  if (document.querySelector('#builds')) {
26    var versionEls = document.querySelectorAll('.highlight .code .string');
27    for (var i = 0; i < versionEls.length; ++i) {
28      versionEls[i].textContent = versionEls[i].textContent.replace('\{\{ version \}\}', settings.docsVersion);
29    }
30  }
31}
32
33})();

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.