PageSourceSearch

https://vietlott.mobi/liveVideo.js

js vietlott.mobi collected 2026-10-07 19:51:32 UTC 1,134 bytes, 35 lines download raw bytes

1 // 2. This code loads the IFrame Player API code asynchronously.
2 if(document.getElementById("iframe"))
3    {
4        var isIphone = /(iPhone)/i.test(navigator.userAgent);
5        var isSafari = !!navigator.userAgent.match(/Version\/[\d\.]+.*Safari/);
6    
7        {
8            var tag = document.createElement('script');
9
10            tag.src = "https://www.youtube.com/iframe_api";
11            var firstScriptTag = document.getElementsByTagName('script')[0];
12            firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
13        }
14    }
15 // 3. This function creates an <iframe> (and YouTube player)
16 //    after the API code downloads.
17 var player;
18 function onYouTubeIframeAPIReady() {
19   player = new YT.Player('iframe', {         
20     width:'100%',
21     videoId: 'rPOtBIDIugQ', 
22     playerVars: { 'autoplay': 1, 'playsinline': 1 },
23     events: {
24       'onReady': onPlayerReady
25     }
26   });
27 }
28
29 // 4. The API will call this function when the video player is ready.
30 function onPlayerReady(event) {
31   
32    event.target.mute();
33   event.target.playVideo();
34  // document.getElementById('iframe').style.flex = 1
35 }

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.