diff --git a/assets/css/style.css b/assets/css/style.css index 6e6d5fc..aec49c0 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -413,6 +413,18 @@ input:checked + .slider { margin: 0px 0 -7px 0; font-size: 30px; } +.modal-footer button { + float: right; + width: 50%; + margin-right: 0!important; + margin-bottom: 5px!important; +} +.modal-footer button:nth-child(odd) { + margin-left: 5px!important; +} +.modal-footer button:nth-child(even) { + width: calc(50% - 5px) +} .tooltip .tooltip-inner { font: 11px vazir; diff --git a/assets/js/lang.js b/assets/js/lang.js index 9132d84..8a9042e 100644 --- a/assets/js/lang.js +++ b/assets/js/lang.js @@ -26,7 +26,7 @@ function setLanguagePreference(lang) { } async function fetchLanguageData(lang) { - const response = await fetch("assets/lang/"+lang+".json?v1.12"); + const response = await fetch("assets/lang/"+lang+".json?v1.12.1"); return response.json(); } diff --git a/assets/js/script.js b/assets/js/script.js index 5952a36..b154515 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -455,7 +455,7 @@ $(document).on('click', '#getFile', function(e) { }); }); -$(document).on('click', '#copyCode', function (e) { +$(document).on('click', '#copyCode, #copyJsonFromQR', function (e) { e.preventDefault(); generateJson() .then(data => { @@ -465,6 +465,7 @@ $(document).on('click', '#copyCode', function (e) { input.select(); input.setSelectionRange(0, 99999); document.execCommand('copy'); + $("#qrModal").modal('hide'); alert('کد در کلیپبورد کپی شد.'); }) .catch(error => { diff --git a/assets/lang/cn.json b/assets/lang/cn.json index b430c3e..a16e620 100644 --- a/assets/lang/cn.json +++ b/assets/lang/cn.json @@ -18,6 +18,7 @@ "config_form_copyurl": "复制网址", "config_form_jsonurl": "查看代码", "config_form_qrcode": "QR码", + "config_form_convert": "转换为片段", "config_switch_tls": "TLS", "config_switch_tls_tooltip": "切换TLS片段和TCP段之间的能力", "config_switch_insecure": "不安全", diff --git a/assets/lang/en.json b/assets/lang/en.json index 557728b..d5516d7 100644 --- a/assets/lang/en.json +++ b/assets/lang/en.json @@ -18,6 +18,7 @@ "config_form_copyurl": "Copy URL", "config_form_jsonurl": "View code", "config_form_qrcode": "QR CODE", + "config_form_convert": "Convert to Fragment", "config_switch_tls": "TLS", "config_switch_tls_tooltip": "the ability to switch between TLS Fragment and TCP Segment", "config_switch_insecure": "Insecure", diff --git a/assets/lang/fa.json b/assets/lang/fa.json index 6cd2e84..546b647 100644 --- a/assets/lang/fa.json +++ b/assets/lang/fa.json @@ -17,6 +17,7 @@ "config_form_copy": "کپی کد", "config_form_copyurl": "کپی آدرس", "config_form_jsonurl": "مشاهده کد", + "config_form_convert": "تبدیل به فرگمنت", "config_form_qrcode": "QR CODE", "config_switch_tls": "TLS", "config_switch_tls_tooltip": "امکان سوییچ بین حالت TLS Fragment و TCP Segment", diff --git a/assets/lang/ru.json b/assets/lang/ru.json index fe9578c..c600ebd 100644 --- a/assets/lang/ru.json +++ b/assets/lang/ru.json @@ -18,6 +18,7 @@ "config_form_copyurl": "Скопируйте URL", "config_form_jsonurl": "Посмотреть код", "config_form_qrcode": "QR-код", + "config_form_convert": "Преобразовать в фрагмент", "config_switch_tls": "TLS", "config_switch_tls_tooltip": "Возможность переключения между фрагментацией TLS и сегментацией TCP", "config_switch_insecure": "Небезопасный", diff --git a/index.html b/index.html index e27b583..af870cb 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - +