PageSourceSearch

https://www.pesni.net/assets/controllers/search_click_controller-a4c4932b.js

js pesni.net collected 2026-09-29 17:47:46 UTC 542 bytes, 16 lines download raw bytes

1import { Controller } from "@hotwired/stimulus"
2
3// Контроллер для отслеживания кликов по песням в результатах поиска
4export default class extends Controller {
5  static values = { songId: Number }
6
7  track(event) {
8    const songId = event.currentTarget.dataset.searchClickSongIdValue
9    if (songId) {
10      fetch(`/search_clicks/${songId}`, {
11        method: "POST",
12        headers: { "X-CSRF-Token": document.querySelector("meta[name='csrf-token']").content }
13      })
14    }
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.