document.domain = "nttgame.com";
var parts = location.hostname.split('.');
var subdomain = parts.shift();
var upperleveldomain = parts.join('.');
var sndleveldomain = parts.slice(-2).join('.');
var _imgurls = "//image.nttgame.com/portal/assets/images/common/gnbsite2";
var globalNavBar = '';
var _social_connects = [{"google":1}
, {"fb":0}
, {"twitch":0}
, {"apple":0 }];
var _type_mobile = "";
//get game name
var pathname = window.location.pathname.split("/");
var palyfree = "PLAY KNIGHT ONLINE FREE!";
if (pathname == 'knight' || pathname == 'knight2') {
palyfree = "PLAY KNIGHT ONLINE FREE!";
}
//HEADER
document.write('');
document.write('');
document.write('');
document.write('');
document.write('');
document.write('');
//document.write('');
document.write('');
document.write('');
document.write('');
document.write('');
document.write('');
document.write('');
document.write('');
document.write('');
/*
var theOtherScript = [
"//www.nttgame.com/portal/assets/js/portal.js?03/29/24"
, "//www.nttgame.com/portal/assets/js/global_navigation.js?t=2024-03-29 13:37"
, "//www.nttgame.com/portal/assets/js/functions.js?03/29/24"
, "//www.nttgame.com/portal/assets/js/Signin.js?03/29/24"
];
for(var i=0; i < theOtherScript.length; i++) {
var el = document.createElement('script');
el.async = false;
el.defer = true;
el.src = theOtherScript[i];
el.type = 'text/javascript';
(document.getElementsByTagName('HEAD')[0]||document.body).appendChild(el);
}
*/
document.write(' ');
//GLOBAL NAVIGATION BAR
document.write('
');
document.write('
');
document.write(' ');
document.write(' ');
document.write(' - ');
document.write('
');
document.write(' - SIGN IN
');
document.write(' - SIGN UP
');
document.write(' ');
document.write('
');
document.write(' ');
document.write(' - SUPPORT
');
document.write(' - ');
document.write(' •••');
document.write('
');
document.write(' ');
document.write('
');
document.write(' ');
document.write(' ');
document.write('
');
document.write('
');
document.write(' ');
document.write('
');
document.write('
');
//LOGIN FORM
document.write('');
try {
var loaderTag = document.createElement('script');
loaderTag.type='text/javascript';
loaderTag.src='https://www.google.com/recaptcha/api.js?render=6LfDFowUAAAAAPjXPl2V4MVR9fN1BCtgCngWivzE';
document.getElementsByTagName('head')[0].appendChild(loaderTag);
}catch(e){ console.log("global navigation load error the recaptcha");}
//PRINT OUT
//document.write(globalNavBar);
/*
window.onload=function(){
try{
document.getElementsByTagName('body')[0].appendChild(globalNavBar);
}catch(e) {
//document.body.insertAdjacentHTML('beforebegin',globalNavBar);
document.write(globalNavBar);
}
}
*/
$(document).ready(function(){
try{
Signin._captcahreload2('captchaframe0');
}catch(e){ console.log("global navigation load error the Signin captcach reload");}
$("#btn-client-download").on('click', function(){
var gourl = ($("#open-gnb-clientdownload").data("href") != "") ? $("#open-gnb-clientdownload").data("href") : $("#Top_Menu").find('li.dropdown.download').find('a').data('href');
console.log("download click : " + gourl);
location.href=gourl;
});
/*
try{
//$(globalNavBar).appendTo(document.body);
$(document.body).prepend(globalNavBar);
}catch(e) {
//document.body.insertAdjacentHTML('beforebegin',globalNavBar);
document.write(globalNavBar);
}
*/
});