PageSourceSearch

https://teslaweld.com/catalog/view/theme/fastor/js/youtube_script.js

js teslaweld.com collected 2026-10-09 00:20:55 UTC 1,076 bytes, 39 lines download raw bytes

1function youTubes_makeDynamic () {
2
3    var $ytIframes = $('.margin__xxx iframe[ data-src*="youtube.com"]')
4
5    $ytIframes.each(function (i, e) {
6
7        var $ytFrame = $(e)
8
9        var ytKey
10        var tmp = $ytFrame.attr('data-src').split(/\//)
11        tmp = tmp[tmp.length - 1]
12        tmp = tmp.split('?')
13        ytKey = tmp[0]
14
15        var $ytLoader = $('<div class="ytLoader embed-responsive-item">')
16
17        $ytLoader.append($('<img class="youtube-preloader_image" data-echo="https://i.ytimg.com/vi/' + ytKey + '/hqdefault.jpg" alt="">'))
18
19        $ytLoader.append($('<span class="playBtn">'))
20
21        $ytLoader.data('$ytFrame', $ytFrame)
22
23        $ytFrame.replaceWith($ytLoader)
24
25        $ytLoader.click(function () {
26
27            var $ytFrame = $ytLoader.data('$ytFrame')
28
29            $ytFrame.attr('src', $ytFrame.attr('data-src') + '?enablejsapi=1&origin=https%3A%2F%2Fteslaweld.com&autoplay=1')
30
31            $ytLoader.replaceWith($ytFrame)
32
33        })
34
35    })
36
37}
38
39$(document).ready(function () {youTubes_makeDynamic()})

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.