PageSourceSearch

https://livemetallica.com/assets/metallica/js/metal.js

js livemetallica.com collected 2026-09-24 22:29:35 UTC 34,108 bytes, 477 lines download raw bytes

1function getShowYears(a) {
2    var t = $(".events-year-picker");
3    t.empty();
4    var e = $(".showlist");
5    e.empty();
6    var s, o = "";
7    s = a || NugsSettings.get("featured_year");
8    var i = "";
9    $.when($.each(NugsSettings.get("yearValues"), function(t, e) {
10        a = e.ctID, i += '<span class="showYear"><a id="year-' + a + '" data-id="' + a + '" class="show">' + e.ctYear + "</a></span>", o += "<section id=cat" + a + ' class="list list-t-events" style="display:none;"></section>'
11    })).then(function() {
12        t.html(i), e.html(o), $("#year-" + s).addClass("active"), $(".events-year-picker").find(".showYear a").click(ShowNav), getTour1(s), $("#cat" + s).addClass("beenthere")
13    })
14}
15var isMobile = !1;
16
17function ShowNav(t) {
18    var e = $(t.target).data("id");
19    $(".show").removeClass("active"), $("#year-" + e).addClass("active"), $(".list-t-events").hide(), $("#cat" + e).show(), $("#cat" + e).hasClass("beenthere") || ($("#cat" + e).addClass("beenthere"), getTour1(e))
20}
21
22function getTour1(o, e) {
23    var a, s, i, n = "",
24        t = $("#cat" + o);
25    t.empty(), new Array;
26    var r = "";
27    $("#year-" + NugsSettings.get("featured_year")).hasClass("active") && $("#cat" + NugsSettings.get("featured_year")).show(), t.block({
28        centerY: !1,
29        message: '<div class="loader"></div>',
30        css: {
31            border: "none",
32            background: "none",
33            top: "0"
34        },
35        overlayCSS: {
36            opacity: 0
37        }
38    }), $.getJSON(NugsSettings.get("api"), {
39        method: "catalog.containerCategories.containers",
40        containerCategoryID: o
41    }, function(t) {
42        e ? (a = "down", s = "icon-caret-up", NugsUtil.sortCollectionByDate(t.Response.containers, "performanceDate")) : (a = "up", s = "icon-caret-down"), i = '<div class="sorting"><span class="sort' + o + " " + a + '" style="float: right;"><a style="cursor:pointer">SORT&nbsp;<span class="dicon' + o + " " + s + '" style="font-size:14px;"></a></span></div><div class="card-row row">', $.each(t.Response.containers, function(t, e) {
43            var a = e.availabilityType,
44                s = "";
45            r = 1 != a && 4 != a ? (s = "Pre-Order", NugsSettings.get("show_imgurl") + "met_preorder.jpg") : (s = "buy now", NugsSettings.get("show_imgurl") + "met" + moment(e.performanceDate).format("YYMMDD") + ".jpg"), 6 == o && (s = "download", r = NugsSettings.get("show_imgurl") + "vault_cover.jpg"), n = moment(e.performanceDate, "M/D/YYYY").format("MMM DD, YYYY") + "<br />" + e.venueCity + ", " + e.venueState, i += '<div class="card"><a class="catalog-album-list-item" href="' + NugsSettings.get("url") + e.pageURL + '" style="background-image:url(' + r + ')"></a><div class="card-body"><div class="card-purchase"><a href="' + NugsSettings.get("url") + e.pageURL + '" class="btn btn-t-default btn-t-add-to-cart" style="width:100%;text-align:center;">' + s + '</a></div><h2 class="heading heading-m-compact card-title"><a  href="' + NugsSettings.get("url") + e.pageURL + '">' + n + "</a></h2></div></div>"
46        })
47    }).complete(function() {
48        t.html(i += "</div>"), t.unblock(), $(".sort" + o).click(function() {
49            $(".dicon" + o).toggleClass("icon-caret-up icon-caret-down"), $(".sort" + o).toggleClass("up down"), $(".sort" + o).is(".up") ? getTour1(o) : getTour1(o, 1)
50        })
51    })
52}
53
54function defaultImage(t) {
55    t.onerror = "", t.src = NugsSettings.get("defaultshowimage_url")
56}
57
58function ShareFeaturedItem(t) {
59    var e = $(t.target),
60        a = e.data("share-url");
61    if (e.is(".icon-facebook")) {
62        var s = {
63            method: "feed",
64            link: a,
65            name: e.data("share-fb-name"),
66            caption: e.data("share-fb-caption"),
67            description: e.data("share-fb-description")
68        };
69        FB.ui(s)
70    } else if (e.is(".icon-twitter")) {
71        var o = e.data("share-tweet"),
72            i = "https://twitter.com/share?text=" + encodeURIComponent(o) + "&hashtags=LiveMetallica&related=&url=" + encodeURIComponent(a);
73        window.open(i, "twitter", "height=500,width=500")
74    } else if (e.is(".icon-gplus")) {
75        var n = e.data("share-google"),
76            r = Number((window.screen.width - 480) / 2),
77            l = Number((window.screen.height - 380) / 2);
78        window.open("https://plus.google.com/share?url=" + encodeURIComponent(a) + "&amp;title=" + encodeURIComponent(n), "", "width=480,height=380,left=" + r + ",top=" + l + ",scrollbars=no")
79    }
80}
81/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Opera Mobile|Kindle|Windows Phone|PSP|AvantGo|Atomic Web Browser|Blazer|Chrome Mobile|Dolphin|Dolfin|Doris|GO Browser|Jasmine|MicroB|Mobile Firefox|Mobile Safari|Mobile Silk|Motorola Internet Browser|NetFront|NineSky|Nokia Web Browser|Obigo|Openwave Mobile Browser|Palm Pre web browser|Polaris|PS Vita browser|Puffin|QQbrowser|SEMC Browser|Skyfire|Tear|TeaShark|UC Browser|uZard Web|wOSBrowser|Yandex.Browser mobile/i.test(navigator.userAgent) && (isMobile = !0), $(".js-store-search-toggle").
81click(function(t) {
82    if (t.metaKey) return !0;
83    t.preventDefault();
84    var e = $(this);
85    if (e.hasClass("animating")) return !1;
86    var a = e.addClass("animating").closest(".js-section-bar").find(".js-section-bar-content").slideToggle(function() {
87        e.removeClass("animating")
88    });
89    e.toggleClass("active").hasClass("active") ? a.find('input[type="text"]').first().focus() : $(".js-store-search-outlet-generated").hide().empty().siblings(":hidden").show(), $(".js-hidden-when-searching").fadeToggle()
90});
91var $header = $(".js-header");
92
93function toUSD(t) {
94    var e = (t = t.toString()).split(".")[0],
95        a = (t.split(".")[1] || "") + "00";
96    return "$" + (e = e.split("").reverse().join("").replace(/(\d{3}(?!$))/g, "$1,").split("").reverse().join("")) + "." + a.slice(0, 2)
97}
98
99function convertDate(t) {
100    var e = t.split(/\D/g);
101    return [e[1], e[2], e[0]].join("/")
102}
103
104function addToCart(t) {
105    var e = $(t.target),
106        a = e.data("skuid"),
107        s = e.data("costplanid");
108    $.getJSON(NugsSettings.get("secure_api"), {
109        method: "user.site.cart.additem",
110        skuID: a,
111        costplanID: s
112    }, function(t) {
113        getCart(), $("#" + a).html("<span class='btn btn-t-disabled'>Added</span>")
114    })
115}
116
117function getCart() {
118    $.getJSON(NugsSettings.get("secure_api"), {
119        method: "user.site.cart.listitems"
120    }, function(t) {
121        t.Response && 0 != t.Response.items.length && $(".cart-count").html(t.Response.items.length)
122    })
123}
124
125function getNugster(t) {
126    var e = $(t.target),
127        a = e.data("showid"),
128        s = e.data("mediaid"),
129        o = Number((window.screen.width - 800) / 2),
130        i = Number((window.screen.height - 600) / 2);
131    window.open("/bigriver/initDownload.aspx?show=" + a + "&set=1&mediaID=" + s + "&codec=MP3", "", "width=800,height=600,left=" + o + ",top=" + i + ",scrollbars=no")
132}
133
134function GetIndShow(c, d) {
135    var t = $("#socialLinks");
136    t.empty();
137    var e = $("#buymarkup");
138    e.empty();
139    var a = $("#shownotes");
140    a.empty(), formattednotes = "", notes = '<section class="event-section audio-section-t-borderless"><h3 class="heading event-section-header">Show Notes</h3>';
141    var p, s = $(".audio-track-list"),
142        g = "",
143        u = "",
144        h = "",
145        m = "",
146        f = "",
147        v = "",
148        w = "",
149        b = "";
150    p = new Array, $.getJSON(NugsSettings.get("api"), {
151        method: "catalog.container",
152        containerID: c,
153        nht: 1
154    }, function(t) {
155        var e;
156        e = 0 == t.Response.containerType ? (h = "Show", t.Response.venue) : (h = "Album", t.Response.containerInfo), g = "<ul class='social-link-list'><li class='social-link-list-item'><a><span class='social-link-list-item-icon'><span class='icon-facebook' data-share-url='" + NugsSettings.get("url") + t.Response.pageURL + "' data-share-fb-caption='www.livemetallica.com - Download Live Metallica " + t.Response.containerInfo + ", MP3 and FLAC' data-share-fb-description='www.livemetallica.com'></span></span><span class='social-link-list-item-label'>Facebook</span></a></li><li class='social-link-list-item'><a><span class='social-link-list-item-icon'><span class='icon-twitter' data-share-tweet='Download " + e + "  at www.livemetallica.com' data-share-url='" + NugsSettings.get("url") + t.Response.pageURL + "'></span></span><span class='social-link-list-item-label'>Twitter</span></a></li></ul>";
157        var a = t.Response.availabilityType,
158            s = "";
159        s = 1 != a && 4 != a ? "Pre-Order" : "Buy";
160        var o, i = 0;
161        t.Response.notes.length && (notes += '<div class="formatted-content js-fitvids">', i = 1), $.each(t.Response.notes, function(t, e) {
162            notes += e.note
163        }), 1 == i && (formattednotes = notes.replace(/\*/g, ""), formattednotes = formattednotes.replace(/\<p><\/p>/g, ""), formattednotes = formattednotes.replace(/\<div>&nbsp;<\/div>/g, ""), formattednotes = formattednotes.replace(/\<div>/g, "<p>"), formattednotes = formattednotes.replace(/\<\/div>/g, "</p>"), formattednotes = formattednotes.replace(/\<ul>/g, ""), formattednotes = formattednotes.replace(/\<\/ul>/g, ""), formattednotes = formattednotes.replace(/\<li>/g, ""), formattednotes = formattednotes.replace(/\<\/li>/g, ""), formattednotes = formattednotes.replace(/\&nbsp;/g, ""), formattednotes = formattednotes.replace(/\<br \/>/g, "</p><p>"), formattednotes = formattednotes.replace(/\<br><br>/g, "</p><p>"), formattednotes += "</div>"), i || t.Response.tracks.length || (formattednotes = '<h2 class="heading section-bar-title" style="margin-bottom: 20px;">Show Notes</h2><div class="formatted-content js-fitvids" style="padding-bottom: 110px;"><p style="font-weight:bold;font-size:22px;margin-bottom:20px;">PRE-ORDER THE ULTIMATE CONCERT SOUVENIR!</p><p>This professionally mixed recording will be available for download within days of the concert so you can relive the show for years to come.</p></div>'), t.Response.tracks.length || $("#labels").hide(), u = '<a class="dropdown-toggle"><span class="avtype">' + s + "</span> " + h + '&nbsp;<span class="dicon icon-caret-down" style="font-size: 14px;"></span></a><ul class="dropdown">', $.each(t.Response.products, function(t, e) {
164            var a = e.formatStr;
165            "MP3" == a && (v = e), "ALAC" != a && "FLAC" != a || m && "ALAC" != a || (m = e), "ALAC-HD" != a && "FLAC-HD" != a && "MQA" != a || f && "ALAC-HD" != a || (f = e), "DSD" == a && (b = e), "CD" == a && 0 != (w = e).bundles.length && $.each(e.bundles, function(t, e) {
166                1 == e.displayOnProductPage && p.push(e)
167            })
168        });
169        var n, r = 0;
170        v && (o = toUSD(v.cost / 100), 0 != v.cost ? (n = "MP3 " + o, u += '<li><a href="' + NugsSettings.get("securl") + "/cart.aspx?cmd=add&mediaID=" + v.skuID + "&costplanID=" + v.costplanID + '">' + n + "</a></li>") : (n = "FREE MP3", r = 1, u += 2 == d ? isMobile ? "<li><a>Download " + n + " on your PC or MAC</a></li>" : '<li class="nugster"><a data-showid=' + c + " data-mediaid=" + v.skuID + ' style="cursor:pointer;">' + n + "</a></li>" : isMobile ? "<li><a>Download " + n + " on your PC or MAC</a></li>" : '<li><a href="' + NugsSettings.get("securl") + "/login.aspx?rdto=redirToCatalog.aspx&rdtoParams=goto,rto,rp,rpv&rdtoParamValues=csite,show.aspx,show," + c + '">' + n + "</a></li>"));
171        if (m && (o = toUSD(m.cost / 100), u += '<li><a href="' + NugsSettings.get("securl") + "/cart.aspx?cmd=add&mediaID=" + m.skuID + "&costplanID=" + m.costplanID + '">LOSSLESS ' + o + "</a></li>"), f && (o = toUSD(f.cost / 100), u += '<li><a href="' + NugsSettings.get("securl") + "/cart.aspx?cmd=add&mediaID=" + f.skuID + "&costplanID=" + f.costplanID + '">HD-AUDIO ' + o + "</a></li>"), b && (o = toUSD(b.cost / 100), u += '<li><a href="' + NugsSettings.get("securl") + "/cart.aspx?cmd=add&mediaID=" + b.skuID + "&costplanID=" + b.costplanID + '">DSD ' + o + "</a></li>"), w) {
172            var l = "";
173            5 == w.productStatusType && (l = "Pre-Order"), o = toUSD(w.cost / 100), u += '<li><a href="' + NugsSettings.get("securl") + "/cart.aspx?cmd=add&mediaID=" + w.skuID + "&costplanID=" + w.costplanID + '">' + l + " CD " + o + "</a></li>", 0 != p.length && $.each(p, function(t, e) {
174                var a = toUSD(e.cost / 100);
175                //u += '<li><a href="' + NugsSettings.get("securl") + "/cart.aspx?p=1&cmd=add&costplanID=" + e.costplanID + '">' + l + " " + e.packageFormat + " " + a + "</a></li>"
176
177            })
178
179            if (t.Response.products && t.Response.products[0] && t.Response.products[0].bundles && t.Response.products[0].bundles[0]) {
180                if (t.Response.products[0].bundles[0].packageTitle == "Amsterdam 2023 (2 Shows)" ||
181                    t.Response.products[0].bundles[0].packageTitle == "Paris 2023 (2 Shows)" ||
182                    t.Response.products[0].bundles[0].packageTitle == "Hamburg 2023 (2 Shows)" ||
183                    t.Response.products[0].bundles[0].packageTitle == "Gothenburg 2023 (2 Shows)" ||
184                    t.Response.products[0].bundles[0].packageTitle == "East Rutherford 2023 (2 Shows)" ||
185                    t.Response.products[0].bundles[0].packageTitle == "Montreal 2023 (2 Shows)" ||
186                    t.Response.products[0].bundles[0].packageTitle == "Arlington 2023 (2 Shows)" ||
187                    t.Response.products[0].bundles[0].packageTitle == "Los Angeles 2023 (2 Shows)" ||
188                    t.Response.products[0].bundles[0].packageTitle == "Phoenix 2023 (2 Shows)" ||
189                    t.Response.products[0].bundles[0].packageTitle == "St. Louis 2023 (2 Shows)" ||
190                    t.Response.products[0].bundles[0].packageTitle == "Detroit 2023 (2 Shows)" ||
191                    t.Response.products[0].bundles[0].packageTitle == "Munich 2024 (2 Shows)" ||
192                    t.Response.products[0].bundles[0].packageTitle == "Helsinki 2024 
192(2 Shows)" ||
193                    t.Response.products[0].bundles[0].packageTitle == "Copenhagen 2024 (2 Shows)" ||
194                    t.Response.products[0].bundles[0].packageTitle == "Warsaw 2024 (2 Shows)" ||
195                    t.Response.products[0].bundles[0].packageTitle == "Madrid 2024 (2 Shows)" ||
196                    t.Response.products[0].bundles[0].packageTitle == "Foxborough 2024 (2 Shows)" ||
197                    t.Response.products[0].bundles[0].packageTitle == "Chicago 2024 (2 Shows)" ||
198                    t.Response.products[0].bundles[0].packageTitle == "Minneapolis 2024 (2 Shows)" ||
199                    t.Response.products[0].bundles[0].packageTitle == "Edmonton 2024 (2 Shows)" ||
200                    t.Response.products[0].bundles[0].packageTitle == "Seattle 2024 (2 Shows)" ||
201                    t.Response.products[0].bundles[0].packageTitle == "Mexico City 1 2024 (2 Shows)" ||
202                    t.Response.products[0].bundles[0].packageTitle == "Mexico City 2 2024 (2 Shows)" ||
203                    t.Response.products[0].bundles[0].packageTitle == "Donington 2023 (2 Shows)" ||
204                    t.Response.products[0].bundles[0].packageTitle == "Denver 2025 (2 Shows)" ||
205                    t.Response.products[0].bundles[0].packageTitle == "Santa Clara 2025 (2 Shows)" ||
206                    t.Response.products[0].bundles[0].packageTitle == "Tampa 2025 (2 Shows)" ||
207                    t.Response.products[0].bundles[0].packageTitle == "Philadelphia 2025 (2 Shows)" ||
208                    t.Response.products[0].bundles[0].packageTitle == "Columbus 2025 (2 Shows)" ||
209                    t.Response.products[0].bundles[0].packageTitle == "Nashville 2025 (2 Shows)" ||
210                    t.Response.products[0].bundles[0].packageTitle == "Toronto 2025 (2 Shows)"
211                    ) {
212                    var epkg = $("#buypkgmarkup");
213                    epkg.empty();
214                    var ulMarkup = '<a class="dropdown-toggle"><span class="avpkgtype">Buy 2-Show Bundle&nbsp;<span class="dicon icon-caret-down" style="font-size: 14px;"></span></a><ul class="dropdown">'
215
216                    for (var i = 0; i < t.Response.products.length; i++) {
217                        if (t.Response.products[i].formatStr == "MP3" || t.Response.products[i].formatStr == "FLAC" || t.Response.products[i].formatStr == "ALAC" || t.Response.products[i].formatStr == "FLAC-HD" || t.Response.products[i].formatStr == "ALAC-HD" || t.Response.products[i].formatStr == "CD") {
218
219                            if (t.Response.products[i].bundles && t.Response.products[i].bundles[0] && t.Response.products[i].bundles[0].packageFormat == "MP3") {
220                                ulMarkup += '<li><a href="https://www.livemetallica.com/cart.aspx?cmd=add&costplanID=' + t.Response.products[i].bundles[0].costplanID + '">MP3 ' + toUSD(t.Response.products[i].bundles[0].cost / 100) + '</a></li>';   
221                            }
222                            if (t.Response.products[i].bundles && t.Response.products[i].bundles[0] && t.Response.products[i].bundles[0].packageFormat == "FLAC") {
223                                ulMarkup += '<li><a href="https://www.livemetallica.com/cart.aspx?cmd=add&costplanID=' + t.Response.products[i].bundles[0].costplanID + '">FLAC ' + toUSD(t.Response.products[i].bundles[0].cost / 100) + '</a></li>';   
224                            }
225                             if (t.Response.products[i].bundles && t.Response.products[i].bundles[0] && t.Response.products[i].bundles[0].packageFormat == "ALAC") {
226                                ulMarkup += '<li><a href="https://www.livemetallica.com/cart.aspx?cmd=add&costplanID=' + t.Response.products[i].bundles[0].costplanID + '">ALAC ' + toUSD(t.Response.products[i].bundles[0].cost / 100) + '</a></li>';   
227                            }
228                            if (t.Response.products[i].bundles && t.Response.products[i].bundles[0] && t.Response.products[i].bundles[0].packageFormat == "FLAC-HD") {
229                                ulMarkup += '<li><a href="https://www.livemetallica.com/cart.aspx?cmd=add&costplanID=' + t.Response.products[i].bundles[0].costplanID + '">FLAC-HD ' + toUSD(t.Response.products[i].bundles[0].cost / 100) + '</a></li>';   
230                            }
231                            if (t.Response.products[i].bundles && t.Response.products[i].bundles[0] && t.Response.products[i].bundles[0].packageFormat == "ALAC-HD") {
232                                ulMarkup += '<li><a href="https://www.livemetallica.com/cart.aspx?cmd=add&costplanID=' + t.Response.products[i].bundles[0].costplanID + '">ALAC-HD ' + toUSD(t.Response.products[i].bundles[0].cost / 100) + '</a></li>';   
233                            }
234                            if (t.Response.products[i].bundles && t.Response.products[i].bundles[0] && t.Response.products[i].bundles[0].packageFormat == "CD") {
235                                ulMarkup += '<li><a href="https://www.livemetallica.com/cart.aspx?cmd=add&costplanID=' + t.Response.products[i].bundles[0].costplanID + '">CD ' + toUSD(t.Response.products[i].bundles[0].cost / 100) + '</a></li>';   
236                            }
237                        }
238                    }
239
240                    ulMarkup += '</ul>'
241
242                    epkg.append(ulMarkup)
243                }
244            }
245
246        }
247        0 == r && (u += ''), u += "</ul>"
248    }).complete(function() {
249        t.html(g), t.find(".social-link-list a").click(ShareFeaturedItem), s.find(".single a").click(addToCart), e.html(u), e.find(".nugster a").click(getNugster), a.html(formattednotes += "</section>"), $("#ubaplayer").ubaPlayer({
250            codecs: [{
251                name: "MP3",
252                codec: "audio/mpeg;"
253            }]
254        }), $(".card-inner").click(function() {
255            var t = $(this).attr("id");
256            location.href = t
257        }
257), $(".dropdown-toggle").click(function() {
258            $(this).next(".dropdown").toggle(), $(".dicon").toggleClass("icon-caret-up icon-caret-down")
259        }), $(document).click(function(t) {
260            var e = t.target;
261            !$(e).is(".dropdown-toggle") && $(e).parents().is(".dropdown-toggle")
262        })
263    })
264}
265
266function GetIndGroup(t) {
267    var e = $("#socialLinks");
268    e.empty();
269    var a, s, o = $("#buymarkup");
270    o.empty(), $.getJSON(NugsSettings.get("api"), {
271        method: "catalog.package",
272        packageID: t
273    }, function(t) {
274        a = "<ul class='social-link-list'><li class='social-link-list-item'><a><span class='social-link-list-item-icon'><span class='icon-facebook' data-share-url='" + NugsSettings.get("url") + t.Response.pageURL + "' data-share-fb-caption='www.livemetallica.com - Download Live Metallica " + t.Response.listingName + ", MP3 and FLAC' data-share-fb-description='" + t.Response.sellText + "'></span></span><span class='social-link-list-item-label'>Facebook</span></a></li><li class='social-link-list-item'><a><span class='social-link-list-item-icon'><span class='icon-twitter' data-share-tweet='Download " + t.Response.listingName + "  at www.livemetallica.com' data-share-url='" + NugsSettings.get("url") + t.Response.pageURL + "'></span></span><span class='social-link-list-item-label'>Twitter</span></a></li></ul>", s = '<a class="dropdown-toggle">Buy Package&nbsp;<span class="icon-caret-down" style="font-size: 14px;"></span></a><ul class="dropdown">', $.each(t.Response.pricing, function(t, e) {
275            var a = toUSD(e.cost / 100);
276            s += '<li><a href="' + NugsSettings.get("securl") + "/cart.aspx?cmd=add&costplanID=" + e.costplanID + '">BUY ' + e.packageFormat + " " + a + "</a></li>"
277        }), o.html(s += "</ul>")
278    }).complete(function() {
279        $(".dropdown-toggle").click(function() {
280            $(this).next(".dropdown").toggle()
281        }), $(document).click(function(t) {
282            var e = t.target;
283            $(e).is(".dropdown-toggle") || $(e).parents().is(".dropdown-toggle") || $(".dropdown").hide()
284        }), e.html(a), e.find(".social-link-list a").click(ShareFeaturedItem)
285    })
286}
287
288function GetHomeItems() {
289    $("#ldloads").hasClass("active") ? ($(".latest").show(), $(".top").hide()) : ($(".latest").hide(), $(".top").show()), $("#ldloads").click(function() {
290        $(".latest").show(), $(".top").hide(), $("#ldloads").addClass("active"), $("#tdloads").removeClass("active"), $(".homesection").html("Latest")
291    }), $("#tdloads").click(function() {
292        $(".latest").hide(), $(".top").show(), $("#ldloads").removeClass("active"), $("#tdloads").addClass("active"), $(".homesection").html("Top Downloads")
293    });
294    var t = $(".latest");
295    t.empty();
296    var s = "",
297        o = "";
298    $.getJSON(NugsSettings.get("api"), {
299        method: "catalog.latest",
300        limit: 8
301    }, function(t) {
302        $.each(t.Response.recentItems, function(t, e) {
303            var a = NugsSettings.get("show_imgurl") + "met" + moment(e.showDateFormattedShort).format("YYMMDD") + ".jpg";
304            e.showDateFormattedShort ? (o = e.performanceDateStr + " " + e.venueCity + " " + e.venueState, s += '<div class="card"><a class="audio-album-list-item" href="' + NugsSettings.get("url") + e.pageURL + '" title="' + o + '" style="background-image:url(' + a + ')"></a></div>') : s += '<div class="card"><a class="audio-album-list-item" href="' + NugsSettings.get("url") + e.pageURL + '" title="' + e.albumTitle + '" style="background-image:url(' + a + ')"></a></div>'
305        })
306    }).complete(function() {
307        t.html(s)
308    });
309    var e = $(".top");
310    e.empty();
311    var a = "";
312    $.getJSON(NugsSettings.get("api"), {
313        method: "catalog.popular",
314        limit: 8,
315        listtype: "shows"
316    }, function(t) {
317        $.each(t.Response.popularItems, function(t, e) {
318            tcoverpicsrc = NugsSettings.get("show_imgurl") + "met" + moment(e.showDate).format("YYMMDD") + ".jpg", o = moment(e.showDate, "M/D/YYYY").format("MMM DD, YYYY") + " " + e.venueCity + " " + e.venueState, a += '<div class="card"><a class="audio-album-list-item" href="' + NugsSettings.get("url") + e.pageURL + '" title="' + o + '" style="background-image:url(' + tcoverpicsrc + ')"></a></div>'
319        })
320    }).complete(function() {
321        e.html(a)
322    })
323}
324
325function getCartRecs() {
326    var s, t = $(".top");
327    t.empty(), s = new Array;
328    var o = "";
329    $.getJSON(NugsSettings.get("api"), {
330        method: "catalog.popular",
331        limit: 4,
332        listtype: "shows"
333    }, function(t) {
334        $.each(t.Response.popularItems, function(t, e) {
335            s.push(e);
336            var a = NugsSettings.get("show_imgurl") + "met" + moment(e.showDate).format("YYMMDD") + ".jpg";
337            o += '<div class="card"><butnav style="position: relative;"><a class="dropdown-toggle" data-id="' + e.containerID + '">Buy Show&nbsp;<span class="dicon' + e.containerID + ' icon-caret-down" style="font-size: 14px;"></span></a><ul id="' + e.containerID + '" class="dropdown"></ul></butnav><a class="audio-album-list-item" href="' + NugsSettings.get("url") + e.pageURL + '" title="' + e.showDate + " " + e.venueCity + ", " + e.venueState + '" style="background-image:url(' + a + ')"></a></div>'
338        })
339    }).complete(function() {
340        t.html(o), $.each(s, function(t, e) {
341            getCartShows(e.containerID)
342        }
342), $(".dropdown-toggle").click(function(t) {
343            $(this).next(".dropdown").toggle();
344            var e = $(t.target).data("id");
345            $(".dicon" + e).toggleClass("icon-caret-up icon-caret-down")
346        }), $(document).click(function(t) {
347            var e = t.target;
348            $(e).is(".dropdown-toggle") || $(e).parents().is(".dropdown-toggle") || $(".dropdown").hide()
349        })
350    })
351}
352
353function getCartShows(o) {
354    var t = $("#" + o);
355    t.empty();
356    var i, n = "",
357        r = "",
358        l = "",
359        c = "",
360        d = "",
361        p = "";
362    i = new Array, $.getJSON(NugsSettings.get("api"), {
363        method: "catalog.container",
364        containerID: o
365    }, function(t) {
366        var e, a;
367        ($.each(t.Response.products, function(t, e) {
368            var a = e.formatStr;
369            "MP3" == a && (c = e), "ALAC" != a && "FLAC" != a || r && "ALAC" != a || (r = e), "ALAC-HD" != a && "FLAC-HD" != a && "MQA" != a || l && "ALAC-HD" != a || (l = e), "DSD" == a && (p = e), "CD" == a && 0 != (d = e).bundles.length && $.each(e.bundles, function(t, e) {
370                1 == e.displayOnProductPage && i.push(e)
371            })
372        }), c) && (e = toUSD(c.cost / 100), 0 != c.cost && (a = "MP3 " + e, n += '<li><a href="' + NugsSettings.get("securl") + "/cart.aspx?cmd=add&mediaID=" + c.skuID + "&costplanID=" + c.costplanID + '">' + a + "</a></li>"));
373        if (r && (e = toUSD(r.cost / 100), n += '<li><a href="' + NugsSettings.get("securl") + "/cart.aspx?cmd=add&mediaID=" + r.skuID + "&costplanID=" + r.costplanID + '">LOSSLESS ' + e + "</a></li>"), l && (e = toUSD(l.cost / 100), n += '<li><a href="' + NugsSettings.get("securl") + "/cart.aspx?cmd=add&mediaID=" + l.skuID + "&costplanID=" + l.costplanID + '">HD-AUDIO ' + e + "</a></li>"), p && (e = toUSD(p.cost / 100), n += '<li><a href="' + NugsSettings.get("securl") + "/cart.aspx?cmd=add&mediaID=" + p.skuID + "&costplanID=" + p.costplanID + '">DSD ' + e + "</a></li>"), d) {
374            var s = "";
375            5 == d.productStatusType && (s = "Pre-Order"), e = toUSD(d.cost / 100), n += '<li><a href="' + NugsSettings.get("securl") + "/cart.aspx?cmd=add&mediaID=" + d.skuID + "&costplanID=" + d.costplanID + '">' + s + " CD " + e + "</a></li>", 0 != i.length && $.each(i, function(t, e) {
376                var a = toUSD(e.cost / 100);
377                n += '<li><a href="' + NugsSettings.get("securl") + "/cart.aspx?cmd=add&costplanID=" + e.costplanID + '">' + s + " " + e.packageFormat + " " + a + "</a></li>"
378            })
379        }
380        //n += '<li><a href="' + NugsSettings.get("securl") + "/giftItem.aspx?show=" + o + '">GIFT THIS</a></li>'
381    }).complete(function() {
382        t.html(n)
383    })
384}
385$(".js-mobile-nav-toggle").click(function() {
386    $(this).toggleClass("btn-s-active"), $header.find(".js-nav").toggleClass("main-nav-s-visible")
387}), $(".js-sub-nav > a").click(function(t) {
388    t.preventDefault();
389    var e = $(this).parent().find(".sub-nav-list"),
390        a = $(".js-sub-nav > a"),
391        s = $(".sub-nav-list");
392    if ($header.addClass("visible-sub-nav"), s.removeClass("sub-nav-list-s-visible"), $(this).hasClass("active")) return $header.removeClass("visible-sub-nav"), a.removeClass("active"), !1;
393    a.removeClass("active"), e.addClass("sub-nav-list-s-visible"), $(this).addClass("active")
394}), $(function() {
395    "use strict";
396    $("body").append($('<div class="tooltip-overlay"/>').click(function() {
397        $("[data-tooltip-name], .tooltip-overlay").hide(), $(".is-active-tooltip").removeClass("is-active-tooltip")
398    })).on("click", "[data-tooltip]", function(t) {
399        $(".tooltip-overlay").click();
400        var e = $(this).addClass("is-active-tooltip").attr("data-tooltip"),
401            a = $('[data-tooltip-name="' + e + '"]');
402        if (0 === a.length) return console.warn("met.tooltip.open() with name", e, "failed");
403        var s = 0,
404            o = 0,
405            i = a.data("tooltip-offset");
406        if (i) {
407            var n = i.split(",");
408            s = Number(n[0]), o = Number(n[1])
409        }
410        var r = Math.max(a.outerWidth() + s, $(this).offset().left + $(this).outerWidth() + s),
411            l = o + $(this).offset().top + ($(this).is("[data-tooltip-up]") ? -1 * a.outerHeight() : o + $(this).outerHeight());
412        r + a.outerWidth() > $(window).width() && (r = $(window).width() - 40), a.appendTo("body").show().css({
413            left: r,
414            top: l
415        }), $(".tooltip-overlay").show()
416    })
417}), $(".back").click(function(t) {
418    return t.preventDefault(), $("html, body").animate({
419        scrollTop: 0
420    }, 300), !1
421});
422var cT = {
423    init: function() {
424        $(".btn-ship").click(function() {
425            var t = $(this).attr("id"),
426                e = "ship-" + t,
427                a = $("#" + e),
428                s = $(this);
429            a.hasClass("active") || getShipInfo(t, e), $(a).slideToggle(function() {
430                "none" == $(this).css("display") ? s.html('Shipping Info <span style="font-size:14px;">↓</span>') : (s.html('Shipping Info <span style="font-size:14px;">↑</span>'), a.addClass("active"))
431            })
432        })
433    }
434};
435
436function getOrders() {
437    var t = $("#orders");
438    t.empty(), $.getJSON(NugsSettings.get("secure_api"), {
439        method: "user.site.getphysicalorders"
440    }, function(t) {
441        markup = "", 0 < t.Response.length ? $.each(t.Response, function(t, e) {
442            markup += '<table class="orders-table"><thead><tr><th>
442Date</th><th>Confirmation #</th><th>Qty</th><th></th></tr></thead><tbody><tr><td valign="top">' + moment(e.orderDate).format("DD MMM, YYYY") + '</td><td valign="top">' + e.advancedOptions.customField2 + '</td><td valign="top">', $.each(e.items, function(t, e) {
443                markup += e.quantity + " " + e.name + "<br>"
444            }), markup += '</td><td valign="top"><a id="' + e.orderNumber + '" class="btn-ship" style="text-decoration:none;cursor:pointer;float: right;  margin-top: -5px;">Shipping Info <span style="font-size:14px;">↓</span></a></td></tr></tbody></table><div style="display:none;margin-bottom: 20px;" id="ship-' + e.orderNumber + '"></div>'
445        }) : markup += "<h2>You don't have any physical orders</h2>"
446    }).complete(function() {
447        t.html(markup), cT.init()
448    })
449}
450
451function getShipInfo(t, e) {
452    var a, s, o, i = $("#" + e);
453    i.empty(), $("#orders").block({
454        overlayCSS: {
455            backgroundColor: "#000"
456        },
457        message: '<div class="spinner"></div>LOADING...',
458        css: {
459            border: "none",
460            color: "#fff",
461            background: "none"
462        }
463    });
464    var n = /usps/gi;
465    $.getJSON(NugsSettings.get("secure_api"), {
466        method: "user.site.getorderstatus",
467        oan: t
468    }, function(t) {
469        o = "", $.each(t.Response, function(t, e) {
470            0 != e.order.orderId ? (a = "on_hold" == e.order.orderStatus ? "pre-order" : e.order.orderStatus.replace(/\_/g, " "), o += '<div><span class="ordheader">Order #:</span><span class="orddets">' + e.order.orderNumber + '</span></div><div><span class="ordheader">Order Status:</span><span class="orddets">' + a + "</span></div>", e.shipment && (e.shipment.serviceCode && -1 < e.shipment.serviceCode.search(n) ? (s = e.shipment.serviceCode.replace(/\_/g, " "), o += '<div><span class="ordheader">Service Code:</span><span class="orddets">' + s + '</span></div><div><span class="ordheader">Tracking #:</span><span class="orddets"><a style="text-decoration:underline;" href="https://tools.usps.com/go/TrackConfirmAction.action?tLabels=' + e.shipment.trackingNumber + '" target="_blank">' + e.shipment.trackingNumber + "</a></span></div>") : o += '<div><span class="ordheader">International</span><span class="orddets">currently tracking is unavailable</span></div>', o += '<div><span class="ordheader">Date Shipped:</span><span class="orddets">' + moment(e.shipment.shipDate).format("DD MMM, YYYY") + '</span></div><div><span class="ordheader">Items:</span><span class="orddets">', $.each(e.order.items, function(t, e) {
471                o += e.name + "<br />"
472            })), o += "</span></div>") : o += '<span class="ordheader">Order Status:</span><span class="orddets">Pending</span></div>'
473        })
474    }).complete(function() {
475        i.html(o), $("#orders").unblock()
476    })
477}

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.