PageSourceSearch

https://www.treyarch.com/apps/atvi/treyarch/2023/components/pages/…entlibs.414956ead2fcffecd6a0355e2718e8e0.js

js treyarch.com collected 2026-09-24 20:44:13 UTC 1,850 bytes, 74 lines download raw bytes

1
2(function($) {
3
4    var init = function() {
5
6		initCarousel();
7        gameTitleBreaks();
8
9    };
10
11    var initCarousel = function() {
12
13		var $parent = $(".games-list ul");
14
15        $parent.slick({
16
17			infinite: true,
18            centerMode: true,
19  			centerPadding: '21vw',
20            slidesToShow: 1,
21            arrows: true,
22            prevArrow: $(".games-nav .nav-left"),
23            nextArrow: $(".games-nav .nav-right"),
24            responsive: [
25                {
26                  breakpoint: 768,
27                  settings: {
28                    arrows: false,
29                    dots: false,
30                    centerMode: true,
31                    centerPadding: '6.5vw',
32                    slidesToShow: 1
33                  }
34                }, 
35                {
36                    breakpoint: 1800,
37                    settings: {
38                        centerPadding: '12.5vw'
39                    }
40                }
41			]
42        });
43
44    };
45
46    // Replaces spaces after the first TWO words post a colon with non-breaking spaces
47    var gameTitleBreaks = function() {
48        $('#home-games .games-list .game-name').each(function(i, e) {
49            $(this).text($(this).text().trim());
50
51            var gameTitle = $(this).html().split(' ');
52            $.each(gameTitle, function(i, word) {
53                if (word.includes(':')) {
54                    gameTitle[i + 1] = gameTitle[i+1].concat(' ');
55                    gameTitle[i + 2] = gameTitle[i+2].concat(' ');
56                    gameTitle[i] = word.concat(' ');
57                } else if (word.includes(' ')) {
58                    return;
59                } else {
60                    gameTitle[i] = word.concat(' ');
61                }
62            })
63
64            $(this).html(gameTitle.join(''));
65        });
66    };
67
68    $(init);
69
70})(jQuery);
71
72
73
74

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.