PageSourceSearch

https://saltire.com/resources/play-pause-button.js

js saltire.com collected 2026-09-24 10:07:59 UTC 299 bytes, 12 lines download raw bytes

1const video = document.querySelector('video');
2const playPauseBtn = document.getElementById("play-pause-button");
3
4function togglePlayPause() {
5  if (video.paused) {
6    video.play();
7    playPauseBtn.textContent = "Pause";
8  } else {
9    video.pause();
10    playPauseBtn.textContent = "Play";
11  }
12}

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.