diff --git a/src/main/resources/static/js/index.js b/src/main/resources/static/js/index.js index 8f61c48..a35bbc3 100644 --- a/src/main/resources/static/js/index.js +++ b/src/main/resources/static/js/index.js @@ -36,11 +36,10 @@ $(document).ready(function() { var text = "-javaagent:/(Your Path)/ja-netfilter/ja-netfilter.jar\n" + "--add-opens=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED\n" + "--add-opens=java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED"; - navigator.clipboard.writeText(text).then(function() { - alert("已复制:\n" + text); - }).catch(function(error) { - alert("复制失败: " + error); - }); + copyText(text) + .then((result) => { + alert(result); + }); }; // Function to copy license @@ -70,10 +69,10 @@ $(document).ready(function() { const copyText = async (val) => { if (navigator.clipboard && navigator.permissions) { await navigator.clipboard.writeText(val); - return "The activation code has been copied"; + return "已复制成功"; } else { console.log(val); - return "The system does not support it, please go to the console to copy it manually"; + return "系统不支持复制功能,或者当前非SSL访问,若为Local环境,请使用127.0.0.1或者localhost访问."; } }; diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 00961e4..827ed1c 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -11,15 +11,15 @@

- 🇨🇳 Download ja-netfilter.zip , and configure - your JetBrains's vmoptions!
- 🇨🇳 Also you can Refill license information to customizer your license!
- 🇨🇳 Please note that this page is only developed and used by ja-netfilter.zip , 然后配置 + 你的JetBrains IDE(anything)'s IDE.vmoptions 配置文件!
+ 🇨🇳 当然你也可以 重新定制激活授权 用以自定义你的激活信息!
+ 🇨🇳 请注意,此页面仅由 - personally! + 个人所有!

- +
@@ -38,8 +38,8 @@

-

+

**********

@@ -62,8 +62,8 @@

-

+

**********

@@ -77,27 +77,27 @@ style="position:fixed;top:0;left:0;z-index:998;width:100%;height:100%;display:none;background-color:#000;opacity:0.5;overflow:hidden;">