PageSourceSearch

https://eg-gm.jp/js/audio.js

js eg-gm.jp collected 2026-09-24 23:36:23 UTC 560 bytes, 17 lines download raw bytes

1const audioButtons = document.querySelectorAll('.js-play-audio');
2audioButtons.forEach((button) => {
3  const audioFile = document.getElementById(`${button.dataset.audio}`)
4  const originalButtonText = button.textContent
5  button.addEventListener('click', () => {
6    if (audioFile.paused) {
7      audioFile.play();
8      button.textContent = '音声を止める';
9    } else {
10      audioFile.pause();
11      button.textContent = originalButtonText;
12    }
13  });
14  audioFile.addEventListener('ended', () => {
15    button.textContent = originalButtonText;
16  });
17})

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.