- // File: adb-popup.js
- loader([{
- type: "$",
- value: "#abPopup"
- }, {
- type: "component",
- value: "GeneralOverlay"
- }, {
- type: "$",
- value: window
- }]).ready(function (a, b, c) {
- function d() {
- c.off(), window.refresher_stream = function () {}
- }
- function e() {
- b.show({
- closeEnabled: !1,
- $popup: a,
- center: !0
- }).getEl().before('<div class="topBarOverlay"></div>'), h.find("#topAlertBarContainer").remove()
- }
- function f() {
- function a() {
- var a = window.navigator.userAgent,
- b = a.indexOf("Trident/"),
- c = a.indexOf("Edge/"),
- d = a.indexOf("MSIE ");
- return Math.max(d, c, b) > 0
- }
- var a = a(),
- b = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor) && !a,
- c = /Firefox/.test(navigator.userAgent),
- d = /Safari/.test(navigator.userAgent) && /Apple Computer/.test(navigator.vendor),
- e = {
- isIE: a,
- isChrome: b,
- isFireFox: c,
- isSafari: d,
- isOneOfThoseBrowsers: [a, b, c, d].indexOf(!0) > -1
- },
- f = window.CDN_URL + "/",
- g = window.LANGUAGE_SUFFIX,
- h = [f + "header_logo.png"];
- switch ([a, b, c, d].indexOf(!0)) {
- case 0:
- h.push(f + "ab-ie.png");
- break;
- case 1:
- h.push(f + "ab-ch-" + g + "-step1_v3.1.png"), h.push(f + "ab-ch-" + g + "-step2_v3.1.png");
- break;
- case 2:
- h.push(f + "ab-ff-" + g + "_v2.png");
- break;
- case 3:
- h.push(f + "ab-saf-" + g + "_v2.png")
- }
- return e.refs = h, e
- }
- function g(a) {
- n.each(function (c) {
- var d = n.eq(c);
- d.hasClass(a) ? (d.addClass("active"), k.attr("src", i.refs[c + 1]).one("load", b.centerPopup)) : d.removeClass("active")
- })
- }
- var h = this,
- i = f();
- if (i.isOneOfThoseBrowsers && 1 != window.google_ad_status) {
- var j = $("#ab-how-pop"),
- k = $("#ab-content-src");
- i.refs && i.refs[0] && $("#ab-header-src").attr("src", i.refs[0]), i.refs && i.refs[1] && k.attr("src", i.refs[1]);
- var l = a.find(".js-intro"),
- m = a.find(".headerLinks"),
- n = a.find(".js-toggle-btn");
- a.find(".js-chrome-ext").click(function () {
- l.addClass("displayNone"), i.isChrome ? g("js-chrome-ext") : m.addClass("displayNone"), a.addClass("howTo"), j.removeClass("displayNone"), b.centerPopup()
- }), a.find(".js-adbp").click(function () {
- l.addClass("displayNone"), g("js-adbp"), a.addClass("howTo"), b.centerPopup()
- }), e(), d(), c.resize(b.centerPopup)
- }
- });
https://forums.lanik.us/viewtopic.php?p=99835#p99835