PageSourceSearch

https://www.trade.gov/themes/custom/ita/components/04-layouts/video/js/video_enabler.js?tlu5k9

js trade.gov collected 2026-09-24 06:44:22 UTC 692 bytes, 19 lines download raw bytes

1// eslint-disable-next-line strict
2(function($) {
3  $(document).ready(function() {
4    $('.embedded-video > iframe').each(function(i, obj) {
5      var origSrc = $(this).attr('src');
6      var toAdd = 'enablejsapi';
7      var max = 'max_width';
8      var indxPos = origSrc.indexOf(max);
9      // console.log(indxPos);
10      if (origSrc.indexOf(toAdd) < 0) {
11        console.log('SRC ' + i + ' Good! The src url has NO toAdd...');
12      }
13      var newSrc = origSrc.slice(0, indxPos) + encodeURIComponent('?' + toAdd + '=1') + '&' + origSrc.slice(indxPos);
14      $(this).attr('src', newSrc);
15      console.log('This video src is updated as: ' + $(this).attr('src'));
16    });
17  });
18
19})(jQuery);

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.