PageSourceSearch

https://88chip.net/Content/distv2/jackpot.js?v=309

js 88chip.net collected 2026-10-08 08:03:45 UTC 27,228 bytes, 592 lines download raw bytes

1let jackpotIntervalId = null;
2let jackpotIntervalIdLoppy = null;
3let timeReset = 300000;
4let sessionKey = "DataJackpot";
5let sessionTimeKey = "DataTimeJackpot";
6var lbJackpot = {
7    
8    lobbyJackpot: '',
9    //call API
10    showPopupJackpot: function () {
11        let storedData = sessionStorage.getItem(sessionKey);
12        let storedTime = sessionStorage.getItem(sessionTimeKey);
13        const currentTime = Date.now();
14        if (storedData && storedTime) {
15            const elapsedTime = currentTime - parseInt(storedTime, 10);
16            if (elapsedTime < timeReset) {
17                lbJackpot.initTopWin(JSON.parse(storedData));
18                return;
19            }
20        }
21        // if (true) {
22        //   lbJackpot.initTopWin(lbJackpot.devData.Data);
23        //   sessionStorage.setItem(sessionKey, JSON.stringify(lbJackpot.devData.Data));
24        //   sessionStorage.setItem(sessionTimeKey, currentTime);
25        //   return;
26        // }
27        var apiJackpot = createRequest({
28            input: JSON.stringify({
29                MethodName: "lbgjp",
30                Data: {}
31            })
32        });
33        
34        ClientWebHelper.createXhttp("POST", globalWeb.ApiUrl, apiJackpot, function (res) {
35            if (lb.is_use_dev) {
36                res = fakeDataJP;
37            }            
38
39            if (res.Code == 1) {
40                lbJackpot.initTopWin(res.Data);
41                sessionStorage.setItem(sessionKey, JSON.stringify(res.Data));
42                sessionStorage.setItem(sessionTimeKey, currentTime);
43            }
44        });
45    },
46    // end call API
47    initTopWin: function (data) {
48        var element = '#popupLeaderboardJackpot',
49            content = $(element).find(".lb-modal-content");
50        var html = `
51                <div class="ohyea__popup-event_header">
52                    <div class="header-left-jackpot">
53                        <span id="" class="">${Language.TopWinner}</span>
54                        <span id="" class="shadow-text">${Language.TopWinner}</span>
55                        <img src="/Content/distv2/img/sprite-sheet/popup-jackpot/top-jackpot.png" alt="alternate"/>
56                    </div>
57                    <div class="header-center-jackpot">
58                        <span id="title-jackpot" class="title-jackpot">top slot</span>
59                    </div>
60                    <div class="header-right-jackpot">
61                        <img class="jackpot-detail" src="/Content/distv2/img/sprite-sheet/popup/event-popup-L7-2/button_question.png" alt="alternate"/>
62                        <img class="bg-header-right" src="/Content/distv2/img/sprite-sheet/popup-jackpot/jackpot-right.png" alt="alternate"/>
63                        <span id="" class="text">${Language.Rewards}</span>
64                        <span id="" class="text shadow-text">${Language.Rewards}</span>
65                        <span id="" class="coin"></span>
66                        <span id="" class="coin shadow-text"></span>
67                    </div>
68                    <button type="button" class="lb-modal-close sprite-live777-popupmain popupmain-close" onclick="lbJackpot.closePopup()"></button>
69                </div>
70                <div class="top-win-body ohyea__popup-event_body">
71                    <div class="popup-ldb-top-win">
72                        <div class="left-frame">
73                            <span id="tw-ar-top" class="arrow-top"></span>
74                            <span id="tw-ar-bottom" class="arrow-bottom"></span>
75                            <div id="jp-tw-scroll" class="lst-tab-ev">
76                                ${this.initTabEvent(data)}
77                            </div>
78                        </div>
79                        <div class="right-frame">
80                            <div id="top-win-slide-slot" class="top-win-lg-slot hide">
81                                <div class="slide-left disabled"></div>
82                                <div class="slide-right"></div>
83                            </div>
84                            <div class="top-win-ldb-detail ${this.checkSlotGameTab(data[0])}">
85                                <div class="list-top-win-ldb">
86                                    ${this.initDetailTopWin(data)}
87                                </div>
88                            </div>
89                        </div>
90                    </div>
91                </div>
92            `;
93
94
95        if (!lbHelper.isUndefinedOrNull(element)) {
96            content.html(html);
97            this.initListenerTab(data);
98            this.initTopWinSlide();
99            this.actionGameLDB();
100            this.initCountJackpot();
101            this.init_title_jacpot_text();
102        }
103
104        lb.popup.show("#popupLeaderboardJackpot");
105    },
106    initListenerTab: function (data) {
107        for (let i = 0; i < data.length; i++) {
108            $('#tab-left-ev-jp-' + i).click(function () {
109                var targetSelector = $(this).data('target');
110                $(targetSelector).removeClass('hide');
111                $(this).addClass('active');
112                lbJackpot.resetAllTab(data.length, i);
113                if (data[i].ev.gt) {
114                    $('.top-win-ldb-detail').addClass('tw-jp-slot-detail');
115                    $('.top-win-lg-slot').removeClass('hide');
116                }
117            });
118        }
119
120        var scrollTop = document.getElementById('tw-ar-top');
121        var scrollBottom = document.getElementById('tw-ar-bottom');
122        var contentScroll = document.getElementById('jp-tw-scroll');
123
124        scrollTop.addEventListener('click', () => {
125            contentScroll.scrollTo({
126                top: 0,
127                behavior: 'smooth'
128            });
129        });
130
131        scrollBottom.addEventListener('click', () => {
132            contentScroll.scrollTo({
133                top: contentScroll.scrollHeight,
134                behavior: 'smooth'
135            });
136        });
137
138    },
139    checkAvarta: function () {
140        var image = document.getElementById('tw-ldb-avt');
141        image.onerror = function () {
142            image.src = lbConfig.avartarDefault;
143        };
144    },
145    resetAllTab: function (length, idElement) {
146        $('.top-win-lg-slot').addClass('hide');
147        $('.top-win-ldb-detail').removeClass('tw-jp-slot-detail');
148        var id;
149        for (let i = 0; i < length; i++) {
150            if (idElement != i) {
151                id = '.tabTopWinJP-' + i;
152                $(id).addClass('hide');
153                $('#tab-left-ev-jp-' + i).removeClass('active');
154            }
155        }
156    },
157    initTotalJackpotLoppy: function () {
158        var apiJackpot = createRequest({
159            input: JSON.stringify({
160                MethodName: "gjp",
161                Data: {}
162            })
163        });
164        ClientWebHelper.createXhttp("POST", globalWeb.ApiUrl, apiJackpot, function (res) {
165            if (lb.is_use_dev) {
166                res = fakeDataJPTotal;
167            }
168
169            if (res.Code == 1) {
170                var data = res.Data;
171                var container = $('#lb-lobby-games .jackpot-count-num');
172                if (data) {
173                    if (container) {
174                        lbJackpot.lobbyJackpot = lbHelper.formatNumber(data.jpt);
175						const jpDiv = container[0].closest('div.first');
176						
177                        if (lbJackpot.lobbyJackpot == "0") {                            
178                            if (jpDiv) {
179                                jpDiv.style.display = 'none';
180								jpDiv.classList.remove('game');
181                            }
182                        } else {
183							jpDiv.style.display = 'flex';
184							jpDiv.classList.add('game');
185                            container.text(lbJackpot.lobbyJackpot);
186                            lbJackpot.increaseJackpotRandomlyLoppy();
187                        }
188                    }
189                }
190            }
191        });
192    },
193    updatJackpotLoppy: function () {
194        //var jackpotValue = $('#lb-lobby-games .jackpot-count-num').html();
195        var jackpotValue = lbJackpot.lobbyJackpot;
196
197        var cleanedString = jackpotValue.replace(/\./g, '');
198        jackpotValue = parseInt(cleanedString);
199        if (jackpotValue) {
200            jackpotValue += lbJackpot.randomInt(1, 20);
201
202            lbJackpot.lobbyJackpot = lbHelper.formatNumber(jackpotValue);
203            $('#lb-lobby-games .jackpot-count-num').text(lbJackpot.lobbyJackpot);
204        }
205    },
206    updatJackpotPopup: function () {
207        let jpEvent = $('#popupLeaderboardJackpot .header-right-jackpot .coin').first().text().replace(/\./g, '');
208        jpEvent = parseInt(jpEvent);
209        if (jpEvent) {
210            jpEvent += lbJackpot.randomInt(1, 20);
211            $('#popupLeaderboardJackpot .header-right-jackpot .coin').text(lbHelper.formatNumber(jpEvent));
212        }
213    },
214    init_title_jacpot_text: function () {
215        if (Language.CurrentLang == 'my') {
216            $('#popupLeaderboardJackpot .ohyea__popup-event_header .header-left-jackpot span').addClass('mobile-my');
217        }
218        if (Language.CurrentLang == 'km') {
219            $('#popupLeaderboardJackpot .ohyea__popup-event_header .header-left-jackpot span').each(function (i) {
220                $(this).css({ left: "8rem" });
221            });
222            $('#popupLeaderboardJackpot .ohyea__popup-event_header .header-right-jackpot .text').each(function (i) {
223                $(this).css({ right: "9rem" });
224            });
225        }
226    },
227    initCountJackpot: function () {
228        let tabFirst = $('#tab-left-ev-jp-0');
229        if (tabFirst) {
230            tabFirst.click();
231        }
232        if (jackpotIntervalId) {
233            clearInterval(jackpotIntervalId);
234        }
235        lbJackpot.increaseJackpotRandomly();
236    },
237    increaseJackpotRandomly: function () {
238        if (jackpotIntervalId) {
239            clearTimeout(jackpotIntervalId);
240        }
241        lbJackpot.updatJackpotPopup();
242        let randomTime = lbJackpot.randomInt(0, 500);
243        jackpotIntervalId = setTimeout(function () {
244            lbJackpot.increaseJackpotRandomly();
245        }, randomTime);
246    },
247    increaseJackpotRandomlyLoppy: function () {
248        if (jackpotIntervalIdLoppy) {
249            clearTimeout(jackpotIntervalIdLoppy);
250        }
251        lbJackpot.updatJackpotLoppy();
252        let randomTime = lbJackpot.randomInt(0, 500);
253        jackpotIntervalIdLoppy = setTimeout(function () {
254            lbJackpot.increaseJackpotRandomlyLoppy();
255        }, randomTime);
256    },
257    stopJackpotIncrease: function () {
258        if (jackpotIntervalId) {
259            clearTimeout(jackpotIntervalId);
260            jackpotIntervalId = null; 
261        }
262    },
263    closePopup: function () {
264        $('#popupLeaderboardJackpot').modal('hide');
265        lbJackpot.stopJackpotIncrease();
266    },
267    //randomUpdateInterval: function () {
268    //    lbJackpot.updatJackpotPopup();
269    //    //let randomInterval = lbJackpot.randomInt(600, 800);
270    //    setTimeout(lbJackpot.randomUpdateInterval, 1000);
271    //},
272    countJackpotEvent: function (i, jp, aid, ti) {
273        var container = $(`#popupLeaderboardJackpot #tab-left-ev-jp-${i}.top-win-jp-item.active`);
274        var textJackpot = $('#popupLeaderboardJackpot .header-right-jackpot .coin');
275        if (container) {
276            textJackpot.text(lbHelper.formatNumber(jp));
277            $('#title-jackpot').text(ti);
278            $('#popupLeaderboardJackpot .jackpot-detail').attr('onclick', `openEventArticle('/Event/EventDetailMobile?idEvent=${aid}&lang=${Language.CurrentLang}')`);
279        } else {
280            textJackpot.text("");
281        }
282    },
283    randomInt: function (min, max) {
284        return Math.floor(Math.random() * (max - min + 1)) + min;
285    },
286    initTabEvent: function (lstEvent) {
287        var tabHtml = lstEvent.map((event, i) => {
288            var ev = event.ev;
289            return `
290            <div id="tab-left-ev-jp-${i}" 
291                 class="top-win-jp-item ${i === 0 ? 'active' : ''}" 
292                 data-target=".tabTopWinJP-${i}" 
293                 onclick="lbJackpot.countJackpotEvent(${i}, ${ev.jp}, ${ev.aid}, '${ev.ti}')">
294                <img class="game-tab-ldb" 
295                     src="${lbJackpot.replaceDomainIcon(ev.im)}" />
296            </div>`;
297        }).join('');
298
299        return tabHtml;
300    },
301    initSlotGameLDB: function () {
302        var lstSlotGame = JSON.parse(JSON.stringify(lbConfig.Games));
303        var html = "", game;
304        if (lstSlotGame) {
305            for (var i = 0; i < lstSlotGame.list.length; i++) {
306                game = lstSlotGame.list[i];
307                if (game.visible) {
308                    html = html + '<div class="tw-game">';
309                    html = html + '<div class="item" data-game-id="' + game.gameId + '">';
310                    html = html + '<a href="javascript:void(0)" class="icon open-link genGameId_4-2" data-action="' + game.action + '" data-isnewtab="" data-alt="" draggable="false">';
311                    html = html + '<img src="' + lb.getLinkImageGameLanguage(game.image) + '" alt="' + game.alt + '" draggable="false" onerror="lbJackpot.loadLazy(this)">';
312                    html = html + '</a> </div> </div>';
313                }
314            }
315        }
316        return html;
317    },
318    initDetailTopWin: function (lst) {
319        var content = "", table;
320        if (lst) {
321            for (var i = 0; i < lst.length; i++) {
322                table = lst[i];
323                content = content + '<div class="' + (i != 0 ? 'hide ' : "") + ' tabTopWinJP-' + i + '">';
324                content = content + this.initListDetailTopWin(table.ev.lu);
325                content = content + '</div>';
326            }
327        }
328        return content;
329    },
330    checkSlotGameTab: function (table) {
331        var classKingSlot = "";
332        if (table && table.ev.gt) {
333            content = 'tw-jp-slot-detail';
334        }
335        return classKingSlot;
336    },
337    initListDetailTopWin: function (lstData) {
338        let content = "";
339        const gameMap = new Map();
340        const gameSlotMap = new Map();
341        let randomGameArray = [];
342
343        lbConfig.Games.forEach(group => {
344            group.list.forEach(game => {
345                if (game.visible) {
346                    gameMap.set(game.gameId, game);
347                    if (group.title === "LoppySlotGame") {
348                        gameSlotMap.set(game.gameId, game);
349                    }
350                }
351            });
352        });
353        randomGameArray = Array.from(gameSlotMap.values());
354
355        if (lstData && randomGameArray.length > 0) {
356            lstData.forEach((detail, index) => {
357                const game = gameMap.get(detail.gid);
358                const isLast = (index === lstData.length - 1);
359                let img = lbConfig.notfoundImage, action = "";
360
361                if(lb.userData){
362                    
363                    if (game) {
364                        if(lbHelper.isDefined(game.image) && game.image != ""){
365                            img = lb.getLinkImageGameLanguage(game.image);
366                        }
367                        action = game.isGameWallet
368                            ? `lbWalletGame.showPopupUserWalletGame(${detail.gid})`
369                            : game.action;
370                    } 
371
372                    if (detail.gid === 500) {
373                        img = "https://iimg.88chip.net/content/Images/web/en/atlantic-king-event.png";
374                        action = lb.userData.Coin > 100000
375                            ? "lb.checkLoginBeforeCall('/fishing?id=1')"
376                            : "lb.checkLoginBeforeCall('/fishing?id=2')";
377                    } 
378                    
379                    // else if (!isLast) {
380                    //     const randomGame = randomGameArray[Math.floor(Math.random() * randomGameArray.length)];
381                    //     img = `/Content/KingPlay/images/game/en/${randomGame.image}.png`;
382                    //     action = randomGame.isGameWallet
383                    //         ? `lbWalletGame.showPopupUserWalletGame(${randomGame.gameId})`
384                    //         : randomGame.action;
385                    // }
386    
387                    content += this.getItemUserLdb(detail, index + 1, isLast, img, action);
388                }
389
390            });
391        }
392
393        return content;
394    },
395    getRankLdb: function (r) {
396        var rank = {
397            class: "",
398            classAvt: "",
399            classTxt: "text",
400            ic: "text",
401            value: "",
402            classImg: ""
403        };
404        if (r <= 3) {
405            rank.class = 'bg-item-top' + r;
406            rank.ic = "ic-top ic-r-top-" + r;
407            rank.classAvt = "avatar-bg-ldb-top" + r;
408            rank.classTxt = "text-top";
409            rank.classImg = "top" + r;
410        } else {
411            rank.value = r;
412        }
413      
414        
415        return rank;
416    },
417    getItemUserLdb: function (data, rank, isLast, img, action) {
418        if (!data) {
419            return "";
420        }
421        var rankClass = this.getRankLdb(rank);
422        var lastClass = isLast ? 'rank-me' : '';
423        var rankValue = isLast ? data.rs : rankClass.value;
424        var rsNumber = parseFloat(data.rs);
425        var classRankme = (isLast && ((rsNumber > 100) || data.rs === "999+")) ? "sz-4 lf-2 w-9 tp-2" : "";
426        var imgElement = "";
427        if (img != "" && action != "") {
428            imgElement = `<img class="img-game" src="${img}" onclick="${action}"/>`;
429        }
430        var item =
431            `<div
432                class="item-top-win-ldb ${rankClass.class} ${lastClass}">
433                <div class="icon-rank">
434                    <span class="${rankClass.ic} ${classRankme}">${rankValue}</span>
435                    <span class="shadow-text ${classRankme}">${rankValue}</span>
436                </div>
437                <div class="info">
438                    <div class="avatar">
439                        <div class="avatar-bg ${rankClass.classAvt}"></div>
440                        <img id="tw-ldb-avt" class="avatar-main ${rankClass.classImg}" src="${lbHelper.isDefined(data.avt) ? lbHelper.replaceDomainImg(data.avt) : lbConfig.avartarDefault}" onerror="lbJackpot.loadDefaultAvatar(this)">
441                    </div>
442                    <div class="name">
443                        <span class="${rankClass.classTxt}">${data.dpn}</span>
444                    </div>
445                </div>
446                <div class="ic-game">
447                    ${imgElement}
448                </div>
449                <div class="coin-ldb-bg">
450                    <div class="number ${rankClass.classImg}">
451                        <span class="text">${lbHelper.formatNumber(data.poi)}</span>
452                        <span class="text-shadow">${lbHelper.formatNumber(data.poi)}</span>
453                        <img class="btn-play" src="/Content/distv2/img/s
453prite-sheet/popup-ldb/ic-play-ldb.png" onclick="${action}"/>
454                    </div>
455                </div>
456            </div>`;
457        return item;
458    },
459    initTopWinSlide: function () {
460        var i = !1,
461            l = 0,
462            n = 0,
463            a = $("#top-win-slide-slot");
464        t = $(".top-win-lg-slot .slide-left"),
465            s = $(".top-win-lg-slot .slide-right");
466        a &&
467            0 < a.length &&
468            (a[0].addEventListener("mousedown", function (a) {
469                (i = !0), (l = a.clientX), (n = a.clientY);
470            }),
471                a[0].addEventListener("touchstart", function (a) {
472                    (i = !0), a.changedTouches && 0 < a.changedTouches.length && ((l = a.changedTouches[0].clientX), (n = a.changedTouches[0].clientY));
473                }),
474                a[0].addEventListener("mousemove", function (r) {
475                    if (i) {
476                        var o = r.clientX - l,
477                            d = r.clientY - n;
478                        (a[0].scrollLeft -= o),
479                            (a[0].scrollTop -= d),
480                            (l = r.clientX),
481                            (n = r.clientY),
482                            a[0].scrollLeft < 100 ? t && 0 < t.length && -1 === t[0].className.search("disabled") && (t[0].className += " disabled") : t && 0 < t.length && (t[0].className = t[0].className.replace(/ disabled/g, "")),
483                            a[0].scrollLeft + a[0].clientWidth > a[0].scrollWidth - 100
484                                ? s && 0 < s.length && -1 === s[0].className.search("disabled") && (s[0].className += " disabled")
485                                : s && 0 < s.length && (s[0].className = s[0].className.replace(/ disabled/g, ""));
486                    }
487                }),
488                a[0].addEventListener("touchmove", function (r) {
489                    if (i && r.changedTouches && 0 < r.changedTouches.length) {
490                        var o = r.changedTouches[0].clientX - l,
491                            d = r.changedTouches[0].clientY - n;
492                        lb.scale.isVerticalScreen ? ((a[0].scrollLeft -= d), (a[0].scrollTop += o)) : ((a[0].scrollLeft -= o), (a[0].scrollTop -= d)),
493                            r.cancelable && a[0].scrollTop <= 0 && 0 < d && r.preventDefault(),
494                            r.cancelable && a[0].scrollHeight - a[0].scrollTop <= a[0].clientHeight && d < 0 && r.preventDefault(),
495                            (l = r.changedTouches[0].clientX),
496                            (n = r.changedTouches[0].clientY),
497                            a[0].scrollLeft < 100 ? t && 0 < t.length && -1 === t[0].className.search("disabled") && (t[0].className += " disabled") : t && 0 < t.length && (t[0].className = t[0].className.replace(/ disabled/g, "")),
498                            a[0].scrollLeft + a[0].clientWidth > a[0].scrollWidth - 100
499                                ? s && 0 < s.length && -1 === s[0].className.search("disabled") && (s[0].className += " disabled")
500                                : s && 0 < s.length && (s[0].className = s[0].className.replace(/ disabled/g, ""));
501                    }
502                }),
503                a[0].addEventListener("mouseup", function (l) {
504                    i = !1;
505                }),
506                a[0].addEventListener("touchend", function (l) {
507                    i = !1;
508                }),
509                a[0].addEventListener("mouseleave", function (l) {
510                    i = !1;
511                }),
512                a[0].addEventListener("touchcancel", function (l) {
513                    i = !1;
514                }),
515                a[0].addEventListener("dragstart", function (l) {
516                    i = !1;
517                })),
518            t &&
519            0 < t.length &&
520            ((t[0].className += " disabled"),
521                t[0].addEventListener("click", function (i) {
522                    a &&
523                        0 < a.length &&
524                        ((a[0].scrollLeft -= 180),
525                            a[0].scrollLeft < 100 ? t && 0 < t.length && -1 === t[0].className.search("disabled") && (t[0].className += " disabled") : t && 0 < t.length && (t[0].className = t[0].className.replace(/ disabled/g, "")),
526                            a[0].scrollLeft + a[0].clientWidth > a[0].scrollWidth - 100
527                                ? s && 0 < s.length && -1 === s[0].className.search("disabled") && (s[0].className += " disabled")
528                                : s && 0 < s.length && (s[0].className = s[0].className.replace(/ disabled/g, "")));
529                })),
530            s &&
531            0 < s.length &&
532            s[0].addEventListener("click", function (i) {
533                a &&
534                    0 < a.length &&
535                    ((a[0].scrollLeft += 180),
536                        a[0].scrollLeft < 100 ? t && 0 < t.length && -1 === t[0].className.search("disabled") && (t[0].className += " disabled") : t && 0 < t.length && (t[0].className = t[0].className.replace(/ disabled/g, "")),
537                        a[0].scrollLeft + a[0].clientWidth > a[0].scrollWidth - 100
538                            ? s && 0 < s.length && -1 === s[0].className.search("disabled") && (s[0].className += " disabled")
539                            : s && 0 < s.length && (s[0].className = s[0].className.replace(/ disabled/g, "")));
540            });
541    },
542    actionGameLDB: function () {
543        var i = $("#top-win-slide-slot").find(".tw-game .item a");
544        lbHelper.isElementDefined(i) &&
545            (lbHelper.isMobile()
546                ? (i.unbind("click"),
547                    i.click(function (i) {
548                        var l = $(this).data("action"),
549                            n = $(this).data("isNewTab");
550                        n = !(!lbHelper.isDefined(n) || "" === n || "true" !== n);
551                        if (lbHelper.isDefined(l) && "" !== l) {
552                            lbHelper.callFunctionFromString(l, n);
553                        }
554                    }))
555                : (i.unbind("mousedown"),
556                    i.mousedown(function (i) {
557                        (lb.slideGameMouseDown = !0), -1 < navigator.userAgent.toLowerCase().indexOf("firefox") && i.preventDefault();
558                    }),
559                    i.unbind("mousemove"),
560                    i.mousemove(function (i) {
561                        lb.slideGameMouseDown && (lb.slideGameMouseDrag = !0);
562                    }),
563                    i.unbind("mouseleave"),
564                    i.mouseleave(function (i) {
565                        (lb.slideGameMouseDrag = !1), (lb.slideGameMouseDown = !1);
566                    }),
567                    i.unbind("mouseup"),
568                    i.mouseup(function (i) {
569                        if (($("#lb-lobby-games .owl-stage"), !lb.slideGameMouseDrag && lb.slideGameMouseDown && 1 === i.which)) {
570                            var l = $(this).data("action"),
571                                n = $(this).data("isNewTab");
572                            n = !(!lbHelper.isDefined(n) || "" === n || "true" !== n);
573                            if (lbHelper.isDefined(l) && "" !== l) {
574                                lbHelper.callFunctionFromString(l, n);
575                            }
576                        }
577                        (lb.slideGameMouseDrag = !1), (lb.slideGameMouseDown = !1);
578                    })));
579    },
580    replaceDomainIcon: function (img) {
581        var name = "";
582        name = img.substring(img.lastIndexOf("/") + 1, img.length);
583        return '/Content/distv2/img/sprite-sheet/popup-jackpot/tab-event-jackpot/' + name;
584    },
585    loadLazy: function (e) {
586        console.log(e)
587        e.src = lbConfig.imageLazy;
588    },
589    loadDefaultAvatar: function (e) {
590        e.src = lbConfig.avartarDefault;
591    }
592}

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.