Compare commits
No commits in common. "3c2ce3610f58a20246d9cb6eeff74326be597bc2" and "d8b33496dc563466b02e16c1cd37bf7b2e1445d9" have entirely different histories.
3c2ce3610f
...
d8b33496dc
@ -745,45 +745,23 @@ function hitungTotalHarga(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function copyNoRek() {
|
function copyNoRek() {
|
||||||
const text = document.getElementById('noRekText').innerText;
|
const text = document.getElementById('noRekText').innerText;
|
||||||
navigator.clipboard.writeText(text).then(() => {
|
navigator.clipboard.writeText(text).then(() => {
|
||||||
Swal.fire({
|
alert("Nomor rekening berhasil disalin: " + text);
|
||||||
icon: 'success',
|
}).catch(err => {
|
||||||
title: 'Disalin!',
|
console.error('Gagal menyalin: ', err);
|
||||||
text: 'Nomor rekening berhasil disalin: ' + text,
|
alert("Gagal menyalin teks.");
|
||||||
showConfirmButton: false,
|
});
|
||||||
timer: 1500
|
}
|
||||||
});
|
|
||||||
}).catch(err => {
|
|
||||||
console.error('Gagal menyalin: ', err);
|
|
||||||
Swal.fire({
|
|
||||||
icon: 'warning',
|
|
||||||
text: 'Gagal menyalin teks: ' + text,
|
|
||||||
showConfirmButton: false,
|
|
||||||
timer: 2000
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function copyNoOrder() {
|
function copyNoOrder() {
|
||||||
const text = document.getElementById('no_order_display').innerText;
|
const text = document.getElementById('no_order_display').innerText;
|
||||||
navigator.clipboard.writeText(text).then(() => {
|
navigator.clipboard.writeText(text).then(() => {
|
||||||
Swal.fire({
|
alert("Nomor order berhasil disalin: " + text);
|
||||||
icon: 'success',
|
|
||||||
title: 'Disalin!',
|
|
||||||
text: 'Nomor order berhasil disalin: ' + text,
|
|
||||||
showConfirmButton: false,
|
|
||||||
timer: 1500
|
|
||||||
});
|
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.error('Gagal menyalin: ', err);
|
console.error('Gagal menyalin: ', err);
|
||||||
Swal.fire({
|
alert("Gagal menyalin teks.");
|
||||||
icon: 'warning',
|
|
||||||
text: 'Gagal menyalin teks: ' + text,
|
|
||||||
showConfirmButton: false,
|
|
||||||
timer: 2000
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
<p class="lead">Terima kasih atas pesanan Anda. Kami akan segera menyiapkannya dan menghubungi Anda jika diperlukan.</p>
|
<p class="lead">Terima kasih atas pesanan Anda. Kami akan segera menyiapkannya dan menghubungi Anda jika diperlukan.</p>
|
||||||
<hr class="my-4">
|
<hr class="my-4">
|
||||||
<p class="text-muted">Simpan Nomor Order Anda untuk memantau status pesanan secara berkala. Hubungi kami jika ada pertanyaan.</p>
|
<p class="text-muted">Simpan Nomor Order Anda untuk memantau status pesanan secara berkala. Hubungi kami jika ada pertanyaan.</p>
|
||||||
<p>No Order : <strong id="noOrderText">{{ $no_order }}</strong>
|
<p>No Order : <strong>{{ $no_order }}</strong>
|
||||||
<button class="btn btn-sm btn-outline-secondary ms-2" onclick="copyNoOrder()">
|
<button class="btn btn-sm btn-outline-secondary ms-2" onclick="copyNoOrder()">
|
||||||
<i class="fa fa-copy"></i> Salin
|
<i class="fa fa-copy"></i> Salin
|
||||||
</button>
|
</button>
|
||||||
@ -27,21 +27,10 @@
|
|||||||
function copyNoOrder() {
|
function copyNoOrder() {
|
||||||
const text = document.getElementById('noOrderText').innerText;
|
const text = document.getElementById('noOrderText').innerText;
|
||||||
navigator.clipboard.writeText(text).then(() => {
|
navigator.clipboard.writeText(text).then(() => {
|
||||||
Swal.fire({
|
alert("Nomor order berhasil disalin: " + text);
|
||||||
icon: 'success',
|
|
||||||
title: 'Disalin!',
|
|
||||||
text: 'Nomor order berhasil disalin: ' + text,
|
|
||||||
showConfirmButton: false,
|
|
||||||
timer: 1500
|
|
||||||
});
|
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.error('Gagal menyalin: ', err);
|
console.error('Gagal menyalin: ', err);
|
||||||
Swal.fire({
|
alert("Gagal menyalin teks.");
|
||||||
icon: 'warning',
|
|
||||||
text: 'Gagal menyalin teks: ' + text,
|
|
||||||
showConfirmButton: false,
|
|
||||||
timer: 2000
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user