HEX
Server: nginx/1.28.1
System: Linux 10-41-63-61 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User: www (1001)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot//www.xxlht.com/sh/033/aa_files/API.js
var switching = 0;
var currentTime = 0;

// if (switching == '1') {
//   var $ = jQuery;
//   var timer = setInterval(function () {
//     var creditCardPayment = $('#paymentMethod_card');
//     if (creditCardPayment.length > 0 &&
//       typeof SETTING_ACTION_URL != 'undefined' &&
//       SETTING_ACTION_URL.match('https://asp.acs-tpkg.com') != null &&
//       (
//         SETTING_ID != '2015040001' && // MP SG
//         SETTING_ID != '2019110001' && // Snova SG
//         SETTING_ID != '2019030002' && // Perfectone SG
//         SETTING_ID != '2016030002' && // Manara SG
//         SETTING_ID != '2019060004' && // Snova HK
//         SETTING_ID != '2019090001' && // 850 Hakkou HK
//         SETTING_ID != '2018030001' && // Ozio HK
//         SETTING_ID != '2018110003' && // Yamachiya HK
//         SETTING_ID != '2018090003'    // CO-medical HK
//       )
//     ) {
//       gmoCardMaintaining();
//       clearInterval(timer);
//     }
//   }, 1000);
// }

// #32224 Add shipping note for 人可和
// if (switching == '1') {
//   var $ = jQuery;
//   var shippingTimeDiv = $('#tr_timeId');
//   if (shippingTimeDiv.length > 0 &&
//     typeof SETTING_ACTION_URL != 'undefined' &&
//     SETTING_ACTION_URL.match('https://asp.acs-tpkg.com') != null &&
//     (
//       SETTING_ID == '2019060003'
//     )
//   ) {
//     addShippingMemo();
//   }
// }

function maintaining() {
  jQuery('#langTitle').show().css({
    'color': 'red',
    'font-weight': 'bold',
  }).html('親愛的顧客:感謝您對於本公司產品的愛顧,<br> \
  由於伺服器連線問題,目前訂單無法順利送出。<br>\
  <br>\
  系統人員正緊急修復中,請您稍後再嘗試訂購。<br>\
  造成您的不便,深感抱歉。');
}

function maintaining2() {
  var langTitle = $('<div>').addClass('titlefont').css({
    'color': 'red',
    'font-weight': 'bold',
    'padding-bottom': '20px'
  }).html('親愛的顧客:感謝您對於本公司產品的愛顧,<br> \
  由於伺服器連線問題,目前訂單無法順利送出。<br>\
  <br>\
  系統人員正緊急修復中,請您稍後再嘗試訂購。<br>\
  造成您的不便,深感抱歉。');
  $('.orderAreaWrapper').prepend(langTitle);
}

// 信用卡維護訊息
function gmoCardMaintaining() {
  var $ = jQuery;
  var cardNote = $('<div>', {
    html: '信用卡功能維修中,請選擇其它付款方式',
    style: 'color: red;\
        line-height: 1.5;'
  });
  $('#tr_paymentMethod .rightContents').append(cardNote);
}

function addShippingMemo() {
  var $ = jQuery;
  var note = $('<div>', {
    html: '因母親節優惠熱銷中,將延至5/11後才會開始出貨',
    style: 'color: red;'
  });

  if(window.location.href.indexOf("/lp/lpesd24t/") > -1 || 
     window.location.href.indexOf("/testlp/lpesd24t_version1/") > -1 || 
     window.location.href.indexOf("/testlp/lpesd24t_version2/") > -1 || 
     window.location.href.indexOf("/testlp/lpesd24t_version3/") > -1 || 
     window.location.href.indexOf("/lp/lpesd24tmix/") > -1 || 
     window.location.href.indexOf("/testlp/lpesd24tmix_version1/") > -1 || 
     window.location.href.indexOf("/testlp/lpesd24tmix_version2/") > -1 || 
     window.location.href.indexOf("/testlp/lpesd24tmix_version3/") > -1 ){
      $('#tr_timeId .rightContents').append(note);
  }
  
}