From 06645e72c33480533a67522ac21414ca82e5c2c7 Mon Sep 17 00:00:00 2001 From: asandikci Date: Thu, 16 Nov 2023 18:18:01 +0300 Subject: [PATCH] feat: payment page copy payment information with one click --- iflpanel/ssavpn/assets/copy.js | 12 +++++- iflpanel/ssavpn/index.php | 1 + iflpanel/ssavpn/odeme/index.php | 72 +++++++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+), 2 deletions(-) create mode 100644 iflpanel/ssavpn/odeme/index.php diff --git a/iflpanel/ssavpn/assets/copy.js b/iflpanel/ssavpn/assets/copy.js index eea525f..6534a1c 100644 --- a/iflpanel/ssavpn/assets/copy.js +++ b/iflpanel/ssavpn/assets/copy.js @@ -1,4 +1,4 @@ -function copy2Clipboard(id) { +async function copy2Clipboard(id) { var copyText = document.getElementById(id); // copyText.select(); @@ -7,5 +7,13 @@ function copy2Clipboard(id) { navigator.clipboard.writeText(copyText.innerHTML); var tooltip = document.getElementById(id+'-tip'); - tooltip.innerHTML = "Kopyalandı: " + copyText.innerHTML; + tooltip.innerHTML = "Kopyalandı! "; + tooltip.style.display = 'inherit'; + tooltip.style.color = 'green'; + tooltip.style.fontSize = "smaller"; + + + await new Promise(r => setTimeout(r, 2000)); + + tooltip.style.display= 'none'; } \ No newline at end of file diff --git a/iflpanel/ssavpn/index.php b/iflpanel/ssavpn/index.php index 3a4f370..101d004 100644 --- a/iflpanel/ssavpn/index.php +++ b/iflpanel/ssavpn/index.php @@ -69,6 +69,7 @@ if (!$_SERVER['DOCUMENT_ROOT']) {

Android Uygulamasını (apk) İndir

SSA Sertifika

NASIL KURULUR

+

ÖDEME BİLGİLERİ

Kullanıcı Sözleşmesi

Gizlilik Politikası

diff --git a/iflpanel/ssavpn/odeme/index.php b/iflpanel/ssavpn/odeme/index.php new file mode 100644 index 0000000..18390b0 --- /dev/null +++ b/iflpanel/ssavpn/odeme/index.php @@ -0,0 +1,72 @@ + + +

Error: [$errno] $errstr
in file $errfile line $errline

"; +} +set_error_handler("warnError"); + +if (!$_SERVER['DOCUMENT_ROOT']) { + $_SERVER['DOCUMENT_ROOT'] = '/weblink'; +} +# TODO separate file +?> + + + + + + + + + + + + + + + + + Ödeme Bilgileri | SSA VPN + + + + + + +
+ +
+
+
+

Ödeme Bilgileri

+
+

IBAN:

+

TR63 0082 9000 0949 1444 3182 51

+ +
+

Papara Numarası:

+

14444318251

+ +
+

Tek seferlik 25₺, "isim-soyisim, SSA VPN" şeklinde açıklama giriniz.

+
+ +
+
2023 🄯 Aliberk Sandıkçı
+
+
+ isDot()) && str_ends_with($file, ".js") && $file != "jquery.js") { + echo '' . PHP_EOL . ' '; + } + } ?> + + + + \ No newline at end of file