1$(document).ready(function() { 2 const urlPath = window.location.pathname; 3 if (getUrlParam()['iosDown'] == 1) { 4 var pos = $('#iosDown').offset(); 5 if($('body').width() <= 1024 ) { 6 $('html, body').animate({scrollTop: pos.top - 96}); 7 } else { 8 $('html, body').animate({scrollTop: pos.top - $('#header').height()}); 9 } 10 } 11 12 $('.openBrochurePop').on('click', function(e){ 13 commonPreventEvent(e); 14 const brochure_locale = local == 'ko' ? 'ko' : 'en'; 15 const type = $(this).data('type') || ''; 16 if(type == '') return; 17 18 const brochure = { 19 'Polaris Converter' : { 20 'ko' : '/assets/file/[Polaris%20Converter]%20%EC%A0%9C%ED%92%88%EC%86%8C%EA%B0%9C%EC%84%9C.pdf', 21 'en' : '/assets/file/Polaris%20Office%20B2B%20Solution.pdf' 22 }, 23 'Polaris Viewer Plus' : { 24 'ko' : '/assets/file/[Polaris%20Viewer%20Plus]%20%EC%A0%9C%ED%92%88%EC%86%8C%EA%B0%9C%EC%84%9C.pdf', 25 'en' : '/assets/file/Polaris%20Office%20B2B%20Solution.pdf' 26 }, 27 'Polaris Docs' : { 28 'ko' : '/assets/file/[Polaris%20Docs]%20%EC%A0%9C%ED%92%88%EC%86%8C%EA%B0%9C%EC%84%9C.pdf', 29 'en' : '/assets/file/Polaris Office_ENG.pdf' 30 }, 31 'Polaris Web Office' : { 32 'ko' : '/assets/file/[Polaris%20Web%20Office]%20%EC%A0%9C%ED%92%88%EC%86%8C%EA%B0%9C%EC%84%9C.pdf', 33 'en' : '/assets/file/Polaris Office_ENG.pdf' 34 }, 35 'Polaris Office Mobile SDK' : { 36 'ko' : '/assets/file/[Polaris%20Office%20Mobile%20SDK]%20%EC%A0%9C%ED%92%88%EC%86%8C%EA%B0%9C%EC%84%9C.pdf', 37 'en' : '/assets/file/Polaris Office_ENG.pdf' 38 }, 39 'Polaris Watcher' : { 40 'ko' : '/assets/file/[Polaris%20Watcher]%20%EC%A0%9C%ED%92%88%EC%86%8C%EA%B0%9C%EC%84%9C.pdf', 41 'en' : '/assets/file/Polaris Office_ENG.pdf' 42 }, 43 'V-Guard' : { 44 'ko' : '/assets/file/V%20Guard%20brochure%20KR.pdf', 45 'en' : '/assets/file/Polaris Office_ENG.pdf' 46 }, 47 'Atlassian Solution' : { 48 'ko' : '/assets/file/PO%20brochure_KR_atlassian.pdf', 49 'en' : '/assets/file/Polaris Office_ENG.pdf' 50 } 51 } 52 53 window.open(CF_PATH + brochure[type][brochure_locale], "_blank"); 54 }); 55 56 if(typeof local != 'undefined' && local == 'ko'){ 57 $('.brochure').text(LanguagePack.PRODUCT_INTRODUCTION); 58 } else { 59 $('.brochure').text(LanguagePack.DOWNLOAD_STR32); 60 } 61 62 var array = location.pathname.split("/"); 63 var locale = array[1]; 64 var nameId = getUrlParam()['org']; 65 if(nameId) { 66 var start = true; 67 if(getCookie('ORANGEDMFI')) { 68 prevnameId = decodeURIComponent(getCookie('ORANGEDMFI')); 69 deleteCookie('ORANGEDMFI'); 70 if(prevnameId == nameId && gUserLevel && gUserLevel == 'ORANGEPRO') { 71 start = false;
72 } 73 } 74 if(start) { 75 var agnt = navigator.userAgent.toLowerCase(); 76 if(agnt.search('windows') >= 0){ 77 window.open("https://install.polarisoffice.com/pcoffice/PolarisOfficeSetup_Orange.exe"); 78 } 79 80 SetCookieEscape('ORANGEDMFI', encodeURIComponent(nameId)); 81 if(gUserLevel) { 82 var popupMessage = new Array(); 83 var fail_orangePro = false; 84 if(gUserLevel == "FREE") { 85 popupMessage[0] = LanguagePack.ORANGEPRO_PREV_FREE; 86 } else if(gUserLevel == "SMART") { 87 popupMessage[0] = LanguagePack.ORANGEPRO_PREV_SMART; 88 } else if(gUserLevel == "PRO" || gUserLevel == "AI_BASIC" || gUserLevel == "AI_PLUS") { 89 popupMessage[0] = LanguagePack.ORANGEPRO_PREV_PRO; 90 } else { 91 fail_orangePro = true; 92 } 93 if(fail_orangePro) { 94 popupMessage[0] = LanguagePack.ORANGEPRO_BUSINESS_FAIL_MSG1(gUserEmail); 95 popupMessage[1] = LanguagePack.ORANGEPRO_BUSINESS_FAIL_MSG2; 96 result = function(evt) { 97 defaultAlertCB(evt); 98 logout(); 99 }; 100 } else { 101 popupMessage[1] = LanguagePack.ORANGEPRO_PREV_MSG(gUserEmail); 102 result = function(evt) { 103 defaultAlertCB(evt); 104 location.href = '/orange/regist'; 105 }; 106 } 107 var popup = new PopupMessage(PopupType.DEFAULT, ButtonType.CONFIRM_CANCEL, LanguagePack.TITLE_PREMIUMACCOUNTCHANGE, {popupMessage:popupMessage}, result, defaultAlertCB, defaultAlertCB); 108 popup.changebutton({confirm : LanguagePack.KEYWORD_CHANGE}); 109 popup.create(); 110 popup.show(); 111 return false; 112 } else { 113 location.href = '/sign-up'; 114 } 115 } 116 } 117 118 var pcDownloadFunc = function(e) { 119 if (e.preventDefault) e.preventDefault(); 120 var agnt = navigator.userAgent.toLowerCase(); 121 if (agnt.indexOf('iphone') >= 0 || agnt.indexOf('ipad') >= 0 || agnt.indexOf('android') >= 0) { 122 var popupMessage = new Array(); 123 popupMessage[0] = LanguagePack.POPUP_BEABLETODOWNLOAD_ONPC; 124 var popup = new PopupMessage(PopupType.DEFAULT, ButtonType.CONFIRM, null, { 125 popupMessage: popupMessage 126 }, defaultAlertCB, defaultAlertCB, defaultAlertCB); 127 popup.create(); 128 popup.show(); 129 if ($(this).hasClass('inner_frame')) { 130 var pos = $('.use_device dl:nth-child(2) dt').offset(); 131 var ch = $('.use_device dl:nth-child(2) dt').height(); 132 $('#popup_message_view').css('top', pos.top + ch); 133 } 134 return; 135 } else if (agnt.indexOf("macintosh") >= 0) { 136 var popupMessage = new Array(); 137 popupMessage[0] = LanguagePack.POPUP_DOWNLOAD_NOTI; 138 var popup = new PopupMessage(PopupType.DEFAULT, ButtonType.CONFIRM, null, { 139 popupMessage: popupMessage 140 }, defaultAlertCB, defaultAlertCB, defaultAlertCB); 141 popup.create(); 142 popup.show(); 143 if ($(this).hasClass('inner_frame')) { 144 var pos = $('.use_device dl:nth-child(2) dt').offset(); 145 var ch = $('.use_device dl:nth-child(2) dt').height(); 146 $('#popup_message_view').css('top', pos.top + ch); 147 } 148 return; 149 } 150 var appUrl; 151 152 if($(this).hasClass('2017')) { 153 154 // if($(this).hasClass('free')) { 155 // poappUrl = LanguagePack.PCOFFICE_PROD_2017_URL; 156 // } else { 157 // poappUrl = "https://install.polarisoffice.com/pcoffice/PolarisOfficeInstaller.exe"; 158 // } 159 var eventlog = ($(this).hasClass('free'))? "pocloud2017.win.personal":"pocloud2017.win.business"; 160 sendEventLog(eventlog); 161 poappUrl = "https://install.polarisoffice.com/pcoffice/PolarisOfficeSetup_2017.exe"; 162 163 } else { 164 sendEventLog("pocloud.win"); 165 poappUrl = LanguagePack.PCOFFICE_PROD_URL; 166 } 167 168 window.location.href = poappUrl; 169 var logTxt = '[í´ë¼ì°ë - ë¬´ë£ ë° ì²´íí(Windows) - '+ locale +' ] ' + poappUrl; 170 171 172 if ($(this).hasClass('popular')) { 173 var logTxt = '[í´ë¼ì°ë - 구매ìì©(Windows) - '+ locale +' ] ' + poappUrl; 174 } else { 175 var logTxt = '[í´ë¼ì°ë - ë¬´ë£ ë° ì²´íí(Windows) - '+ locale +' ] ' + poappUrl; 176 } 177 178 if(typeof gtag != 'undefined') 179 gtag("event","fileDownload",{"event_category" : "cloud" , "event_label" : logTxt}); 180 console.log(logTxt); 181 }; 182 183 184 var msDownloadFunc = function(e) { 185 if (e.preventDefault) e.preventDefault(); 186 var agnt = navigator.userAgent.toLowerCase(); 187 if (agnt.indexOf('iphone') >= 0 || agnt.indexOf('ipad') >= 0 || agnt.indexOf('android') >= 0) { 188 var popupMessage = new Array(); 189 popupMessage[0] = LanguagePack.POPUP_BEABLETODOWNLOAD_ONPC; 190 var popup = new PopupMessage(PopupType.DEFAULT, ButtonType.CONFIRM, null, { 191 popupMessage: popupMessage 192 }, defaultAlertCB, defaultAlertCB, defaultAlertCB); 193 popup.create(); 194 popup.show(); 195 if ($(this).hasClass('inner_frame')) { 196 var pos = $('.use_device dl:nth-child(2) dt').offset(); 197 var ch = $('.use_device dl:nth-child(2) dt').height(); 198 $('#popup_message_view').css('top', pos.top + ch); 199 } 200 return; 201 } else if (agnt.indexOf("macintosh") >= 0) { 202 var popupMessage = new Array(); 203 popupMessage[0] = LanguagePack.POPUP_DOWNLOAD_NOTI; 204 var popup = new PopupMessage(PopupType.DEFAULT, ButtonType.CONFIRM, null, { 205 popupMessage: popupMessage 206 }, defaultAlertCB, defaultAlertCB, defaultAlertCB); 207 popup.create(); 208 popup.show(); 209 if ($(this).hasClass('inner_frame')) { 210 var pos = $('.use_device dl:nth-child(2) dt').offset(); 211 var ch = $('.use_device dl:nth-child(2) dt').height(); 212 $('#popup_message_view').css('top', pos.top + ch); 213 } 214 return; 215 } 216 217 poappUrl = "https://apps.microsoft.com/store/detail/polaris-office/XP9K4TGF5NT1SW "; 218 window.open(poappUrl, "_blank"); 219 sendEventLog("pocloud.msstore"); 220 var logTxt = '[MSë¤ì´ë¡ë - ë¬´ë£ ë° ì²´íí(Windows) - '+ locale +' ] ' + poappUrl; 221 if(typeof gtag != 'undefined'){ 222 gtag("event","fileDownload",{"event_category" : "MS" , "event_label" : logTxt}); 223 } 224 }; 225 226 227 228 229 var pcManualFunc = function(e) { 230 commonPreventEvent(e); 231 poappUrl = "https://polink-static-contents.polarisoffice.com/web/assets/file/Polaris_Office_New_guide_Kor.pdf"; 232 window.open(poappUrl, "_blank"); 233 var logTxt = '[í´ë¼ì°ë - ë¬´ë£ ë° ì²´íí(Windows) - ë©ë´ì¼ - '+ locale +' ] ' + poappUrl; 234 gtag("event","manual",{"event_category" : "cloud" , "event_label" : logTxt}); 235 // console.log(logTxt); 236 }; 237 238 var pcBrochureFunc = function(e) { 239 commonPreventEvent(e); 240 poappUrl = "https://polink-static-contents.polarisoffice.com/web/assets/file/polaris brochure_office.pdf"; 241 window.open(poappUrl, "_blank"); 242 var logTxt = '[í´ë¼ì°ë - ë¬´ë£ ë° ì²´íí(Windows) - ë¸ë¡ìì´ - '+ locale +' ] ' + poappUrl; 243 gtag("event","brochure",{"event_category" : "cloud" , "event_label" : logTxt}); 244 // console.log(logTxt); 245 }; 246 247 248 249 var macDownloadFunc = function(e) { 250 commonPreventEvent(e); 251 if (e.preventDefault) e.preventDefault(); 252 var agnt = navigator.userAgent.toLowerCase(); 253 if (agnt.indexOf('iphone') >= 0 || agnt.indexOf('ipad') >= 0 || agnt.indexOf('android') >= 0) { 254 var popupMessage = new Array(); 255 popupMessage[0] = LanguagePack.POPUP_BEABLETODOWNLOAD_ONPC; 256 var popup = new PopupMessage(PopupType.DEFAULT, ButtonType.CONFIRM, null, { 257 popupMessage: popupMessage 258 }, defaultAlertCB, defaultAlertCB, defaultAlertCB); 259 popup.create(); 260 popup.show(); 261 if ($(this).hasClass('inner_frame')) { 262 var pos = $('.use_device dl:nth-child(2) dt').offset(); 263 var ch = $('.use_device dl:nth-child(2) dt').height(); 264 $('#popup_message_view').css('top', pos.top + ch); 265 } 266 267 return; 268 } else if (agnt.indexOf("window") >= 0) { 269 var popupMessage = new Array(); 270 popupMessage[0] = LanguagePack.POPUP_DOWNLOAD_NOTI; 271 var popup = new PopupMessage(PopupType.DEFAULT, ButtonType.CONFIRM, null, { 272 popupMessage: popupMessage 273 }, defaultAlertCB, defaultAlertCB, defaultAlertCB); 274 popup.create(); 275 popup.show(); 276 if ($(this).hasClass('inner_frame')) { 277 var pos = $('.use_device dl:nth-child(2) dt').offset(); 278 var ch = $('.use_device dl:nth-child(2) dt').height(); 279 $('#popup_message_view').css('top', pos.top + ch); 280 } 281 return; 282 } 283 284 if($(this).hasClass('sync')) { 285 sendEventLog("sync.mac"); 286 poappUrl = "https://itunes.apple.com/kr/app/polaris-office-sync/id928980286"; 287 } else { 288 var eventlog = ($(this).hasClass('2017'))? "pocloud2017.mac":"pocloud.mac"; 289 sendEventLog(eventlog); 290 poappUrl = LanguagePack.MACOFFICE_PROD_URL; 291 } 292 293 if($(this).hasClass('sync')) { 294 var logTxt = '[í´ë¼ì°ë - Mac(sync) - '+ locale +' ] ' + poappUrl; 295 } else { 296 var logTxt = '[í´ë¼ì°ë - Mac - '+ locale +' ] ' + poappUrl; 297 } 298 299 window.location.href = poappUrl; 300 301 if(typeof gtag != 'undefined') 302 gtag("event","fileDownload",{"event_category" : "cloud" , "event_label" : logTxt}); 303 // console.log(logTxt); 304 305 }; 306 307 var macDownEverloadFunc = function(e) { 308 if (e.preventDefault) e.preventDefault(); 309 var agnt = navigator.userAgent.toLowerCase(); 310 if (agnt.indexOf('iphone') >= 0 || agnt.indexOf('ipad') >= 0 || agnt.indexOf('android') >= 0) { 311 var popupMessage = new Array(); 312 popupMessage[0] = LanguagePack.POPUP_BEABLETODOWNLOAD_ONPC; 313 var popup = new PopupMessage(PopupType.DEFAULT, ButtonType.CONFIRM, null, { 314 popupMessage: popupMessage 315 }, defaultAlertCB, defaultAlertCB, defaultAlertCB); 316 popup.create(); 317 popup.show(); 318 return; 319 } else if (agnt.indexOf("windows") >= 0) { 320 var popupMessage = new Array(); 321 popupMessage[0] = LanguagePack.POPUP_DOWNLOAD_NOTI; 322 var popup = new PopupMessage(PopupType.DEFAULT, ButtonType.CONFIRM, null, { 323 popupMessage: popupMessage 324 }, defaultAlertCB, defaultAlertCB, defaultAlertCB); 325 popup.create(); 326 popup.show(); 327 return; 328 } 329 330 commonPreventEvent(e); 331 sendEventLog("popc.mac"); 332 if (IsProdouctionDomain() == 'prod') { 333 poappUrl = LanguagePack.MACOFFICE_SA_PROD_URL; 334 } else { 335 poappUrl = LanguagePack.MACOFFICE_SA_VERIFY_URL; 336 } 337 window.location.href = poappUrl; 338 var logTxt = '[íììì¥ - 구매ìì©(Mac) - '+ locale +' ] ' + poappUrl; 339 gtag("event","fileDownload",{"event_category" : "lifetime" , "event_label" : logTxt}); 340 // console.log(logTxt); 341 }; 342 343 var macDownOndeviceloadFunc = function(e) { 344 if (e.preventDefault) e.preventDefault(); 345 var agnt = navigator.userAgent.toLowerCase(); 346 if (agnt.indexOf('iphone') >= 0 || agnt.indexOf('ipad') >= 0 || agnt.indexOf('android') >= 0) { 347 var popupMessage = new Array(); 348 popupMessage[0] = LanguagePack.POPUP_BEABLETODOWNLOAD_ONPC; 349 var popup = new PopupMessage(PopupType.DEFAULT, ButtonType.CONFIRM, null, { 350 popupMessage: popupMessage 351 }, defaultAlertCB, defaultAlertCB, defaultAlertCB); 352 popup.create(); 353 popup.show(); 354 return; 355 } else if (agnt.indexOf("windows") >= 0) { 356 var popupMessage = new Array(); 357 popupMessage[0] = LanguagePack.POPUP_DOWNLOAD_NOTI; 358 var popup = new PopupMessage(PopupType.DEFAULT, ButtonType.CONFIRM, null, { 359 popupMessage: popupMessage 360 }, defaultAlertCB, defaultAlertCB, defaultAlertCB); 361 popup.create(); 362 popup.show(); 363 return; 364 } 365 366 commonPreventEvent(e); 367 sendEventLog("popc.mac.ai"); 368 369 $('#macAiDownload').css('display', 'flex'); 370 371 $('#macAiDownload .btn_box .btn').on('click', function(){ 372 if (IsProdouctionDomain() == 'prod') { 373 poappUrl = LanguagePack.MACOFFICE_ONDEVICE_PROD_URL; 374 } else { 375 poappUrl = LanguagePack.MACOFFICE_ONDEVICE_VERIFY_URL; 376 } 377 window.location.href = poappUrl; 378 var logTxt = '[íììì¥ - 구매ìì©(MacOndeviceAI) - '+ locale +' ] ' + poappUrl; 379 gtag("event","fileDownload",{"event_category" : "lifetime" , "event_label" : logTxt}); 380 }); 381 }; 382 383 384 var macBrochureFunc = function(e) { 385 commonPreventEvent(e); 386 poappUrl = "https://polink-static-contents.polarisoffice.com/web/assets/file/polaris brochure_PC.pdf"; 387 window.open(poappUrl, "_blank"); 388 var logTxt = '[íììì¥ - 구매ìì©(Mac) - ë¸ë¡ìì´ - '+ locale +' ] ' + poappUrl; 389 gtag("event","brochure",{"event_category" : "lifetime" , "event_label" : logTxt}); 390 // console.log(logTxt); 391 }; 392 393 394 var andDownloadFunc = function(e) { 395 if (e.preventDefault) e.preventDefault(); 396 var eventlog = ($(this).hasClass('2017'))? "pocloud2017.android":"pocloud.android"; 397 var agnt = navigator.userAgent.toLowerCase(); 398 if (isMobile) { 399 sendEventLog(eventlog); 400 401 if(agent.search("ipad") >= 0 || agent.search("iphone") >= 0) { 402 var poappUrl = "https://play.google.com/store/apps/details?id=com.infraware.office.link"; 403 window.open(poappUrl, "_blank"); 404 } else { 405 Appdownload(); 406 } 407 } else { 408 sendEventLog(eventlog); 409 var poappUrl = "https://play.google.com/store/apps/details?id=com.infraware.office.link"; 410 window.open(poappUrl, "_blank"); 411 var logTxt = '[í´ë¼ì°ë - Android - '+ locale +' ] ' + poappUrl; 412 if(typeof gtag != 'undefined') 413 gtag("event","fileDownload",{"event_category" : "cloud" , "event_label" : logTxt}); 414 // console.log(logTxt); 415 } 416 }; 417 418 var iosDownloadFunc = function(e) { 419 if (e.preventDefault) e.preventDefault(); 420 var eventlog = ($(this).hasClass('2017'))? "pocloud2017.ios":"pocloud.ios"; 421 var agnt = navigator.userAgent.toLowerCase(); 422 if (isMobile) { 423 sendEventLog(eventlog); 424 if(agent.search("ipad") >= 0 || agent.search("iphone") >= 0) { 425 Appdownload(); 426 } else { 427 var poappUrl = LanguagePack.APPLE_APP_DOWNLOAD_URL; 428 window.open(poappUrl, "_blank"); 429 } 430 431 } else { 432 sendEventLog(eventlog); 433 var poappUrl = LanguagePack.APPLE_APP_DOWNLOAD_URL; 434 window.open(poappUrl, "_blank"); 435 var logTxt = '[í´ë¼ì°ë - iOS - '+ locale +' ] ' + poappUrl; 436 gtag("event","fileDownload",{"event_category" : "cloud" , "event_label" : logTxt}); 437 // console.log(logTxt); 438 439 } 440 }; 441 442 var saDownloadFunc = function(e) { 443 commonPreventEvent(e); 444 if (e.preventDefault) e.preventDefault(); 445 var agnt = navigator.userAgent.toLowerCase(); 446 if (agnt.indexOf('iphone') >= 0 || agnt.indexOf('ipad') >= 0 || agnt.indexOf('android') >= 0) { 447 var popupMessage = new Array(); 448 popupMessage[0] = LanguagePack.POPUP_BEABLETODOWNLOAD_ONPC; 449 var popup = new PopupMessage(PopupType.DEFAULT, ButtonType.CONFIRM, null, { 450 popupMessage: popupMessage 451 }, defaultAlertCB, defaultAlertCB, defaultAlertCB); 452 popup.create(); 453 popup.show(); 454 if ($(this).hasClass('inner_frame')) { 455 var pos = $('.spec_detail .down_bar').offset(); 456 var ch = $('.spec_detail .down_bar').height(); 457 $('#popup_message_view').css('top', pos.top + ch); 458 } 459 return; 460 } else if (agnt.indexOf("macintosh") >= 0) { 461 var popupMessage = new Array(); 462 popupMessage[0] = LanguagePack.POPUP_DOWNLOAD_NOTI; 463 var popup = new PopupMessage(PopupType.DEFAULT, ButtonType.CONFIRM, null, { 464 popupMessage: popupMessage 465 }, defaultAlertCB, defaultAlertCB, defaultAlertCB); 466 popup.create(); 467 popup.show(); 468 if ($(this).hasClass('inner_frame')) { 469 var pos = $('.spec_detail .down_bar').offset(); 470 var ch = $('.spec_detail .down_bar').height(); 471 $('#popup_message_view').css('top', pos.top + ch); 472 } 473 return; 474 } 475 476 477 478 if($(this).hasClass('ios')) { 479 sendEventLog("po.mobile.ios"); 480 if (locale.includes('ko')){ 481 poappUrl = "https://apps.apple.com/kr/app/polaris-office-link/id698070860"; 482 } else if (locale.includes('ja')) { 483 poappUrl = "https://apps.apple.com/jp/app/polaris-office-2019-docs-pdf/id513188658"; 484 } else if (locale.includes('ru')) { 485 poappUrl = "https://apps.apple.com/ru/app/polaris-office-2019-docs-pdf/id513188658"; 486 } else { 487 poappUrl = "https://apps.apple.com/us/app/polaris-office-2019-docs-pdf/id513188658"; 488 } 489 490 } else { 491 if($(this).hasClass('old')) { 492 sendEventLog("po.win"); 493 poappUrl = "https://install.polarisoffice.com/pcoffice/PolarisOfficeSetup_SA.exe"; 494 var logTxt = '[íììì¥ - 구매ìì©(Windows/구ë²ì ) - '+ locale +' ] ' + poappUrl; 495 } else if($(this).hasClass('2015')) { 496 sendEventLog("pocloud2015.win"); 497 poappUrl = "https://install.polarisoffice.com/pcoffice/PO2015/PolarisOffice2015Install.exe"; 498 var logTxt = '[íììì¥ - 구매ìì©(Windows/2015) - '+ locale +' ] ' + poappUrl; 499 } else { 500 sendEventLog("popc.win"); 501 if (locale.includes('ko')) { 502 poappUrl = "https://install.polarisoffice.com/pcoffice/PolarisOfficeSetup_PC11.exe"; 503 } else { 504 poappUrl = "https://install.polarisoffice.com/pcoffice/PolarisOfficeSetup_PC11_ENG.exe"; 505 } 506 var logTxt = '[íììì¥ - 구매ìì©(Windows) - '+ locale +' ] ' + poappUrl; 507 } 508 } 509 510 window.location.href = poappUrl; 511 512 gtag("event","fileDownload",{
512"event_category" : "lifetime" , "event_label" : logTxt}); 513 // console.log(logTxt); 514 }; 515 516 517 var saManualFunc = function(e) { 518 commonPreventEvent(e); 519 520 if($(this).hasClass('old')) { 521 poappUrl = "https://polink-static-contents.polarisoffice.com/web/assets/file/Polaris_Office_2017_guide_Kor_20180430.pdf"; 522 var logTxt = '[íììì¥ - 구매ìì©(Windows/구ë²ì ) - ë©ë´ì¼ - '+ locale +' ] ' + poappUrl; 523 } else { 524 poappUrl = "https://polink-static-contents.polarisoffice.com/web/assets/file/Polaris_Office_New_guide_Kor.pdf"; 525 var logTxt = '[íììì¥ - 구매ìì©(Windows) - ë©ë´ì¼ - '+ locale +' ] ' + poappUrl; 526 } 527 528 window.open(poappUrl, "_blank"); 529 530 gtag("event","manual",{"event_category" : "lifetime" , "event_label" : logTxt}); 531 // console.log(logTxt); 532 }; 533 534 var saBrochureFunc = function(e) { 535 commonPreventEvent(e); 536 537 if($(this).hasClass('old')) { 538 poappUrl = "https://polink-static-contents.polarisoffice.com/web/assets/file/Introduction_PolarisOffice.pdf"; 539 var logTxt = '[íììì¥ - 구매ìì©(Windows/구ë²ì ) - ë¸ë¡ìì´ - '+ locale +' ] ' + poappUrl; 540 } else { 541 poappUrl = "https://polink-static-contents.polarisoffice.com/web/assets/file/polaris brochure_PC.pdf"; 542 var logTxt = '[íììì¥ - 구매ìì©(Windows) - ë¸ë¡ìì´ - '+ locale +' ] ' + poappUrl; 543 } 544 545 window.open(poappUrl, "_blank"); 546 547 gtag("event","brochure",{"event_category" : "lifetime" , "event_label" : logTxt}); 548 // console.log(logTxt); 549 }; 550 551 var docsManualFunc = function(e) { 552 commonPreventEvent(e); 553 poappUrl = "https://polink-static-contents.polarisoffice.com/web/assets/file/Polaris Docs.pdf"; 554 var logTxt = '[ì루ì - Polaris Docs - ë©ë´ì¼ - '+ locale +' ] ' + poappUrl; 555 window.open(poappUrl, "_blank"); 556 gtag("event","manual",{"event_category" : "solution" , "event_label" : logTxt}); 557 // console.log(logTxt); 558 }; 559 560 561 562 563 var saDownloadFunc02 = function(e) { 564 commonPreventEvent(e); 565 566 if($(this).hasClass('ios')) { 567 sendEventLog("po.mobile.ios"); 568 if (locale.includes('ko')){ 569 poappUrl = "https://apps.apple.com/kr/app/polaris-office-2019-docs-pdf/id513188658"; 570 } else if (locale.includes('ja')) { 571 poappUrl = "https://apps.apple.com/jp/app/polaris-office-2019-docs-pdf/id513188658"; 572 } else if (locale.includes('ru')) { 573 poappUrl = "https://apps.apple.com/ru/app/polaris-office-2019-docs-pdf/id513188658"; 574 } else { 575 poappUrl = "https://apps.apple.com/us/app/polaris-office-2019-docs-pdf/id513188658"; 576 } 577 578 } 579 580 window.open(poappUrl, "_blank"); 581 var logTxt = '[íììì¥ - iOS - '+ locale +' ] ' + poappUrl; 582 gtag("event","fileDownload",{"event_category" : "lifetime" , "event_label" : logTxt}); 583 // console.log(logTxt); 584 }; 585 586 var viewerDownloadFunc = function(e) { 587 commonPreventEvent(e); 588 589 if($(this).hasClass('android')) { 590 sendEventLog("viewer.android"); 591 poappUrl = "https://play.google.com/store/apps/details?id=com.infraware.office.reader.team"; 592 } else { 593 sendEventLog("viewer.ios"); 594 595 if (locale.includes('ko')){ 596 poappUrl = "https://itunes.apple.com/kr/app/%ED%8F%B4%EB%9D%BC%EB%A6%AC%EC%8A%A4-%EB%B7%B0%EC%96%B4-pdf-%ED%95%9C%EA%B8%80-%EC%98%A4%ED%94%BC%EC%8A%A4-%EB%AC%B8%EC%84%9C-%EB%A6%AC%EB%8D%94/id1361508774?mt=8"; 597 } else if (locale.includes('ja')) { 598 poappUrl = "https://apps.apple.com/jp/app/polaris-viewer-officeææ¸-pdf/id1361508774"; 599 } else if (locale.includes('ru')) { 600 poappUrl = "https://apps.apple.com/ru/app/polaris-viewer-pdf-document/id1361508774"; 601 } else { 602 poappUrl = "https://apps.apple.com/app/polaris-viewer-pdf-document/id1361508774"; 603 } 604 605 } 606 607 window.open(poappUrl, "_blank"); 608 609 if($(this).hasClass('android')) { 610 var logTxt = '[ë·°ì´ - Android - '+ locale +' ] ' + poappUrl; 611 }else { 612 var logTxt = '[ë·°ì´ - ios - '+ locale +' ] ' + poappUrl; 613 } 614 615 gtag("event","fileDownload",{"event_category" : "viewer" , "event_label" : logTxt}); 616 // console.log(logTxt); 617 618 }; 619 620 var winDownloadFunc = function(e) { 621 commonPreventEvent(e); 622 var poappUrl = "https://install.polarisoffice.com/pcoffice/PolarisOfficeSetup.exe"; 623 window.location.href = poappUrl; 624 var logTxt = '[í´ë¼ì°ë - 구매ìì©(Windows) - '+ locale +' ] ' + poappUrl; 625 gtag("event","fileDownload",{"event_category" : "cloud" , "event_label" : logTxt}); 626 // console.log(logTxt); 627 628 }; 629 630 631 if(location.href.indexOf('download') > -1) { 632 /* ì¤ì¹ íì¼ */ 633 $('.downloadViewer').on('click', viewerDownloadFunc); 634 $('.downloadcloud').on('click', winDownloadFunc); 635 636 /* ë©ë´ì¼ */ 637 $('.manualPc').on('click', pcManualFunc); 638 $('.manualSa').on('click', saManualFunc); 639 $('.manualDocs').on('click', docsManualFunc); 640 641 642 /* ë¸ë¡ìì´ */ 643 $('.brochurePc').on('click', pcBrochureFunc); 644 $('.brochureSA').on('click', saBrochureFunc); 645 $(".brochureMacEver").on('click', macBrochureFunc); 646 647 // $('div.btn_box a.brosure').on('click', function () { 648 // var productInfo; 649 // var downloadURL; 650 // var name = $.trim($('#support_name').val()); 651 // var email = $.trim($('#support_email').val()); 652 // var companyInfo = $.trim($('#support_company').val()); 653 // var companyValue = $('.select#companysize option:selected').index(); 654 // var agree = $('#agree').prop('checked'); 655 656 // if(!name.length) { 657 // alert(LanguagePack.TEAM_REGIST_ENTERNAME); 658 // $('#support_name').focus(); 659 // return; 660 // } 661 662 // var errormsg = null; 663 // if(!email.length) { 664 // errormsg = LanguagePack.BUBBLE_ENTERYOUREMAIL; 665 // } else if(!(/^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(email))) { 666 // errormsg = LanguagePack.BUBBLE_ENTEREMAILFORMAT; 667 // } 668 669 // if(errormsg != null) { 670 // alert(errormsg); 671 // $('#support_email').focus(); 672 // return; 673 // } 674 675 // if(!companyInfo.length) { 676 // alert(LanguagePack.TEAM_REGIST_ENTERTEAMNAME); 677 // $('#support_company').focus(); 678 // return; 679 // } 680 681 // if(companyValue === 0) { 682 // alert(LanguagePack.COMPANY_SIZE_ERROR); 683 // $('.select#companysize').focus(); 684 // return; 685 // } 686 687 // if(!agree) { 688 // alert(LanguagePack.AGREECHECK2); 689 // $('#agree').focus(); 690 // return; 691 // } 692 693 // if($('span.title').text() == "Polaris Web Editor") { 694 // productInfo = 1; 695 // downloadURL = 'https://polink-static-contents.polarisoffice.com/web/assets/file/polaris brochure_webeditor.pdf' 696 // } else if($('span.title').text() == "Polaris Converter") { 697 // productInfo = 2; 698 699 // if (locale.includes('ko')){ 700 // downloadURL = 'https://polink-static-contents.polarisoffice.com/web/assets/file/PO brochure_KR_converter.pdf' 701 // }else { 702 // downloadURL = 'https://polink-static-contents.polarisoffice.com/web/assets/file/PO brochure_EN_converter.pdf' 703 // } 704 705 // } else if($('span.title').text() == "Polaris Docs") { 706 // productInfo = 3; 707 // downloadURL = 'https://polink-static-contents.polarisoffice.com/web/assets/file/polaris brochure_docs.pdf' 708 709 // if (locale.includes('ko')){ 710 // downloadURL = 'https://polink-static-contents.polarisoffice.com/web/assets/file/polaris brochure_docs.pdf' 711 // }else { 712 // downloadURL = 'https://polink-static-contents.polarisoffice.com/web/assets/file/PO brochure_EN_docs.pdf' 713 // } 714 715 // } else if($('span.title').text() == "Polaris ML-Report") { 716 // productInfo = 4; 717 // downloadURL = 'https://polink-static-contents.polarisoffice.com/web/assets/file/polaris brochure_ml.pdf' 718 719 // if (locale.includes('ko')){ 720 // downloadURL = 'https://polink-static-contents.polarisoffice.com/web/assets/file/polaris brochure_ml.pdf' 721 // }else { 722 // downloadURL = 'https://polink-static-contents.polarisoffice.com/web/assets/file/PO brochure_EN_mlreport.pdf' 723 // } 724 725 // } else if($('span.title').text() == "Polaris Office Mobile SDK") { 726 // productInfo = 5; 727 728 729 // if (locale.includes('ko')){ 730 // downloadURL = 'https://polink-static-contents.polarisoffice.com/web/assets/file/polaris brochure_sdk.pdf' 731 // }else { 732 // downloadURL = 'https://polink-static-contents.polarisoffice.com/web/assets/file/PO brochure_EN_mobilesdk.pdf' 733 // } 734 735 // } else if($('span.title').text() == "Atlassian Solution") { 736 // productInfo = 6; 737 // downloadURL = 'https://polink-static-contents.polarisoffice.com/web/assets/file/polaris brochure_attlasian.pdf' 738 739 740 // if (locale.includes('ko')){ 741 // downloadURL = 'https://polink-static-contents.polarisoffice.com/web/assets/file/PO brochure_KR_atlassian.pdf' 742 // }else { 743 // downloadURL = 'https://polink-static-contents.polarisoffice.com/web/assets/file/PO brochure_EN_atlassian.pdf' 744 // } 745 746 // } else if($('span.title').text() == "V-Guard") { 747 // productInfo = 7; 748 // downloadURL = 'https://polink-static-contents.polarisoffice.com/web/assets/file/V Guard brochure KR.pdf' 749 // } 750 751 // var reqData = { 752 // "name": $('#support_name').val(), 753 // "email": $('#support_email').val(), 754 // "productInfo": productInfo, 755 // "companyInfo": $('#support_company').val(), 756 // "companyValue": $('.select#companysize option:selected').index(), 757 // "phoneNumber": $('#support_tel').val(), 758 // "mobileNumber": $('#support_cellphone').val(), 759 // "agree": $('#agree').prop('checked') 760 // }; 761
762 // popcorn.appdownloadUser(reqData, function (res) { 763 // if (res.statusCode == 200) { 764 // window.open(downloadURL,"_blank"); 765 766 // var logTxt = '[ì루ì ' + $('span.title').text() + ' - '+ locale +' ] ' + downloadURL; 767 // gtag("event","brochure",{"event_category" : "solution" , "event_label" : logTxt}); 768 // console.log(logTxt) 769 770 // return; 771 // } 772 // }); 773 // $('#brosure').find('input[type=text]').val('') 774 // $('#brosure').find('select').val('') 775 // $('#brosure').find('.support_write .checkbox').removeClass('on') 776 // $('#brosure').find('.support_write .checkbox input[type=checkbox]').prop('checked',''); 777 // modalClose('brosure'); 778 // return false; 779 // }); 780 781 $('.store_tab a').on('click', function(){ 782 var targetTab = $(this).attr('href'); 783 $(this).addClass('on').siblings('a').removeClass('on') 784 785 if($(this).hasClass('fst')) { 786 $(this).parent().removeClass('swipe'); 787 $('.bg_common.type03').hide(); 788 } else { 789 $(this).parent().addClass('swipe'); 790 $('.bg_common.type03').show(); 791 } 792 793 $('.store_tab_cont').hide(); 794 $(targetTab).show(); 795 $('.list_down .manual span').each(function () { 796 var cW = $(this).outerWidth() / 2; 797 $(this).css('margin-left', -cW) 798 }); 799 return false; 800 }); 801 802 // $('.down_more').on('click', function(){ 803 // $(this).toggleClass('on'); 804 // $('.prod_list.hidden').toggleClass('on'); 805 // $('.list_down .manual span').each(function () { 806 // var cW = $(this).outerWidth() / 2; 807 // $(this).css('margin-left', -cW) 808 // }); 809 // return false; 810 // }); 811 } 812 813 $(".downloadPC").on('click', pcDownloadFunc); 814 $(".downloadMS").on('click', msDownloadFunc); 815 $(".downloadMac").on('click', macDownloadFunc); 816 $(".downloadMacEver").on('click', macDownEverloadFunc); 817 $(".downloadMacEverAi").on('click', macDownOndeviceloadFunc); 818 $(".google-store").on('click', andDownloadFunc); 819 $(".itunes-store").on('click', iosDownloadFunc); 820 $('.downloadSA').on('click', saDownloadFunc); 821 $('.downloadSA02').on('click', saDownloadFunc02); 822 823 if (urlPath.endsWith('/business')) { 824 $('#bTab').click(); 825 } 826 827 var logData = getUrlParam()['var1']; 828 if (typeof logData !== 'undefined') { 829 sendAccessLog(logData); 830 } 831 832}); 833 834function sendEventLog(el){ 835 var webData = $LOGMODEL.getData(); 836 webData['ti'].t = LogType.tracking.event; 837 webData['obj'].ec = "ux"; 838 webData['obj'].ea = "cl"; 839 webData['obj'].el = el; 840 webData['obj'].dp = "DownloadLink"; 841 webData['obj'].dt = local; 842 843 $LOGMODEL.sendData(webData); 844} 845 846
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.