PageSourceSearch

https://www.hiltonheadisland.org/themes/custom/hhi/assets/js/video.js?tlgjg8

js hiltonheadisland.org collected 2026-09-24 19:12:48 UTC 1,179 bytes, 38 lines download raw bytes

1(function ($, Drupal) {
2  'use strict';
3
4  Drupal.behaviors.videoMisc = {
5    attach: function (context, settings) {
6      $(document).ready(function() {
7        if ($('.video.full').length) {
8          $('.video.full').each(function() {
9            $(this).find('figure').once().on('click', function() {
10              $(this).hide().parent().find('video').trigger('play');
11            });
12          });
13        }
14      });
15    }
16  };
17
18  Drupal.behaviors.playPauseBtn = {
19    attach: function(context, settings) {
20      once('playPauseBtn', '.play-pause-btn', context).forEach( function(element) {
21        element.addEventListener('click', function(e) {
22          var clickedBtn = e.target;
23          var correspondingVideoElem = clickedBtn.previousElementSibling;
24          if( correspondingVideoElem.paused ){
25            correspondingVideoElem.play();
26            clickedBtn.classList.add('pause');
27            clickedBtn.classList.remove('play');
28          } else {
29              correspondingVideoElem.pause();
30              clickedBtn.classList.add('play');
31              clickedBtn.classList.remove('pause');
32          }
33        })
34      })
35    }
36  }
37
38})(jQuery, Drupal);

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.