PageSourceSearch

https://photerra.com/assets/about.js

js photerra.com collected 2026-10-02 00:32:25 UTC 801 bytes, 16 lines download raw bytes

1// About page — hydrates the live total-spots stat. Extracted from about.html
2// so the site needs no 'unsafe-inline' in script-src (see _headers).
3// Hydrate the "Where we are today" total-spots stat from the live API
4// so the about page reflects current scale instead of a stale floor.
5// Mirrors the home hero hookup; fallback in HTML is a never-a-lie floor.
6document.addEventListener('DOMContentLoaded', function () {
7  var el = document.getElementById('stat-total-spots');
8  if (!el || !window.PhoterraAPI) return;
9  window.PhoterraAPI.fetchPublicStats().then(function (stats) {
10    if (stats && stats.totalSpots) {
11      el.textContent = window.PhoterraAPI.roundToTenPlus(stats.totalSpots);
12    }
13  }).catch(function (err) {
14    console.warn('[Photerra] public stats failed', err);
15  });
16});

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.