PageSourceSearch

https://tolknews.ru/lib/fotorama/rama.js?rev=1789109874

js tolknews.ru collected 2026-09-24 18:48:53 UTC 1,874 bytes, 51 lines download raw bytes

1var Rama = {
2
3	ver: '1',
4
5
6	init: function () {
7		this.initRama();
8	},
9
10	initRama: function() {
11		$rama = $('.rama');
12		if ($rama.length) {
13			$rama.on('fotorama:ready ' +           // Fotorama is fully ready
14				'fotorama:show ' +            // Start of transition to the new frame
15				'fotorama:showend ' +         // End of the show transition
16				'fotorama:load ' +            // Stage image of some frame is loaded
17				'fotorama:error ' +           // Stage image of some frame is broken
18				'fotorama:startautoplay ' +   // Slideshow is started
19				'fotorama:stopautoplay ' +    // Slideshow is stopped
20				'fotorama:fullscreenenter ' + // Fotorama is fullscreened
21				'fotorama:fullscreenexit ' +  // Fotorama is unfullscreened
22				'fotorama:loadvideo ' +       // Video iframe is loaded
23				'fotorama:unloadvideo',       // Video iframe is removed
24				function (e, fotorama, extra) {
25					//console.log('active frame', fotorama.activeFrame);
26					//console.log('additional data', extra);
27					console.log(e.type);
28					if (e.type === 'fotorama:showend' && extra.user === true) {
29						console.log('additional data', extra);
30						var user_vars = { 'fotorama': { 'slide': { 'всего': 1} } };
31						Tolknews.hit(true, user_vars);
32						YM.registerGallery();
33					} else if (e.type === 'fotorama:show') {
34						let $caption = $('.inject_gallery_fotorama[data-idgallery=' + fotorama.activeFrame.idgallery + '] > .legend');
35						$caption.find('.item_number').text(fotorama.activeFrame.currposition + '/' + fotorama.activeFrame.total);
36						$caption.find('.title').text(fotorama.activeFrame.title);
37						$caption.find('.origin').text(fotorama.activeFrame.origin);
38						//Tolknews.hit();
39					} else if (e.type === 'fotorama:ready') {
40						$('.bb_gallery .podpis').removeClass('d-none');
41					}
42				}
43			).fotorama();
44		}
45
46	}
47};
48
49$(function () {
50	Rama.init();
51});

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.