CHÀO MỪNG QUỐC KHÁNH 2/9

ĐƠN HÀNG ĐÃ ĐƯỢC GHI NHẬN

Cảm Ơn Khách Hàng
Đã Đặt Hàng Thành Công

Shop nghỉ lễ trong 02 ngày 01/09 và 02/09. Shop sẽ liên hệ lại để xác nhận đơn hàng và gửi hàng cho quý khách vào ngày 03/09.

SHOP NGHỈ LỄ 01/09 – 02/09
LIÊN HỆ & GỬI HÀNG 03/09

Cảm ơn quý khách đã thông cảm và tin tưởng shop!

(function () { var root = document.getElementById( "dc-thankyou-page" ); if ( !root || root.getAttribute( "data-sound-ready" ) === "1" ) { return; } root.setAttribute( "data-sound-ready", "1" ); var button = document.getElementById( "dc-enable-sound" ); var buttonText = button ? button.querySelector("span") : null; var audioContext = null; var typeInterval = null; var startTimer = null; var finishTimer = null; function getAudioContext() { if (!audioContext) { var AudioEngine = window.AudioContext || window.webkitAudioContext; if (AudioEngine) { audioContext = new AudioEngine(); } } return audioContext; } function clearSound() { if (typeInterval) { window.clearInterval( typeInterval ); } if (startTimer) { window.clearTimeout( startTimer ); } if (finishTimer) { window.clearTimeout( finishTimer ); } typeInterval = null; startTimer = null; finishTimer = null; } function playTick(index) { var context = getAudioContext(); if ( !context || context.state !== "running" ) { return; } var oscillator = context.createOscillator(); var gain = context.createGain(); var now = context.currentTime; oscillator.type = "sine"; oscillator.frequency .setValueAtTime( 430 + (index % 4) * 24, now ); gain.gain .setValueAtTime( 0.0001, now ); gain.gain .exponentialRampToValueAtTime( 0.017, now + 0.006 ); gain.gain .exponentialRampToValueAtTime( 0.0001, now + 0.035 ); oscillator.connect(gain); gain.connect(context.destination); oscillator.start(now); oscillator.stop(now + 0.06); } function playFinishSound() { var context = getAudioContext(); if ( !context || context.state !== "running" ) { return; } [620, 820].forEach( function (frequency, index) { var oscillator = context.createOscillator(); var gain = context.createGain(); var start = context.currentTime + index * 0.09; oscillator.type = "sine"; oscillator.frequency .setValueAtTime( frequency, start ); gain.gain .setValueAtTime( 0.0001, start ); gain.gain .exponentialRampToValueAtTime( 0.032, start + 0.012 ); gain.gain .exponentialRampToValueAtTime( 0.0001, start + 0.16 ); oscillator.connect(gain); gain.connect( context.destination ); oscillator.start(start); oscillator.stop( start + 0.18 ); } ); } function restartAnimation() { root.classList.add( "dc-restarting" ); void root.offsetWidth; root.classList.remove( "dc-restarting" ); } function replayWithSound() { var context = getAudioContext(); if (!context) { restartAnimation(); return; } Promise .resolve(context.resume()) .then(function () { clearSound(); restartAnimation(); if (button) { button.disabled = true; } if (buttonText) { buttonText.textContent = "Đang phát thông báo..."; } var soundIndex = 0; startTimer = window.setTimeout( function () { typeInterval = window.setInterval( function () { playTick(soundIndex); soundIndex += 1; }, 55 ); }, 800 ); finishTimer = window.setTimeout( function () { if (typeInterval) { window.clearInterval( typeInterval ); } playFinishSound(); if (button) { button.disabled = false; } if (buttonText) { buttonText.textContent = "Phát lại có âm thanh"; } }, 7900 ); }); } if (button) { button.addEventListener( "click", replayWithSound ); } })();