PageSourceSearch

https://holdkatlan.hu/res/js/slideshow.js?rnd=83

js holdkatlan.hu collected 2026-10-02 07:32:52 UTC 1,456 bytes, 58 lines download raw bytes

1var __slideshow_on = true;
2var __slideshow_animate_after = 0;
3var __slideshow_index = 0;
4
5function __slideshow_start() {
6	__slideshow_on = true;
7	__slideshow_animate_after = new Date().getTime() + 2000;
8	setTimeout(__slideshow_run, 500);
9}
10
11function __slideshow_move(fromIndex, toIndex) {
12	var leftFrom = 299 - (fromIndex + 2) * (400);
13	var leftTo = 299 - (toIndex + 2) * (400);
14	$("#folyoirat_slide_container").css({ "left": leftFrom + "px" }).animate({"left": leftTo + "px"}, "slow");
15}
16
17function __slideshow_right() {
18	var now = new Date().getTime();
19	__slideshow_animate_after = now + 10000;
20	__slideshow_index = (__slideshow_index + 1) % 10;
21	__slideshow_move(__slideshow_index - 1, __slideshow_index);
22}
23
24function __slideshow_left() {
25	var now = new Date().getTime();
26	__slideshow_animate_after = now + 10000;
27	__slideshow_index = (__slideshow_index + 9) % 10;
28	__slideshow_move(__slideshow_index + 1, __slideshow_index);
29}
30
31function __slideshow_stop() {
32	__slideshow_on = false;
33}
34
35function __slideshow_run() {
36	if(!__slideshow_on) {
37		return;
38	}
39
40	setTimeout(__slideshow_run, 500);
41
42	var now = new Date().getTime();
43	if(__slideshow_animate_after > now) {
44		// console.log("Running later.");
45		return;
46	}
47
48	// console.log("Running now.");
49	__slideshow_animate_after = now + 2000;
50	
51	// After this: Core logic.
52	
53	__slideshow_index = (__slideshow_index + 1) % 10;
54	__slideshow_move(__slideshow_index - 1, __slideshow_index);
55	
56}
57
58__slideshow_start();

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.