Update README.md

This commit is contained in:
我若为王 2020-12-30 13:03:21 +08:00 committed by GitHub
parent 5ed3d4fccc
commit 625bf2d1d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@
} }
</style> </style>
``` ```
- 默认主题修改LOGO、移除版权示例来自 mehui@hostloc 初版运用了XSS有一点不足就是可以直接使用 pure JavaScript 实现用了 jQuery欢迎PR - 默认主题修改LOGO、移除版权示例来自 @iLay1678 初版运用了XSS有一点不足就是可以直接使用 pure JavaScript 实现用了 jQuery欢迎PR
``` ```
<style> <style>
@ -54,12 +54,15 @@
visibility: hidden; visibility: hidden;
} }
</style> </style>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.min.js"></script> <script>
<script>$(function(){ window.onload = function(){
$("div.is-size-7").html("Powered by 你的名字").css("visibility","visible"); var avatar=document.querySelector(".item img")
$(".item img").attr('src','你的方形logo').css("visibility","visible"); var footer=document.querySelector("div.is-size-7")
$("[rel='shortcut icon']").attr('href','你的方形logo'); footer.innerHTML="Powered by 你的名字"
}); footer.style.visibility="visible"
avatar.src="你的方形logo地址"
avatar.style.visibility="visible"
}
</script> </script>
``` ```