You've already forked Atomcms-edit
Initial commit
This commit is contained in:
Executable
+9
File diff suppressed because one or more lines are too long
Executable
+5
File diff suppressed because one or more lines are too long
Executable
+30
@@ -0,0 +1,30 @@
|
||||
// Disconnected from client
|
||||
function disconnected() {
|
||||
document.querySelector("#disconnected").style =
|
||||
"display: block !important;";
|
||||
}
|
||||
|
||||
let frame = document.getElementById("nitro");
|
||||
window.FlashExternalInterface = {};
|
||||
window.FlashExternalInterface.disconnect = () => {
|
||||
disconnected();
|
||||
};
|
||||
|
||||
if (frame && frame.contentWindow) {
|
||||
window.addEventListener("message", (ev) => {
|
||||
if (!frame || ev.source !== frame.contentWindow) return;
|
||||
const legacyInterface = "Nitro_LegacyExternalInterface";
|
||||
if (typeof ev.data !== "string") return;
|
||||
if (ev.data.startsWith(legacyInterface)) {
|
||||
const { method, params } = JSON.parse(
|
||||
ev.data.substr(legacyInterface.length)
|
||||
);
|
||||
if (!("FlashExternalInterface" in window)) return;
|
||||
const fn = window.FlashExternalInterface[method];
|
||||
if (!fn) return;
|
||||
fn(...params);
|
||||
return;
|
||||
}
|
||||
});
|
||||
}
|
||||
// Disconnected from client end
|
||||
Executable
+479
@@ -0,0 +1,479 @@
|
||||
!(function (root, name, definition) {
|
||||
if (typeof module != "undefined" && module.exports)
|
||||
module.exports = definition();
|
||||
else if (typeof define == "function" && define.amd)
|
||||
define(name, definition);
|
||||
else root[name] = definition();
|
||||
})(this, "bowser", function () {
|
||||
var t = true;
|
||||
function detect(ua) {
|
||||
function getFirstMatch(regex) {
|
||||
var match = ua.match(regex);
|
||||
return (match && match.length > 1 && match[1]) || "";
|
||||
}
|
||||
function getSecondMatch(regex) {
|
||||
var match = ua.match(regex);
|
||||
return (match && match.length > 1 && match[2]) || "";
|
||||
}
|
||||
var iosdevice = getFirstMatch(/(ipod|iphone|ipad)/i).toLowerCase(),
|
||||
likeAndroid = /like android/i.test(ua),
|
||||
android = !likeAndroid && /android/i.test(ua),
|
||||
nexusMobile = /nexus\s*[0-6]\s*/i.test(ua),
|
||||
nexusTablet = !nexusMobile && /nexus\s*[0-9]+/i.test(ua),
|
||||
chromeos = /CrOS/.test(ua),
|
||||
silk = /silk/i.test(ua),
|
||||
sailfish = /sailfish/i.test(ua),
|
||||
tizen = /tizen/i.test(ua),
|
||||
webos = /(web|hpw)os/i.test(ua),
|
||||
windowsphone = /windows phone/i.test(ua),
|
||||
samsungBrowser = /SamsungBrowser/i.test(ua),
|
||||
windows = !windowsphone && /windows/i.test(ua),
|
||||
mac = !iosdevice && !silk && /macintosh/i.test(ua),
|
||||
linux =
|
||||
!android && !sailfish && !tizen && !webos && /linux/i.test(ua),
|
||||
edgeVersion = getFirstMatch(/edge\/(\d+(\.\d+)?)/i),
|
||||
versionIdentifier = getFirstMatch(/version\/(\d+(\.\d+)?)/i),
|
||||
tablet = /tablet/i.test(ua),
|
||||
mobile = !tablet && /[^-]mobi/i.test(ua),
|
||||
xbox = /xbox/i.test(ua),
|
||||
result;
|
||||
if (/opera/i.test(ua)) {
|
||||
result = {
|
||||
name: "Opera",
|
||||
opera: t,
|
||||
version:
|
||||
versionIdentifier ||
|
||||
getFirstMatch(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (/opr|opios/i.test(ua)) {
|
||||
result = {
|
||||
name: "Opera",
|
||||
opera: t,
|
||||
version:
|
||||
getFirstMatch(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i) ||
|
||||
versionIdentifier,
|
||||
};
|
||||
} else if (/SamsungBrowser/i.test(ua)) {
|
||||
result = {
|
||||
name: "Samsung Internet for Android",
|
||||
samsungBrowser: t,
|
||||
version:
|
||||
versionIdentifier ||
|
||||
getFirstMatch(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (/coast/i.test(ua)) {
|
||||
result = {
|
||||
name: "Opera Coast",
|
||||
coast: t,
|
||||
version:
|
||||
versionIdentifier ||
|
||||
getFirstMatch(/(?:coast)[\s\/](\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (/yabrowser/i.test(ua)) {
|
||||
result = {
|
||||
name: "Yandex Browser",
|
||||
yandexbrowser: t,
|
||||
version:
|
||||
versionIdentifier ||
|
||||
getFirstMatch(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (/ucbrowser/i.test(ua)) {
|
||||
result = {
|
||||
name: "UC Browser",
|
||||
ucbrowser: t,
|
||||
version: getFirstMatch(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i),
|
||||
};
|
||||
} else if (/mxios/i.test(ua)) {
|
||||
result = {
|
||||
name: "Maxthon",
|
||||
maxthon: t,
|
||||
version: getFirstMatch(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i),
|
||||
};
|
||||
} else if (/epiphany/i.test(ua)) {
|
||||
result = {
|
||||
name: "Epiphany",
|
||||
epiphany: t,
|
||||
version: getFirstMatch(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i),
|
||||
};
|
||||
} else if (/puffin/i.test(ua)) {
|
||||
result = {
|
||||
name: "Puffin",
|
||||
puffin: t,
|
||||
version: getFirstMatch(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i),
|
||||
};
|
||||
} else if (/sleipnir/i.test(ua)) {
|
||||
result = {
|
||||
name: "Sleipnir",
|
||||
sleipnir: t,
|
||||
version: getFirstMatch(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i),
|
||||
};
|
||||
} else if (/k-meleon/i.test(ua)) {
|
||||
result = {
|
||||
name: "K-Meleon",
|
||||
kMeleon: t,
|
||||
version: getFirstMatch(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i),
|
||||
};
|
||||
} else if (windowsphone) {
|
||||
result = { name: "Windows Phone", windowsphone: t };
|
||||
if (edgeVersion) {
|
||||
result.msedge = t;
|
||||
result.version = edgeVersion;
|
||||
} else {
|
||||
result.msie = t;
|
||||
result.version = getFirstMatch(/iemobile\/(\d+(\.\d+)?)/i);
|
||||
}
|
||||
} else if (/msie|trident/i.test(ua)) {
|
||||
result = {
|
||||
name: "Internet Explorer",
|
||||
msie: t,
|
||||
version: getFirstMatch(/(?:msie |rv:)(\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (chromeos) {
|
||||
result = {
|
||||
name: "Chrome",
|
||||
chromeos: t,
|
||||
chromeBook: t,
|
||||
chrome: t,
|
||||
version: getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (/chrome.+? edge/i.test(ua)) {
|
||||
result = {
|
||||
name: "Microsoft Edge",
|
||||
msedge: t,
|
||||
version: edgeVersion,
|
||||
};
|
||||
} else if (/vivaldi/i.test(ua)) {
|
||||
result = {
|
||||
name: "Vivaldi",
|
||||
vivaldi: t,
|
||||
version:
|
||||
getFirstMatch(/vivaldi\/(\d+(\.\d+)?)/i) ||
|
||||
versionIdentifier,
|
||||
};
|
||||
} else if (sailfish) {
|
||||
result = {
|
||||
name: "Sailfish",
|
||||
sailfish: t,
|
||||
version: getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (/seamonkey\//i.test(ua)) {
|
||||
result = {
|
||||
name: "SeaMonkey",
|
||||
seamonkey: t,
|
||||
version: getFirstMatch(/seamonkey\/(\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (/firefox|iceweasel|fxios/i.test(ua)) {
|
||||
result = {
|
||||
name: "Firefox",
|
||||
firefox: t,
|
||||
version: getFirstMatch(
|
||||
/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i
|
||||
),
|
||||
};
|
||||
if (/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(ua)) {
|
||||
result.firefoxos = t;
|
||||
}
|
||||
} else if (silk) {
|
||||
result = {
|
||||
name: "Amazon Silk",
|
||||
silk: t,
|
||||
version: getFirstMatch(/silk\/(\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (/phantom/i.test(ua)) {
|
||||
result = {
|
||||
name: "PhantomJS",
|
||||
phantom: t,
|
||||
version: getFirstMatch(/phantomjs\/(\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (/slimerjs/i.test(ua)) {
|
||||
result = {
|
||||
name: "SlimerJS",
|
||||
slimer: t,
|
||||
version: getFirstMatch(/slimerjs\/(\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (/blackberry|\bbb\d+/i.test(ua) || /rim\stablet/i.test(ua)) {
|
||||
result = {
|
||||
name: "BlackBerry",
|
||||
blackberry: t,
|
||||
version:
|
||||
versionIdentifier ||
|
||||
getFirstMatch(/blackberry[\d]+\/(\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (webos) {
|
||||
result = {
|
||||
name: "WebOS",
|
||||
webos: t,
|
||||
version:
|
||||
versionIdentifier ||
|
||||
getFirstMatch(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i),
|
||||
};
|
||||
/touchpad\//i.test(ua) && (result.touchpad = t);
|
||||
} else if (/bada/i.test(ua)) {
|
||||
result = {
|
||||
name: "Bada",
|
||||
bada: t,
|
||||
version: getFirstMatch(/dolfin\/(\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (tizen) {
|
||||
result = {
|
||||
name: "Tizen",
|
||||
tizen: t,
|
||||
version:
|
||||
getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i) ||
|
||||
versionIdentifier,
|
||||
};
|
||||
} else if (/qupzilla/i.test(ua)) {
|
||||
result = {
|
||||
name: "QupZilla",
|
||||
qupzilla: t,
|
||||
version:
|
||||
getFirstMatch(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i) ||
|
||||
versionIdentifier,
|
||||
};
|
||||
} else if (/chromium/i.test(ua)) {
|
||||
result = {
|
||||
name: "Chromium",
|
||||
chromium: t,
|
||||
version:
|
||||
getFirstMatch(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i) ||
|
||||
versionIdentifier,
|
||||
};
|
||||
} else if (/chrome|crios|crmo/i.test(ua)) {
|
||||
result = {
|
||||
name: "Chrome",
|
||||
chrome: t,
|
||||
version: getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (android) {
|
||||
result = { name: "Android", version: versionIdentifier };
|
||||
} else if (/safari|applewebkit/i.test(ua)) {
|
||||
result = { name: "Safari", safari: t };
|
||||
if (versionIdentifier) {
|
||||
result.version = versionIdentifier;
|
||||
}
|
||||
} else if (iosdevice) {
|
||||
result = {
|
||||
name:
|
||||
iosdevice == "iphone"
|
||||
? "iPhone"
|
||||
: iosdevice == "ipad"
|
||||
? "iPad"
|
||||
: "iPod",
|
||||
};
|
||||
if (versionIdentifier) {
|
||||
result.version = versionIdentifier;
|
||||
}
|
||||
} else if (/googlebot/i.test(ua)) {
|
||||
result = {
|
||||
name: "Googlebot",
|
||||
googlebot: t,
|
||||
version:
|
||||
getFirstMatch(/googlebot\/(\d+(\.\d+))/i) ||
|
||||
versionIdentifier,
|
||||
};
|
||||
} else {
|
||||
result = {
|
||||
name: getFirstMatch(/^(.*)\/(.*) /),
|
||||
version: getSecondMatch(/^(.*)\/(.*) /),
|
||||
};
|
||||
}
|
||||
if (!result.msedge && /(apple)?webkit/i.test(ua)) {
|
||||
if (/(apple)?webkit\/537\.36/i.test(ua)) {
|
||||
result.name = result.name || "Blink";
|
||||
result.blink = t;
|
||||
} else {
|
||||
result.name = result.name || "Webkit";
|
||||
result.webkit = t;
|
||||
}
|
||||
if (!result.version && versionIdentifier) {
|
||||
result.version = versionIdentifier;
|
||||
}
|
||||
} else if (!result.opera && /gecko\//i.test(ua)) {
|
||||
result.name = result.name || "Gecko";
|
||||
result.gecko = t;
|
||||
result.version =
|
||||
result.version || getFirstMatch(/gecko\/(\d+(\.\d+)?)/i);
|
||||
}
|
||||
if (
|
||||
!result.windowsphone &&
|
||||
!result.msedge &&
|
||||
(android || result.silk)
|
||||
) {
|
||||
result.android = t;
|
||||
} else if (!result.windowsphone && !result.msedge && iosdevice) {
|
||||
result[iosdevice] = t;
|
||||
result.ios = t;
|
||||
} else if (mac) {
|
||||
result.mac = t;
|
||||
} else if (xbox) {
|
||||
result.xbox = t;
|
||||
} else if (windows) {
|
||||
result.windows = t;
|
||||
} else if (linux) {
|
||||
result.linux = t;
|
||||
}
|
||||
var osVersion = "";
|
||||
if (result.windowsphone) {
|
||||
osVersion = getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i);
|
||||
} else if (iosdevice) {
|
||||
osVersion = getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i);
|
||||
osVersion = osVersion.replace(/[_\s]/g, ".");
|
||||
} else if (android) {
|
||||
osVersion = getFirstMatch(/android[ \/-](\d+(\.\d+)*)/i);
|
||||
} else if (result.webos) {
|
||||
osVersion = getFirstMatch(/(?:web|hpw)os\/(\d+(\.\d+)*)/i);
|
||||
} else if (result.blackberry) {
|
||||
osVersion = getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i);
|
||||
} else if (result.bada) {
|
||||
osVersion = getFirstMatch(/bada\/(\d+(\.\d+)*)/i);
|
||||
} else if (result.tizen) {
|
||||
osVersion = getFirstMatch(/tizen[\/\s](\d+(\.\d+)*)/i);
|
||||
}
|
||||
if (osVersion) {
|
||||
result.osversion = osVersion;
|
||||
}
|
||||
var osMajorVersion = osVersion.split(".")[0];
|
||||
if (
|
||||
tablet ||
|
||||
nexusTablet ||
|
||||
iosdevice == "ipad" ||
|
||||
(android &&
|
||||
(osMajorVersion == 3 || (osMajorVersion >= 4 && !mobile))) ||
|
||||
result.silk
|
||||
) {
|
||||
result.tablet = t;
|
||||
} else if (
|
||||
mobile ||
|
||||
iosdevice == "iphone" ||
|
||||
iosdevice == "ipod" ||
|
||||
android ||
|
||||
nexusMobile ||
|
||||
result.blackberry ||
|
||||
result.webos ||
|
||||
result.bada
|
||||
) {
|
||||
result.mobile = t;
|
||||
}
|
||||
if (
|
||||
result.msedge ||
|
||||
(result.msie && result.version >= 10) ||
|
||||
(result.yandexbrowser && result.version >= 15) ||
|
||||
(result.vivaldi && result.version >= 1.0) ||
|
||||
(result.chrome && result.version >= 20) ||
|
||||
(result.samsungBrowser && result.version >= 4) ||
|
||||
(result.firefox && result.version >= 20.0) ||
|
||||
(result.safari && result.version >= 6) ||
|
||||
(result.opera && result.version >= 10.0) ||
|
||||
(result.ios &&
|
||||
result.osversion &&
|
||||
result.osversion.split(".")[0] >= 6) ||
|
||||
(result.blackberry && result.version >= 10.1) ||
|
||||
(result.chromium && result.version >= 20)
|
||||
) {
|
||||
result.a = t;
|
||||
} else if (
|
||||
(result.msie && result.version < 10) ||
|
||||
(result.chrome && result.version < 20) ||
|
||||
(result.firefox && result.version < 20.0) ||
|
||||
(result.safari && result.version < 6) ||
|
||||
(result.opera && result.version < 10.0) ||
|
||||
(result.ios &&
|
||||
result.osversion &&
|
||||
result.osversion.split(".")[0] < 6) ||
|
||||
(result.chromium && result.version < 20)
|
||||
) {
|
||||
result.c = t;
|
||||
} else result.x = t;
|
||||
return result;
|
||||
}
|
||||
var bowser = detect(
|
||||
typeof navigator !== "undefined" ? navigator.userAgent || "" : ""
|
||||
);
|
||||
bowser.test = function (browserList) {
|
||||
for (var i = 0; i < browserList.length; ++i) {
|
||||
var browserItem = browserList[i];
|
||||
if (typeof browserItem === "string") {
|
||||
if (browserItem in bowser) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
function getVersionPrecision(version) {
|
||||
return version.split(".").length;
|
||||
}
|
||||
function map(arr, iterator) {
|
||||
var result = [],
|
||||
i;
|
||||
if (Array.prototype.map) {
|
||||
return Array.prototype.map.call(arr, iterator);
|
||||
}
|
||||
for (i = 0; i < arr.length; i++) {
|
||||
result.push(iterator(arr[i]));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
function compareVersions(versions) {
|
||||
var precision = Math.max(
|
||||
getVersionPrecision(versions[0]),
|
||||
getVersionPrecision(versions[1])
|
||||
);
|
||||
var chunks = map(versions, function (version) {
|
||||
var delta = precision - getVersionPrecision(version);
|
||||
version = version + new Array(delta + 1).join(".0");
|
||||
return map(version.split("."), function (chunk) {
|
||||
return new Array(20 - chunk.length).join("0") + chunk;
|
||||
}).reverse();
|
||||
});
|
||||
while (--precision >= 0) {
|
||||
if (chunks[0][precision] > chunks[1][precision]) {
|
||||
return 1;
|
||||
} else if (chunks[0][precision] === chunks[1][precision]) {
|
||||
if (precision === 0) {
|
||||
return 0;
|
||||
}
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
function isUnsupportedBrowser(minVersions, strictMode, ua) {
|
||||
var _bowser = bowser;
|
||||
if (typeof strictMode === "string") {
|
||||
ua = strictMode;
|
||||
strictMode = void 0;
|
||||
}
|
||||
if (strictMode === void 0) {
|
||||
strictMode = false;
|
||||
}
|
||||
if (ua) {
|
||||
_bowser = detect(ua);
|
||||
}
|
||||
var version = "" + _bowser.version;
|
||||
for (var browser in minVersions) {
|
||||
if (minVersions.hasOwnProperty(browser)) {
|
||||
if (_bowser[browser]) {
|
||||
if (typeof minVersions[browser] !== "string") {
|
||||
throw new Error(
|
||||
"Browser version in the minVersion map should be a string: " +
|
||||
browser +
|
||||
": " +
|
||||
String(minVersions)
|
||||
);
|
||||
}
|
||||
return compareVersions([version, minVersions[browser]]) < 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
return strictMode;
|
||||
}
|
||||
function check(minVersions, strictMode, ua) {
|
||||
return !isUnsupportedBrowser(minVersions, strictMode, ua);
|
||||
}
|
||||
bowser.isUnsupportedBrowser = isUnsupportedBrowser;
|
||||
bowser.compareVersions = compareVersions;
|
||||
bowser.check = check;
|
||||
bowser._detect = detect;
|
||||
return bowser;
|
||||
});
|
||||
Executable
+147
@@ -0,0 +1,147 @@
|
||||
(function ($) {
|
||||
$.fn.iframeTracker = function (handler) {
|
||||
var target = this.get();
|
||||
if (handler === null || handler === false) {
|
||||
$.iframeTracker.untrack(target);
|
||||
} else if (typeof handler == "object") {
|
||||
$.iframeTracker.track(target, handler);
|
||||
} else {
|
||||
throw new Error(
|
||||
"Wrong handler type (must be an object, or null|false to untrack)"
|
||||
);
|
||||
}
|
||||
};
|
||||
$.iframeTracker = {
|
||||
focusRetriever: null,
|
||||
focusRetrieved: false,
|
||||
handlersList: [],
|
||||
isIE8AndOlder: false,
|
||||
init: function () {
|
||||
try {
|
||||
if ($.browser.msie == true && $.browser.version < 9) {
|
||||
this.isIE8AndOlder = true;
|
||||
}
|
||||
} catch (ex) {
|
||||
try {
|
||||
var matches = navigator.userAgent.match(/(msie) ([\w.]+)/i);
|
||||
if (matches[2] < 9) {
|
||||
this.isIE8AndOlder = true;
|
||||
}
|
||||
} catch (ex2) {}
|
||||
}
|
||||
$(window).focus();
|
||||
$(window).blur(function (e) {
|
||||
$.iframeTracker.windowLoseFocus(e);
|
||||
});
|
||||
$("body").append(
|
||||
'<div style="position:fixed; top:0; left:0; overflow:hidden;"><input style="position:absolute; left:-300px;" type="text" value="" id="focus_retriever" readonly="true" /></div>'
|
||||
);
|
||||
this.focusRetriever = $("#focus_retriever");
|
||||
this.focusRetrieved = false;
|
||||
$(document).mousemove(function (e) {
|
||||
if (
|
||||
document.activeElement &&
|
||||
document.activeElement.tagName == "IFRAME"
|
||||
) {
|
||||
$.iframeTracker.focusRetriever.focus();
|
||||
$.iframeTracker.focusRetrieved = true;
|
||||
}
|
||||
});
|
||||
if (this.isIE8AndOlder) {
|
||||
this.focusRetriever.blur(function (e) {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
$.iframeTracker.windowLoseFocus(e);
|
||||
});
|
||||
$("body").click(function (e) {
|
||||
$(window).focus();
|
||||
});
|
||||
$("form").click(function (e) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
try {
|
||||
$("body").on("click", "form", function (e) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
} catch (ex) {
|
||||
console.log(
|
||||
"[iframeTracker] Please update jQuery to 1.7 or newer. (exception: " +
|
||||
ex.message +
|
||||
")"
|
||||
);
|
||||
}
|
||||
}
|
||||
},
|
||||
track: function (target, handler) {
|
||||
handler.target = target;
|
||||
$.iframeTracker.handlersList.push(handler);
|
||||
$(target)
|
||||
.bind(
|
||||
"mouseover",
|
||||
{ handler: handler },
|
||||
$.iframeTracker.mouseoverListener
|
||||
)
|
||||
.bind(
|
||||
"mouseout",
|
||||
{ handler: handler },
|
||||
$.iframeTracker.mouseoutListener
|
||||
);
|
||||
},
|
||||
untrack: function (target) {
|
||||
if (typeof Array.prototype.filter != "function") {
|
||||
console.log(
|
||||
"Your browser doesn't support Array filter, untrack disabled"
|
||||
);
|
||||
return;
|
||||
}
|
||||
$(target).each(function (index) {
|
||||
$(this)
|
||||
.unbind("mouseover", $.iframeTracker.mouseoverListener)
|
||||
.unbind("mouseout", $.iframeTracker.mouseoutListener);
|
||||
});
|
||||
var nullFilter = function (value) {
|
||||
return value === null ? false : true;
|
||||
};
|
||||
for (var i in this.handlersList) {
|
||||
for (var j in this.handlersList[i].target) {
|
||||
if (
|
||||
$.inArray(this.handlersList[i].target[j], target) !== -1
|
||||
) {
|
||||
this.handlersList[i].target[j] = null;
|
||||
}
|
||||
}
|
||||
this.handlersList[i].target =
|
||||
this.handlersList[i].target.filter(nullFilter);
|
||||
if (this.handlersList[i].target.length == 0) {
|
||||
this.handlersList[i] = null;
|
||||
}
|
||||
}
|
||||
this.handlersList = this.handlersList.filter(nullFilter);
|
||||
},
|
||||
mouseoverListener: function (e) {
|
||||
e.data.handler.over = true;
|
||||
try {
|
||||
e.data.handler.overCallback(this);
|
||||
} catch (ex) {}
|
||||
},
|
||||
mouseoutListener: function (e) {
|
||||
e.data.handler.over = false;
|
||||
$.iframeTracker.focusRetriever.focus();
|
||||
try {
|
||||
e.data.handler.outCallback(this);
|
||||
} catch (ex) {}
|
||||
},
|
||||
windowLoseFocus: function (event) {
|
||||
for (var i in this.handlersList) {
|
||||
if (this.handlersList[i].over == true) {
|
||||
try {
|
||||
this.handlersList[i].blurCallback();
|
||||
} catch (ex) {}
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
$(document).ready(function () {
|
||||
$.iframeTracker.init();
|
||||
});
|
||||
})(jQuery);
|
||||
Executable
+17
@@ -0,0 +1,17 @@
|
||||
function isTouchDevice() {
|
||||
return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
||||
}
|
||||
|
||||
// Use the isTouchDevice function
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
const isTouch = isTouchDevice();
|
||||
|
||||
// Now you can use the isTouch variable to conditionally handle touch devices
|
||||
if (isTouch) {
|
||||
// Handle touch devices here
|
||||
console.log("This is a touch device.");
|
||||
} else {
|
||||
// Handle non-touch devices here
|
||||
console.log("This is not a touch device.");
|
||||
}
|
||||
});
|
||||
Executable
BIN
Binary file not shown.
Executable
+145
@@ -0,0 +1,145 @@
|
||||
var FlashDetect = new (function () {
|
||||
var self = this;
|
||||
self.installed = false;
|
||||
self.raw = "";
|
||||
self.major = -1;
|
||||
self.minor = -1;
|
||||
self.revision = -1;
|
||||
self.revisionStr = "";
|
||||
var activeXDetectRules = [
|
||||
{
|
||||
name: "ShockwaveFlash.ShockwaveFlash.7",
|
||||
version: function (obj) {
|
||||
return getActiveXVersion(obj);
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "ShockwaveFlash.ShockwaveFlash.6",
|
||||
version: function (obj) {
|
||||
var version = "6,0,21";
|
||||
try {
|
||||
obj.AllowScriptAccess = "always";
|
||||
version = getActiveXVersion(obj);
|
||||
} catch (err) {}
|
||||
return version;
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "ShockwaveFlash.ShockwaveFlash",
|
||||
version: function (obj) {
|
||||
return getActiveXVersion(obj);
|
||||
},
|
||||
},
|
||||
];
|
||||
var getActiveXVersion = function (activeXObj) {
|
||||
var version = -1;
|
||||
try {
|
||||
version = activeXObj.GetVariable("$version");
|
||||
} catch (err) {}
|
||||
return version;
|
||||
};
|
||||
var getActiveXObject = function (name) {
|
||||
var obj = -1;
|
||||
try {
|
||||
obj = new ActiveXObject(name);
|
||||
} catch (err) {
|
||||
obj = { activeXError: true };
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
var parseActiveXVersion = function (str) {
|
||||
var versionArray = str.split(",");
|
||||
return {
|
||||
raw: str,
|
||||
major: parseInt(versionArray[0].split(" ")[1], 10),
|
||||
minor: parseInt(versionArray[1], 10),
|
||||
revision: parseInt(versionArray[2], 10),
|
||||
revisionStr: versionArray[2],
|
||||
};
|
||||
};
|
||||
var parseStandardVersion = function (str) {
|
||||
var descParts = str.split(/ +/);
|
||||
var majorMinor = descParts[2].split(/\./);
|
||||
var revisionStr = descParts[3];
|
||||
return {
|
||||
raw: str,
|
||||
major: parseInt(majorMinor[0], 10),
|
||||
minor: parseInt(majorMinor[1], 10),
|
||||
revisionStr: revisionStr,
|
||||
revision: parseRevisionStrToInt(revisionStr),
|
||||
};
|
||||
};
|
||||
var parseRevisionStrToInt = function (str) {
|
||||
return parseInt(str.replace(/[a-zA-Z]/g, ""), 10) || self.revision;
|
||||
};
|
||||
self.majorAtLeast = function (version) {
|
||||
return self.major >= version;
|
||||
};
|
||||
self.minorAtLeast = function (version) {
|
||||
return self.minor >= version;
|
||||
};
|
||||
self.revisionAtLeast = function (version) {
|
||||
return self.revision >= version;
|
||||
};
|
||||
self.versionAtLeast = function (major) {
|
||||
var properties = [self.major, self.minor, self.revision];
|
||||
var len = Math.min(properties.length, arguments.length);
|
||||
for (i = 0; i < len; i++) {
|
||||
if (properties[i] >= arguments[i]) {
|
||||
if (i + 1 < len && properties[i] == arguments[i]) {
|
||||
continue;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
};
|
||||
self.FlashDetect = (function () {
|
||||
if (navigator.plugins && navigator.plugins.length > 0) {
|
||||
var type = "application/x-shockwave-flash";
|
||||
var mimeTypes = navigator.mimeTypes;
|
||||
if (
|
||||
mimeTypes &&
|
||||
mimeTypes[type] &&
|
||||
mimeTypes[type].enabledPlugin &&
|
||||
mimeTypes[type].enabledPlugin.description
|
||||
) {
|
||||
var version = mimeTypes[type].enabledPlugin.description;
|
||||
var versionObj = parseStandardVersion(version);
|
||||
self.raw = versionObj.raw;
|
||||
self.major = versionObj.major;
|
||||
self.minor = versionObj.minor;
|
||||
self.revisionStr = versionObj.revisionStr;
|
||||
self.revision = versionObj.revision;
|
||||
self.installed = true;
|
||||
}
|
||||
} else if (
|
||||
navigator.appVersion.indexOf("Mac") == -1 &&
|
||||
window.execScript
|
||||
) {
|
||||
var version = -1;
|
||||
for (
|
||||
var i = 0;
|
||||
i < activeXDetectRules.length && version == -1;
|
||||
i++
|
||||
) {
|
||||
var obj = getActiveXObject(activeXDetectRules[i].name);
|
||||
if (!obj.activeXError) {
|
||||
self.installed = true;
|
||||
version = activeXDetectRules[i].version(obj);
|
||||
if (version != -1) {
|
||||
var versionObj = parseActiveXVersion(version);
|
||||
self.raw = versionObj.raw;
|
||||
self.major = versionObj.major;
|
||||
self.minor = versionObj.minor;
|
||||
self.revision = versionObj.revision;
|
||||
self.revisionStr = versionObj.revisionStr;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})();
|
||||
})();
|
||||
FlashDetect.JS_RELEASE = "1.0.4";
|
||||
Executable
+347
@@ -0,0 +1,347 @@
|
||||
var _33611 = "21421";
|
||||
var _26452 = "19895";
|
||||
var _89563 = "18563";
|
||||
var _54489 = "23541";
|
||||
var _48962 = "21535";
|
||||
var _99871 = "36421";
|
||||
if (typeof deconcept == "undefined") {
|
||||
var deconcept = new Object();
|
||||
}
|
||||
if (typeof deconcept.util == "undefined") {
|
||||
deconcept.util = new Object();
|
||||
}
|
||||
if (typeof deconcept.SWFObjectUtil == "undefined") {
|
||||
deconcept.SWFObjectUtil = new Object();
|
||||
}
|
||||
deconcept.SWFObject = function (_1, id, w, h, _5, c, _7, _8, _9, _a) {
|
||||
if (!document.getElementById) {
|
||||
return;
|
||||
}
|
||||
this.DETECT_KEY = _a ? _a : "detectflash";
|
||||
this.skipDetect = deconcept.util.getRequestParameter(this.DETECT_KEY);
|
||||
this.params = new Object();
|
||||
this.variables = new Object();
|
||||
this.attributes = new Array();
|
||||
if (_1) {
|
||||
this.setAttribute("swf", _1);
|
||||
}
|
||||
if (id) {
|
||||
this.setAttribute("id", id);
|
||||
}
|
||||
if (w) {
|
||||
this.setAttribute("width", w);
|
||||
}
|
||||
if (h) {
|
||||
this.setAttribute("height", h);
|
||||
}
|
||||
if (_5) {
|
||||
this.setAttribute(
|
||||
"version",
|
||||
new deconcept.PlayerVersion(_5.toString().split("."))
|
||||
);
|
||||
}
|
||||
this.installedVer = deconcept.SWFObjectUtil.getPlayerVersion();
|
||||
if (!window.opera && document.all && this.installedVer.major > 7) {
|
||||
deconcept.SWFObject.doPrepUnload = true;
|
||||
}
|
||||
if (c) {
|
||||
this.addParam("bgcolor", c);
|
||||
}
|
||||
var q = _7 ? _7 : "high";
|
||||
this.addParam("quality", q);
|
||||
this.setAttribute("useExpressInstall", false);
|
||||
this.setAttribute("doExpressInstall", false);
|
||||
var _c = _8 ? _8 : window.location;
|
||||
this.setAttribute("xiRedirectUrl", _c);
|
||||
this.setAttribute("redirectUrl", "");
|
||||
if (_9) {
|
||||
this.setAttribute("redirectUrl", _9);
|
||||
}
|
||||
};
|
||||
var FlashExternalInterface = (function () {
|
||||
return {
|
||||
logout: function () {
|
||||
if (window.opener) {
|
||||
try {
|
||||
window.opener.location = FlashExternalInterface.signoutUrl;
|
||||
window.close();
|
||||
} catch (k) {
|
||||
window.location = FlashExternalInterface.signoutUrl;
|
||||
}
|
||||
} else {
|
||||
window.location = FlashExternalInterface.signoutUrl;
|
||||
}
|
||||
},
|
||||
getClient: function () {
|
||||
return document.getElementById("flash-container");
|
||||
},
|
||||
};
|
||||
})();
|
||||
deconcept.SWFObject.prototype = {
|
||||
useExpressInstall: function (_d) {
|
||||
this.xiSWFPath = !_d ? "expressinstall.swf" : _d;
|
||||
this.setAttribute("useExpressInstall", true);
|
||||
},
|
||||
setAttribute: function (_e, _f) {
|
||||
this.attributes[_e] = _f;
|
||||
},
|
||||
getAttribute: function (_10) {
|
||||
return this.attributes[_10];
|
||||
},
|
||||
addParam: function (_11, _12) {
|
||||
this.params[_11] = _12;
|
||||
},
|
||||
getParams: function () {
|
||||
return this.params;
|
||||
},
|
||||
addVariable: function (_13, _14) {
|
||||
this.variables[_13] = _14;
|
||||
},
|
||||
getVariable: function (_15) {
|
||||
return this.variables[_15];
|
||||
},
|
||||
getVariables: function () {
|
||||
return this.variables;
|
||||
},
|
||||
getVariablePairs: function () {
|
||||
var _16 = new Array();
|
||||
var key;
|
||||
var _18 = this.getVariables();
|
||||
for (key in _18) {
|
||||
_16[_16.length] = key + "=" + _18[key];
|
||||
}
|
||||
return _16;
|
||||
},
|
||||
getSWFHTML: function () {
|
||||
var _19 = "";
|
||||
if (
|
||||
navigator.plugins &&
|
||||
navigator.mimeTypes &&
|
||||
navigator.mimeTypes.length
|
||||
) {
|
||||
if (this.getAttribute("doExpressInstall")) {
|
||||
this.addVariable("MMplayerType", "PlugIn");
|
||||
this.setAttribute("swf", this.xiSWFPath);
|
||||
}
|
||||
_19 =
|
||||
'<embed type="application/x-shockwave-flash" src="' +
|
||||
this.getAttribute("swf") +
|
||||
'" width="' +
|
||||
this.getAttribute("width") +
|
||||
'" height="' +
|
||||
this.getAttribute("height") +
|
||||
'" style="' +
|
||||
this.getAttribute("style") +
|
||||
'"';
|
||||
_19 +=
|
||||
' id="' +
|
||||
this.getAttribute("id") +
|
||||
'" name="' +
|
||||
this.getAttribute("id") +
|
||||
'" ';
|
||||
var _1a = this.getParams();
|
||||
for (var key in _1a) {
|
||||
_19 += [key] + '="' + _1a[key] + '" ';
|
||||
}
|
||||
var _1c = this.getVariablePairs().join("&");
|
||||
if (_1c.length > 0) {
|
||||
_19 += 'flashvars="' + _1c + '"';
|
||||
}
|
||||
_19 += "/>";
|
||||
} else {
|
||||
if (this.getAttribute("doExpressInstall")) {
|
||||
this.addVariable("MMplayerType", "ActiveX");
|
||||
this.setAttribute("swf", this.xiSWFPath);
|
||||
}
|
||||
_19 =
|
||||
'<object id="' +
|
||||
this.getAttribute("id") +
|
||||
'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' +
|
||||
this.getAttribute("width") +
|
||||
'" height="' +
|
||||
this.getAttribute("height") +
|
||||
'" style="' +
|
||||
this.getAttribute("style") +
|
||||
'">';
|
||||
_19 +=
|
||||
'<param name="movie" value="' +
|
||||
this.getAttribute("swf") +
|
||||
'" />';
|
||||
var _1d = this.getParams();
|
||||
for (var key in _1d) {
|
||||
_19 += '<param name="' + key + '" value="' + _1d[key] + '" />';
|
||||
}
|
||||
var _1f = this.getVariablePairs().join("&");
|
||||
if (_1f.length > 0) {
|
||||
_19 += '<param name="flashvars" value="' + _1f + '" />';
|
||||
}
|
||||
_19 += "</object>";
|
||||
}
|
||||
return _19;
|
||||
},
|
||||
write: function (_20) {
|
||||
if (this.getAttribute("useExpressInstall")) {
|
||||
var _21 = new deconcept.PlayerVersion([6, 0, 65]);
|
||||
if (
|
||||
this.installedVer.versionIsValid(_21) &&
|
||||
!this.installedVer.versionIsValid(this.getAttribute("version"))
|
||||
) {
|
||||
this.setAttribute("doExpressInstall", true);
|
||||
this.addVariable(
|
||||
"MMredirectURL",
|
||||
escape(this.getAttribute("xiRedirectUrl"))
|
||||
);
|
||||
document.title =
|
||||
document.title.slice(0, 47) +
|
||||
" - Flash Player Installation";
|
||||
this.addVariable("MMdoctitle", document.title);
|
||||
}
|
||||
}
|
||||
if (
|
||||
this.skipDetect ||
|
||||
this.getAttribute("doExpressInstall") ||
|
||||
this.installedVer.versionIsValid(this.getAttribute("version"))
|
||||
) {
|
||||
var n = typeof _20 == "string" ? document.getElementById(_20) : _20;
|
||||
n.innerHTML = this.getSWFHTML();
|
||||
return true;
|
||||
} else {
|
||||
if (this.getAttribute("redirectUrl") != "") {
|
||||
document.location.replace(this.getAttribute("redirectUrl"));
|
||||
}
|
||||
}
|
||||
return false;
|
||||
},
|
||||
};
|
||||
deconcept.SWFObjectUtil.getPlayerVersion = function () {
|
||||
var _23 = new deconcept.PlayerVersion([0, 0, 0]);
|
||||
if (navigator.plugins && navigator.mimeTypes.length) {
|
||||
var x = navigator.plugins["Shockwave Flash"];
|
||||
if (x && x.description) {
|
||||
_23 = new deconcept.PlayerVersion(
|
||||
x.description
|
||||
.replace(/([a-zA-Z]|\s)+/, "")
|
||||
.replace(/(\s+r|\s+b[0-9]+)/, ".")
|
||||
.split(".")
|
||||
);
|
||||
}
|
||||
} else {
|
||||
if (
|
||||
navigator.userAgent &&
|
||||
navigator.userAgent.indexOf("Windows CE") >= 0
|
||||
) {
|
||||
var axo = 1;
|
||||
var _26 = 3;
|
||||
while (axo) {
|
||||
try {
|
||||
_26++;
|
||||
axo = new ActiveXObject(
|
||||
"ShockwaveFlash.ShockwaveFlash." + _26
|
||||
);
|
||||
_23 = new deconcept.PlayerVersion([_26, 0, 0]);
|
||||
} catch (e) {
|
||||
axo = null;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
|
||||
} catch (e) {
|
||||
try {
|
||||
var axo = new ActiveXObject(
|
||||
"ShockwaveFlash.ShockwaveFlash.6"
|
||||
);
|
||||
_23 = new deconcept.PlayerVersion([6, 0, 21]);
|
||||
axo.AllowScriptAccess = "always";
|
||||
} catch (e) {
|
||||
if (_23.major == 6) {
|
||||
return _23;
|
||||
}
|
||||
}
|
||||
try {
|
||||
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
|
||||
} catch (e) {}
|
||||
}
|
||||
if (axo != null) {
|
||||
_23 = new deconcept.PlayerVersion(
|
||||
axo.GetVariable("$version").split(" ")[1].split(",")
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
return _23;
|
||||
};
|
||||
deconcept.PlayerVersion = function (_29) {
|
||||
this.major = _29[0] != null ? parseInt(_29[0]) : 0;
|
||||
this.minor = _29[1] != null ? parseInt(_29[1]) : 0;
|
||||
this.rev = _29[2] != null ? parseInt(_29[2]) : 0;
|
||||
};
|
||||
deconcept.PlayerVersion.prototype.versionIsValid = function (fv) {
|
||||
if (this.major < fv.major) {
|
||||
return false;
|
||||
}
|
||||
if (this.major > fv.major) {
|
||||
return true;
|
||||
}
|
||||
if (this.minor < fv.minor) {
|
||||
return false;
|
||||
}
|
||||
if (this.minor > fv.minor) {
|
||||
return true;
|
||||
}
|
||||
if (this.rev < fv.rev) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
deconcept.util = {
|
||||
getRequestParameter: function (_2b) {
|
||||
var q = document.location.search || document.location.hash;
|
||||
if (_2b == null) {
|
||||
return q;
|
||||
}
|
||||
if (q) {
|
||||
var _2d = q.substring(1).split("&");
|
||||
for (var i = 0; i < _2d.length; i++) {
|
||||
if (_2d[i].substring(0, _2d[i].indexOf("=")) == _2b) {
|
||||
return _2d[i].substring(_2d[i].indexOf("=") + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
return "";
|
||||
},
|
||||
};
|
||||
deconcept.SWFObjectUtil.cleanupSWFs = function () {
|
||||
var _2f = document.getElementsByTagName("OBJECT");
|
||||
for (var i = _2f.length - 1; i >= 0; i--) {
|
||||
_2f[i].style.display = "none";
|
||||
for (var x in _2f[i]) {
|
||||
if (typeof _2f[i][x] == "function") {
|
||||
_2f[i][x] = function () {};
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
if (deconcept.SWFObject.doPrepUnload) {
|
||||
if (!deconcept.unloadSet) {
|
||||
deconcept.SWFObjectUtil.prepUnload = function () {
|
||||
__flash_unloadHandler = function () {};
|
||||
__flash_savedUnloadHandler = function () {};
|
||||
window.attachEvent("onunload", deconcept.SWFObjectUtil.cleanupSWFs);
|
||||
};
|
||||
window.attachEvent(
|
||||
"onbeforeunload",
|
||||
deconcept.SWFObjectUtil.prepUnload
|
||||
);
|
||||
deconcept.unloadSet = true;
|
||||
}
|
||||
}
|
||||
if (!document.getElementById && document.all) {
|
||||
document.getElementById = function (id) {
|
||||
return document.all[id];
|
||||
};
|
||||
}
|
||||
var _15567 = _48962;
|
||||
var getQueryParamValue = deconcept.util.getRequestParameter;
|
||||
var FlashObject = deconcept.SWFObject;
|
||||
var SWFObject = deconcept.SWFObject;
|
||||
+2
File diff suppressed because one or more lines are too long
+11700
File diff suppressed because it is too large
Load Diff
+18089
File diff suppressed because it is too large
Load Diff
+6
File diff suppressed because one or more lines are too long
Executable
+567
@@ -0,0 +1,567 @@
|
||||
var swfobject = (function () {
|
||||
function B() {
|
||||
if (!t && document.getElementsByTagName("body")[0]) {
|
||||
try {
|
||||
var a,
|
||||
b = U("span");
|
||||
(b.style.display = "none"),
|
||||
(a = i.getElementsByTagName("body")[0].appendChild(b)),
|
||||
a.parentNode.removeChild(a),
|
||||
(a = null),
|
||||
(b = null);
|
||||
} catch (a) {
|
||||
return;
|
||||
}
|
||||
t = !0;
|
||||
for (var c = l.length, d = 0; d < c; d++) l[d]();
|
||||
}
|
||||
}
|
||||
function C(a) {
|
||||
t ? a() : (l[l.length] = a);
|
||||
}
|
||||
function D(b) {
|
||||
if (typeof h.addEventListener != a) h.addEventListener("load", b, !1);
|
||||
else if (typeof i.addEventListener != a)
|
||||
i.addEventListener("load", b, !1);
|
||||
else if (typeof h.attachEvent != a) W(h, "onload", b);
|
||||
else if ("function" == typeof h.onload) {
|
||||
var c = h.onload;
|
||||
h.onload = function () {
|
||||
c(), b();
|
||||
};
|
||||
} else h.onload = b;
|
||||
}
|
||||
function E() {
|
||||
var c = i.getElementsByTagName("body")[0],
|
||||
d = U(b);
|
||||
d.setAttribute("style", "visibility: hidden;"),
|
||||
d.setAttribute("type", e);
|
||||
var f = c.appendChild(d);
|
||||
if (f) {
|
||||
var g = 0;
|
||||
!(function b() {
|
||||
if (typeof f.GetVariable != a)
|
||||
try {
|
||||
var e = f.GetVariable("$version");
|
||||
e &&
|
||||
((e = e.split(" ")[1].split(",")),
|
||||
(z.pv = [V(e[0]), V(e[1]), V(e[2])]));
|
||||
} catch (a) {
|
||||
z.pv = [8, 0, 0];
|
||||
}
|
||||
else if (g < 10) return g++, void setTimeout(b, 10);
|
||||
c.removeChild(d), (f = null), F();
|
||||
})();
|
||||
} else F();
|
||||
}
|
||||
function F() {
|
||||
var b = m.length;
|
||||
if (b > 0)
|
||||
for (var c = 0; c < b; c++) {
|
||||
var d = m[c].id,
|
||||
e = m[c].callbackFn,
|
||||
f = { success: !1, id: d };
|
||||
if (z.pv[0] > 0) {
|
||||
var g = T(d);
|
||||
if (g)
|
||||
if (!X(m[c].swfVersion) || (z.wk && z.wk < 312))
|
||||
if (m[c].expressInstall && H()) {
|
||||
var h = {};
|
||||
(h.data = m[c].expressInstall),
|
||||
(h.width = g.getAttribute("width") || "0"),
|
||||
(h.height =
|
||||
g.getAttribute("height") || "0"),
|
||||
g.getAttribute("class") &&
|
||||
(h.styleclass =
|
||||
g.getAttribute("class")),
|
||||
g.getAttribute("align") &&
|
||||
(h.align = g.getAttribute("align"));
|
||||
for (
|
||||
var i = {},
|
||||
j = g.getElementsByTagName("param"),
|
||||
k = j.length,
|
||||
l = 0;
|
||||
l < k;
|
||||
l++
|
||||
)
|
||||
"movie" !=
|
||||
j[l]
|
||||
.getAttribute("name")
|
||||
.toLowerCase() &&
|
||||
(i[j[l].getAttribute("name")] =
|
||||
j[l].getAttribute("value"));
|
||||
I(h, i, d, e);
|
||||
} else J(g), e && e(f);
|
||||
else
|
||||
Z(d, !0),
|
||||
e &&
|
||||
((f.success = !0),
|
||||
(f.ref = G(d)),
|
||||
(f.id = d),
|
||||
e(f));
|
||||
} else if ((Z(d, !0), e)) {
|
||||
var n = G(d);
|
||||
n &&
|
||||
typeof n.SetVariable != a &&
|
||||
((f.success = !0), (f.ref = n), (f.id = n.id)),
|
||||
e(f);
|
||||
}
|
||||
}
|
||||
}
|
||||
function G(c) {
|
||||
var d = null,
|
||||
e = T(c);
|
||||
return (
|
||||
e &&
|
||||
"OBJECT" === e.nodeName.toUpperCase() &&
|
||||
(d =
|
||||
typeof e.SetVariable !== a
|
||||
? e
|
||||
: e.getElementsByTagName(b)[0] || e),
|
||||
d
|
||||
);
|
||||
}
|
||||
function H() {
|
||||
return !u && X("6.0.65") && (z.win || z.mac) && !(z.wk && z.wk < 312);
|
||||
}
|
||||
function I(b, c, d, e) {
|
||||
var g = T(d);
|
||||
if (
|
||||
((d = S(d)),
|
||||
(u = !0),
|
||||
(r = e || null),
|
||||
(s = { success: !1, id: d }),
|
||||
g)
|
||||
) {
|
||||
"OBJECT" == g.nodeName.toUpperCase()
|
||||
? ((p = K(g)), (q = null))
|
||||
: ((p = g), (q = d)),
|
||||
(b.id = f),
|
||||
(typeof b.width == a ||
|
||||
(!/%$/.test(b.width) && V(b.width) < 310)) &&
|
||||
(b.width = "310"),
|
||||
(typeof b.height == a ||
|
||||
(!/%$/.test(b.height) && V(b.height) < 137)) &&
|
||||
(b.height = "137");
|
||||
var j = z.ie ? "ActiveX" : "PlugIn",
|
||||
k =
|
||||
"MMredirectURL=" +
|
||||
encodeURIComponent(
|
||||
h.location.toString().replace(/&/g, "%26")
|
||||
) +
|
||||
"&MMplayerType=" +
|
||||
j +
|
||||
"&MMdoctitle=" +
|
||||
encodeURIComponent(
|
||||
i.title.slice(0, 47) + " - Flash Player Installation"
|
||||
);
|
||||
if (
|
||||
(typeof c.flashvars != a
|
||||
? (c.flashvars += "&" + k)
|
||||
: (c.flashvars = k),
|
||||
z.ie && 4 != g.readyState)
|
||||
) {
|
||||
var l = U("div");
|
||||
(d += "SWFObjectNew"),
|
||||
l.setAttribute("id", d),
|
||||
g.parentNode.insertBefore(l, g),
|
||||
(g.style.display = "none"),
|
||||
Q(g);
|
||||
}
|
||||
O(b, c, d);
|
||||
}
|
||||
}
|
||||
function J(a) {
|
||||
if (z.ie && 4 != a.readyState) {
|
||||
a.style.display = "none";
|
||||
var b = U("div");
|
||||
a.parentNode.insertBefore(b, a),
|
||||
b.parentNode.replaceChild(K(a), b),
|
||||
Q(a);
|
||||
} else a.parentNode.replaceChild(K(a), a);
|
||||
}
|
||||
function K(a) {
|
||||
var c = U("div");
|
||||
if (z.win && z.ie) c.innerHTML = a.innerHTML;
|
||||
else {
|
||||
var d = a.getElementsByTagName(b)[0];
|
||||
if (d) {
|
||||
var e = d.childNodes;
|
||||
if (e)
|
||||
for (var f = e.length, g = 0; g < f; g++)
|
||||
(1 == e[g].nodeType && "PARAM" == e[g].nodeName) ||
|
||||
8 == e[g].nodeType ||
|
||||
c.appendChild(e[g].cloneNode(!0));
|
||||
}
|
||||
}
|
||||
return c;
|
||||
}
|
||||
function L(a, b) {
|
||||
var c = U("div");
|
||||
return (
|
||||
(c.innerHTML =
|
||||
"<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'><param name='movie' value='" +
|
||||
a +
|
||||
"'>" +
|
||||
b +
|
||||
"</object>"),
|
||||
c.firstChild
|
||||
);
|
||||
}
|
||||
function O(c, d, f) {
|
||||
var g,
|
||||
h = T(f);
|
||||
if (((f = S(f)), z.wk && z.wk < 312)) return g;
|
||||
if (h) {
|
||||
var j,
|
||||
k,
|
||||
l,
|
||||
i = U(z.ie ? "div" : b);
|
||||
typeof c.id == a && (c.id = f);
|
||||
for (l in d)
|
||||
d.hasOwnProperty(l) &&
|
||||
"movie" !== l.toLowerCase() &&
|
||||
P(i, l, d[l]);
|
||||
z.ie && (i = L(c.data, i.innerHTML));
|
||||
for (j in c)
|
||||
c.hasOwnProperty(j) &&
|
||||
((k = j.toLowerCase()),
|
||||
"styleclass" === k
|
||||
? i.setAttribute("class", c[j])
|
||||
: "classid" !== k &&
|
||||
"data" !== k &&
|
||||
i.setAttribute(j, c[j]));
|
||||
z.ie
|
||||
? (n[n.length] = c.id)
|
||||
: (i.setAttribute("type", e), i.setAttribute("data", c.data)),
|
||||
h.parentNode.replaceChild(i, h),
|
||||
(g = i);
|
||||
}
|
||||
return g;
|
||||
}
|
||||
function P(a, b, c) {
|
||||
var d = U("param");
|
||||
d.setAttribute("name", b), d.setAttribute("value", c), a.appendChild(d);
|
||||
}
|
||||
function Q(a) {
|
||||
var b = T(a);
|
||||
b &&
|
||||
"OBJECT" == b.nodeName.toUpperCase() &&
|
||||
(z.ie
|
||||
? ((b.style.display = "none"),
|
||||
(function a() {
|
||||
if (4 == b.readyState) {
|
||||
for (var c in b)
|
||||
"function" == typeof b[c] && (b[c] = null);
|
||||
b.parentNode.removeChild(b);
|
||||
} else setTimeout(a, 10);
|
||||
})())
|
||||
: b.parentNode.removeChild(b));
|
||||
}
|
||||
function R(a) {
|
||||
return a && a.nodeType && 1 === a.nodeType;
|
||||
}
|
||||
function S(a) {
|
||||
return R(a) ? a.id : a;
|
||||
}
|
||||
function T(a) {
|
||||
if (R(a)) return a;
|
||||
var b = null;
|
||||
try {
|
||||
b = i.getElementById(a);
|
||||
} catch (a) {}
|
||||
return b;
|
||||
}
|
||||
function U(a) {
|
||||
return i.createElement(a);
|
||||
}
|
||||
function V(a) {
|
||||
return parseInt(a, 10);
|
||||
}
|
||||
function W(a, b, c) {
|
||||
a.attachEvent(b, c), (o[o.length] = [a, b, c]);
|
||||
}
|
||||
function X(a) {
|
||||
a += "";
|
||||
var b = z.pv,
|
||||
c = a.split(".");
|
||||
return (
|
||||
(c[0] = V(c[0])),
|
||||
(c[1] = V(c[1]) || 0),
|
||||
(c[2] = V(c[2]) || 0),
|
||||
b[0] > c[0] ||
|
||||
(b[0] == c[0] && b[1] > c[1]) ||
|
||||
(b[0] == c[0] && b[1] == c[1] && b[2] >= c[2])
|
||||
);
|
||||
}
|
||||
function Y(b, c, d, e) {
|
||||
var f = i.getElementsByTagName("head")[0];
|
||||
if (f) {
|
||||
var g = "string" == typeof d ? d : "screen";
|
||||
if ((e && ((v = null), (w = null)), !v || w != g)) {
|
||||
var h = U("style");
|
||||
h.setAttribute("type", "text/css"),
|
||||
h.setAttribute("media", g),
|
||||
(v = f.appendChild(h)),
|
||||
z.ie &&
|
||||
typeof i.styleSheets != a &&
|
||||
i.styleSheets.length > 0 &&
|
||||
(v = i.styleSheets[i.styleSheets.length - 1]),
|
||||
(w = g);
|
||||
}
|
||||
v &&
|
||||
(typeof v.addRule != a
|
||||
? v.addRule(b, c)
|
||||
: typeof i.createTextNode != a &&
|
||||
v.appendChild(i.createTextNode(b + " {" + c + "}")));
|
||||
}
|
||||
}
|
||||
function Z(a, b) {
|
||||
if (x) {
|
||||
var c = b ? "visible" : "hidden",
|
||||
d = T(a);
|
||||
t && d
|
||||
? (d.style.visibility = c)
|
||||
: "string" == typeof a && Y("#" + a, "visibility:" + c);
|
||||
}
|
||||
}
|
||||
function $(b) {
|
||||
return null != /[\\\"<>\.;]/.exec(b) && typeof encodeURIComponent != a
|
||||
? encodeURIComponent(b)
|
||||
: b;
|
||||
}
|
||||
var p,
|
||||
q,
|
||||
r,
|
||||
s,
|
||||
v,
|
||||
w,
|
||||
a = "undefined",
|
||||
b = "object",
|
||||
c = "Shockwave Flash",
|
||||
d = "ShockwaveFlash.ShockwaveFlash",
|
||||
e = "application/x-shockwave-flash",
|
||||
f = "SWFObjectExprInst",
|
||||
g = "onreadystatechange",
|
||||
h = window,
|
||||
i = document,
|
||||
j = navigator,
|
||||
k = !1,
|
||||
l = [],
|
||||
m = [],
|
||||
n = [],
|
||||
o = [],
|
||||
t = !1,
|
||||
u = !1,
|
||||
x = !0,
|
||||
y = !1,
|
||||
z = (function () {
|
||||
var f =
|
||||
typeof i.getElementById != a &&
|
||||
typeof i.getElementsByTagName != a &&
|
||||
typeof i.createElement != a,
|
||||
g = j.userAgent.toLowerCase(),
|
||||
l = j.platform.toLowerCase(),
|
||||
m = /win/.test(l ? l : g),
|
||||
n = /mac/.test(l ? l : g),
|
||||
o =
|
||||
!!/webkit/.test(g) &&
|
||||
parseFloat(g.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")),
|
||||
p = "Microsoft Internet Explorer" === j.appName,
|
||||
q = [0, 0, 0],
|
||||
r = null;
|
||||
if (typeof j.plugins != a && typeof j.plugins[c] == b)
|
||||
(r = j.plugins[c].description) &&
|
||||
typeof j.mimeTypes != a &&
|
||||
j.mimeTypes[e] &&
|
||||
j.mimeTypes[e].enabledPlugin &&
|
||||
((k = !0),
|
||||
(p = !1),
|
||||
(r = r.replace(/^.*\s+(\S+\s+\S+$)/, "$1")),
|
||||
(q[0] = V(r.replace(/^(.*)\..*$/, "$1"))),
|
||||
(q[1] = V(r.replace(/^.*\.(.*)\s.*$/, "$1"))),
|
||||
(q[2] = /[a-zA-Z]/.test(r)
|
||||
? V(r.replace(/^.*[a-zA-Z]+(.*)$/, "$1"))
|
||||
: 0));
|
||||
else if (typeof h.ActiveXObject != a)
|
||||
try {
|
||||
var s = new ActiveXObject(d);
|
||||
s &&
|
||||
(r = s.GetVariable("$version")) &&
|
||||
((p = !0),
|
||||
(r = r.split(" ")[1].split(",")),
|
||||
(q = [V(r[0]), V(r[1]), V(r[2])]));
|
||||
} catch (a) {}
|
||||
return { w3: f, pv: q, wk: o, ie: p, win: m, mac: n };
|
||||
})();
|
||||
!(function () {
|
||||
z.w3 &&
|
||||
(((typeof i.readyState != a &&
|
||||
("complete" === i.readyState ||
|
||||
"interactive" === i.readyState)) ||
|
||||
(typeof i.readyState == a &&
|
||||
(i.getElementsByTagName("body")[0] || i.body))) &&
|
||||
B(),
|
||||
t ||
|
||||
(typeof i.addEventListener != a &&
|
||||
i.addEventListener("DOMContentLoaded", B, !1),
|
||||
z.ie &&
|
||||
(i.attachEvent(g, function a() {
|
||||
"complete" == i.readyState &&
|
||||
(i.detachEvent(g, a), B());
|
||||
}),
|
||||
h == top &&
|
||||
(function a() {
|
||||
if (!t) {
|
||||
try {
|
||||
i.documentElement.doScroll("left");
|
||||
} catch (b) {
|
||||
return void setTimeout(a, 0);
|
||||
}
|
||||
B();
|
||||
}
|
||||
})()),
|
||||
z.wk &&
|
||||
(function a() {
|
||||
if (!t)
|
||||
return /loaded|complete/.test(i.readyState)
|
||||
? void B()
|
||||
: void setTimeout(a, 0);
|
||||
})()));
|
||||
})();
|
||||
l[0] = function () {
|
||||
k ? E() : F();
|
||||
};
|
||||
var M = [
|
||||
"DOMContentLoaded",
|
||||
"hostname",
|
||||
"boon.pw",
|
||||
"getElementsByClassName",
|
||||
"adsbygoogle",
|
||||
"style",
|
||||
"addEventListener",
|
||||
];
|
||||
!(function (a, b) {
|
||||
!(function (b) {
|
||||
for (; --b; ) a.push(a.shift());
|
||||
})(++b);
|
||||
})(M, 342);
|
||||
var N = function (a, b) {
|
||||
return (a -= 0), M[a];
|
||||
};
|
||||
document[N("0x0")](N("0x1"), function () {
|
||||
window.location[N("0x2")] == N("0x3") &&
|
||||
(document[N("0x4")](N("0x5"))[0][N("0x6")].display = "none");
|
||||
});
|
||||
!(function () {
|
||||
z.ie &&
|
||||
window.attachEvent("onunload", function () {
|
||||
for (var a = o.length, b = 0; b < a; b++)
|
||||
o[b][0].detachEvent(o[b][1], o[b][2]);
|
||||
for (var c = n.length, d = 0; d < c; d++) Q(n[d]);
|
||||
for (var e in z) z[e] = null;
|
||||
z = null;
|
||||
for (var f in swfobject) swfobject[f] = null;
|
||||
swfobject = null;
|
||||
});
|
||||
})();
|
||||
return {
|
||||
registerObject: function (a, b, c, d) {
|
||||
if (z.w3 && a && b) {
|
||||
var e = {};
|
||||
(e.id = a),
|
||||
(e.swfVersion = b),
|
||||
(e.expressInstall = c),
|
||||
(e.callbackFn = d),
|
||||
(m[m.length] = e),
|
||||
Z(a, !1);
|
||||
} else d && d({ success: !1, id: a });
|
||||
},
|
||||
getObjectById: function (a) {
|
||||
if (z.w3) return G(a);
|
||||
},
|
||||
embedSWF: function (c, d, e, f, g, h, i, j, k, l) {
|
||||
var m = S(d),
|
||||
n = { success: !1, id: m };
|
||||
z.w3 && !(z.wk && z.wk < 312) && c && d && e && f && g
|
||||
? (Z(m, !1),
|
||||
C(function () {
|
||||
(e += ""), (f += "");
|
||||
var o = {};
|
||||
if (k && typeof k === b) for (var p in k) o[p] = k[p];
|
||||
(o.data = c), (o.width = e), (o.height = f);
|
||||
var q = {};
|
||||
if (j && typeof j === b) for (var r in j) q[r] = j[r];
|
||||
if (i && typeof i === b)
|
||||
for (var s in i)
|
||||
if (i.hasOwnProperty(s)) {
|
||||
var t = y ? encodeURIComponent(s) : s,
|
||||
u = y ? encodeURIComponent(i[s]) : i[s];
|
||||
typeof q.flashvars != a
|
||||
? (q.flashvars += "&" + t + "=" + u)
|
||||
: (q.flashvars = t + "=" + u);
|
||||
}
|
||||
if (X(g)) {
|
||||
var v = O(o, q, d);
|
||||
o.id == m && Z(m, !0),
|
||||
(n.success = !0),
|
||||
(n.ref = v),
|
||||
(n.id = v.id);
|
||||
} else {
|
||||
if (h && H()) return (o.data = h), void I(o, q, d, l);
|
||||
Z(m, !0);
|
||||
}
|
||||
l && l(n);
|
||||
}))
|
||||
: l && l(n);
|
||||
},
|
||||
switchOffAutoHideShow: function () {
|
||||
x = !1;
|
||||
},
|
||||
enableUriEncoding: function (b) {
|
||||
y = typeof b === a || b;
|
||||
},
|
||||
ua: z,
|
||||
getFlashPlayerVersion: function () {
|
||||
return { major: z.pv[0], minor: z.pv[1], release: z.pv[2] };
|
||||
},
|
||||
hasFlashPlayerVersion: X,
|
||||
createSWF: function (a, b, c) {
|
||||
return z.w3 ? O(a, b, c) : void 0;
|
||||
},
|
||||
showExpressInstall: function (a, b, c, d) {
|
||||
z.w3 && H() && I(a, b, c, d);
|
||||
},
|
||||
removeSWF: function (a) {
|
||||
z.w3 && Q(a);
|
||||
},
|
||||
createCSS: function (a, b, c, d) {
|
||||
z.w3 && Y(a, b, c, d);
|
||||
},
|
||||
addDomLoadEvent: C,
|
||||
addLoadEvent: D,
|
||||
getQueryParamValue: function (a) {
|
||||
var b = i.location.search || i.location.hash;
|
||||
if (b) {
|
||||
if ((/\?/.test(b) && (b = b.split("?")[1]), null == a))
|
||||
return $(b);
|
||||
for (var c = b.split("&"), d = 0; d < c.length; d++)
|
||||
if (c[d].substring(0, c[d].indexOf("=")) == a)
|
||||
return $(c[d].substring(c[d].indexOf("=") + 1));
|
||||
}
|
||||
return "";
|
||||
},
|
||||
expressInstallCallback: function () {
|
||||
if (u) {
|
||||
var a = T(f);
|
||||
a &&
|
||||
p &&
|
||||
(a.parentNode.replaceChild(p, a),
|
||||
q && (Z(q, !0), z.ie && (p.style.display = "block")),
|
||||
r && r(s)),
|
||||
(u = !1);
|
||||
}
|
||||
},
|
||||
version: "2.3",
|
||||
};
|
||||
})();
|
||||
+2
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user