Browse Source

更新 'user-defined.js'

WXT往昔 3 years ago
parent
commit
24a84f00ba
1 changed files with 23 additions and 0 deletions
  1. 23 0
      user-defined.js

+ 23 - 0
user-defined.js

@@ -54,3 +54,26 @@
     });
     });
 }
 }
 
 
+alert_s = function(value = '类容'){
+    $('body').append(`
+<div id="alert" style="background:transparent;
+left:0px;
+right:0px;
+top:0px;
+bottom:0px;
+margin:auto;
+text-align: center;
+position:fixed;
+z-index:999999;">
+
+<div style="text-align: center;position:absolute;
+    left:0px;right:0px;top:0px;bottom:0px;margin:auto;
+    width:150px;height:35px;border-radius:5px;background: rgba(0,0,0,0.3)">
+        <span style="height:35px;line-height:35px;color: #ffffff;font-size: 13px">${value}</span>
+    </div>
+</div>`);
+
+    setTimeout(function () {
+        $('#alert').remove();
+    },500)
+}