1function ExecuteScript(strId) 2{ 3 switch (strId) 4 { 5 case "5ttlyTIL00m": 6 Script1(); 7 break; 8 case "6oSf8MED1TU": 9 Script2(); 10 break; 11 } 12} 13 14function Script1() 15{ 16 var myVar = setInterval(myTimer, 500); 17function myTimer() { 18var player = GetPlayer(); 19var newPos = player.GetVar("Schieberegler1"); 20var newTimerStop = player.GetVar("TimerStop"); 21 22if (newPos < 2024 && newTimerStop !== 1) { 23 var newPos = newPos + 1; 24player.SetVar("Schieberegler1", newPos); 25} 26} 27} 28 29function Script2() 30{ 31 var player = GetPlayer(); 32 33// Bildschirmbreite und -höhe des Geräts auslesen 34var screenWidth = screen.width; 35var screenHeight = screen.height; 36 37// Variable desktop setzen 38var newdesktop = (screenWidth > screenHeight) ? 1 : 0; 39 40// Berücksichtigen, dass das Handy im Querformat gehalten wird 41newmobillandscape = 0; 42 if (window.orientation === 0 || window.orientation === 180) { 43 newmobillandscape = 0; 44 } else if (window.orientation === 90 || window.orientation === -90) { 45 newmobillandscape = 1; 46 } else { 47 // Unbekannte Ausrichtung 48 } 49 50player.SetVar("desktop", newdesktop); 51player.SetVar("mobillandscape", newmobillandscape); 52 53} 54
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.