PageSourceSearch

https://www.tiforeggina.it/wp-content/plugins/sportspress-pro/incl…/sportspress-scoreboard.js?ver=1790301810

js tiforeggina.it collected 2026-09-25 02:04:08 UTC 2,751 bytes, 78 lines download raw bytes

1jQuery(document).ready(function($){
2	$(".sp-scoreboard-content").each(function() {
3		$parent = $(this);
4		$el = $parent.find(".sp-scoreboard");
5		if ( $el.outerWidth() <= $parent.innerWidth() ) {
6			$(this).closest(".sp-scoreboard-wrapper").find(".sp-scoreboard-next").addClass("sp-scoreboard-nav-disabled");
7		}
8	});
9	
10	$(".sp-scoreboard-nav").click(function() {
11		step = $(this).data("sp-step");
12		if ( ! step ) step = 180;
13		$wrapper = $(this).closest(".sp-scoreboard-wrapper");
14		$parent = $(this).siblings(".sp-scoreboard-content");
15		$el = $parent.find(".sp-scoreboard");
16		if ( $el.is(":animated") ) return false;
17		
18		if ("rtl" === $("html").attr("dir")) {
19			left = $el.position().left;
20			
21			if ( $(this).hasClass("sp-scoreboard-prev") ) {
22				overflow = $el.outerWidth() - $parent.innerWidth() + left;
23				$(this).closest(".sp-scoreboard-wrapper").find(".sp-scoreboard-next").removeClass("sp-scoreboard-nav-disabled");
24				if ( overflow <= step + $(this).outerWidth() ) {
25					$(this).closest(".sp-scoreboard-wrapper").find(".sp-scoreboard-prev").addClass("sp-scoreboard-nav-disabled");
26					$el.animate({
27						right : 0
28					});
29				} else {
30					$el.animate({
31						right : "+=" + step
32					});
33				}
34			} else {
35				$(this).closest(".sp-scoreboard-wrapper").find(".sp-scoreboard-prev").removeClass("sp-scoreboard-nav-disabled");
36				if ( left >= $(this).outerWidth() - step ) {
37					$(this).closest(".sp-scoreboard-wrapper").find(".sp-scoreboard-next").addClass("sp-scoreboard-nav-disabled");
38					$el.animate({
39						right : $parent.innerWidth() - $el.outerWidth()
40					});
41				} else {
42					$el.animate({
43						right : "-=" + step
44					});
45				}
46			}
47		} else {
48			left = $el.position().left;
49			if ( $(this).hasClass("sp-scoreboard-prev") ) {
50				$(this).closest(".sp-scoreboard-wrapper").find(".sp-scoreboard-next").removeClass("sp-scoreboard-nav-disabled");
51				if ( left >= $wrapper.innerWidth() - $parent.outerWidth() - step - $(this).outerWidth() ) {
52					$(this).closest(".sp-scoreboard-wrapper").find(".sp-scoreboard-prev").addClass("sp-scoreboard-nav-disabled");
53					$el.animate({
54						left : 0
55					});
56				} else {
57					$el.animate({
58						left : "+=" + step
59					});
60				}
61			} else {
62				$(this).closest(".sp-scoreboard-wrapper").find(".sp-scoreboard-prev").removeClass("sp-scoreboard-nav-disabled");
63				overflow = $el.outerWidth() - $parent.innerWidth() + left;
64				if ( overflow <= step + $(this).outerWidth() ) {
65					$(this).closest(".sp-scoreboard-wrapper").find(".sp-scoreboard-next").addClass("sp-scoreboard-nav-disabled");
66					$el.animate({
67						left : $parent.innerWidth() - $el.outerWidth()
68					});
69				} else {
70					$el.animate({
71						left : "-=" + step
72					});
73				}
74			}
75		}
76		return false;
77	});
78});

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.