ご注文ありがとうございます。

お客様番号:

このページの有効時間
残り::

このページの有効時間
残り::

var countdownTimerSetMinutes = countdownTimerSetMinutes || {}; (function(_) { _.countdownTimerSetMinutes = function() { let coutdownTime = 15; let interval; let currentTime = new Date(); let targetTime = new Date(); targetTime.setMinutes(currentTime.getMinutes() + coutdownTime); function checkComplete() { let countdownTime; currentTime = new Date(); let campaignCountM = document.getElementsByClassName("countdownM"); let campaignCountS = document.getElementsByClassName("countdownS"); let campaignCountMS = document.getElementsByClassName("countdownMS"); if (currentTime <= targetTime) { diffTime = targetTime - currentTime; } const m = Math.floor(diffTime / 1000 / 60) % 60; const s = Math.floor(diffTime / 1000) % 60; const ms = Math.floor((diffTime % 1000) / 10); let toDoubleDigits = function(num) { num += ""; if (num.length === 1) { num = "0" + num; } return num; }; let l = campaignCountM.length; for (let i = 0; i < l; i++) { campaignCountM[i].textContent = toDoubleDigits(m); campaignCountS[i].textContent = toDoubleDigits(s); campaignCountMS[i].textContent = toDoubleDigits(ms); } } document.addEventListener("beforeunload", function() { checkComplete(); }); if (!checkComplete()) { interval = setInterval(checkComplete, 10); } }; _.init = function() { _.countdownTimerSetMinutes(); }; })(countdownTimerSetMinutes); document.addEventListener("DOMContentLoaded", countdownTimerSetMinutes.init, false);