PageSourceSearch

https://plughitzlive.com/_scripts/tileload.js

js plughitzlive.com collected 2026-10-02 03:39:59 UTC 4,121 bytes, 91 lines download raw bytes

1/// <reference path="typing/jquery.d.ts" />
2var Plughitz;
3(function (Plughitz) {
4    var Live;
5    (function (Live) {
6        var Tiles;
7        (function (Tiles) {
8            var TileLoad = /** @class */ (function () {
9                function TileLoad(aConfig) {
10                    this.mOldestElement = 999999999;
11                    this.mDataCache = {};
12                    this.mLoadingCount = 0;
13                    this.mIsLoading = false;
14                    this.mConfig = aConfig;
15                }
16                TileLoad.prototype.setValue = function (aKey, aValue) {
17                    this.mDataCache[aKey] = aValue;
18                };
19                TileLoad.prototype.setOldestElement = function (aElementId) {
20                    if (aElementId && aElementId < this.mOldestElement) {
21                        this.mOldestElement = aElementId;
22                    }
23                };
24                TileLoad.prototype.checkCurrentBlock = function () {
25                    if (!this.mIsLoading) {
26                        var vOldestElement = parseInt(sessionStorage.getItem('OldestElement' + this.mConfig.StorageKey));
27                        if (vOldestElement < this.mOldestElement) {
28                            this.loadNextBlock();
29                            this.checkCurrentBlock();
30                        }
31                    }
32                };
33                TileLoad.prototype.setCurrentBlock = function () {
34                    var vOldestElement = parseInt(sessionStorage.getItem('OldestElement' + this.mConfig.StorageKey));
35                    if (!vOldestElement || this.mOldestElement < vOldestElement)
36                        sessionStorage.setItem('OldestElement' + this.mConfig.StorageKey, this.mOldestElement.toString());
37                };
38                TileLoad.prototype.loadNextBlock = function () {
39                    var self = this;
40                    if (!this.mIsLoading) {
41                        if (this.mConfig.StartLoad) {
42                            this.mConfig.StartLoad();
43                        }
44                        this.setLoading(1);
45                        this.mIsLoading = true;
46                        var vUrl = this.mConfig.LoadUrl.replace('{OldestElement}', this.mOldestElement.toString());
47                        $.get(vUrl, function (data) {
48                            if (self.mConfig.Loading) {
49                                self.mConfig.Loading(data);
50                            }
51                            self.checkCurrentBlock();
52                            self.releaseLoading(1);
53                            console.log(this.mIsLoading);
54                            if (self.mConfig.EndLoad) {
55                                self.mConfig.EndLoad();
56                            }
57                            self.checkCurrentBlock();
58                        });
59                    }
60                };
61                TileLoad.prototype.setLoading = function (aCount) {
62                    if (aCount) {
63                        this.mLoadingCount += aCount;
64                    }
65                    else {
66                        this.mLoadingCount += 1;
67                    }
68                    this.mIsLoading = this.mLoadingCount > 0;
69                };
70                TileLoad.prototype.releaseLoading = function (aCount) {
71                    if (aCount) {
72                        this.mLoadingCount -= aCount;
73                    }
74                    else {
75                        this.mLoadingCount -= 1;
76                    }
77                    this.mIsLoading = this.mLoadingCount > 0;
78                };
79                return TileLoad;
80            }());
81            Tiles.TileLoad = TileLoad;
82            var LoadTileConfig = /** @class */ (function () {
83                function LoadTileConfig() {
84                }
85                return LoadTileConfig;
86            }());
87            Tiles.LoadTileConfig = LoadTileConfig;
88        })(Tiles = Live.Tiles || (Live.Tiles = {}));
89    })(Live = Plughitz.Live || (Plughitz.Live = {}));
90})(Plughitz || (Plughitz = {}));
91//# sourceMappingURL=tileload.js.map

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.