Browse Source

更新 'add_css.js'

WXT往昔 2 years ago
parent
commit
93eb7f68e8
1 changed files with 62 additions and 1 deletions
  1. 62 1
      add_css.js

+ 62 - 1
add_css.js

@@ -1 +1,62 @@
- 12e
+ $('#ifame').css({
+        backgroundImage:'url(https://www.gitinn.com/pan-chinese/_blogs/raw/master/img/'+parseInt(Math.random()*11+1)+'.png)',
+    })
+ 
+ 
+ 
+    $('input[placeholder="请输入内容"]').attr('id','search').attr('autocomplete','off');
+     setTimeout(function () {
+        $('#search').focus(function(){
+            $(this).attr('placeholder','')
+        }).blur(function () {
+            $(this).attr('placeholder','请输入内容')
+        });
+    },300)
+     
+     $('.Body_val>h1').text('').text('欢迎来到Hopeの我的blog');
+ 
+ $('head').after(`
+    <style>
+
+
+    body{
+    overflow: hidden;
+    }
+
+ #search::-webkit-input-placeholder{
+    color: #999;
+    }
+
+
+     #ifame{
+        position: absolute;
+        min-width: 1200px;
+        width: 100%;
+        height: 100%;
+        background-color: transparent;
+        background-size: cover;
+        background-position: center center;
+        background-repeat: no-repeat;
+        overflow-y:scroll;
+        overflow-x:hidden;
+}
+
+
+#ifame::-webkit-scrollbar{
+      width: 5px;
+      height: 8px;
+      }
+     #ifame::-webkit-scrollbar-button{
+      width: 0px;
+      height: 0px;
+      }
+      #ifame::-webkit-scrollbar-thumb{
+
+      width: 5px;
+      height: 8px;
+background-color: rgb(53, 185, 149);
+      }
+
+    </style>
+    `)
+