PageSourceSearch

https://ritual.ru/local/templates/ritual/js/autoload/autoplay.js

js ritual.ru collected 2026-10-01 12:29:47 UTC 901 bytes, 29 lines download raw bytes

1/* var tag = document.createElement('script');
2
3tag.src = "https://www.youtube.com/iframe_api";
4var firstScriptTag = document.getElementsByTagName('script')[0];
5firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
6
7function onYouTubeIframeAPIReady() {
8	$(function(){
9		var videos = $('.jsAutoplay'),
10			players = [],
11			playingID = null;
12		for (var i = 0; i < videos.length; i++) {
13			var currentIframeID = videos[i].id;
14			players[currentIframeID] = new YT.Player(currentIframeID);
15		
16			videos[i].onmouseover = function(e) {
17				var currentHoveredElement = e.target;
18				if(!$(currentHoveredElement).hasClass('jsAutoplay_activated')){
19					$(currentHoveredElement).addClass('jsAutoplay_activated');
20					if (playingID){
21						players[playingID].pauseVideo();
22					}					
23					players[currentHoveredElement.id].playVideo();
24					playingID = currentHoveredElement.id;
25				}
26			};
27		}
28	});
29} */

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.