mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 12:48:14 -05:00
Update README.md
This commit is contained in:
parent
5ed3d4fccc
commit
625bf2d1d0
25
README.md
25
README.md
@ -40,26 +40,29 @@
|
||||
}
|
||||
</style>
|
||||
```
|
||||
- 默认主题修改LOGO、移除版权示例(来自 mehui@hostloc 初版运用了XSS,有一点不足就是可以直接使用 pure JavaScript 实现用了 jQuery,欢迎PR)
|
||||
- 默认主题修改LOGO、移除版权示例(来自 @iLay1678 初版运用了XSS,有一点不足就是可以直接使用 pure JavaScript 实现用了 jQuery,欢迎PR)
|
||||
|
||||
```
|
||||
<style>
|
||||
<style>
|
||||
.right.menu>a{
|
||||
visibility: hidden;
|
||||
visibility: hidden;
|
||||
}
|
||||
.footer .is-size-7{
|
||||
visibility: hidden;
|
||||
visibility: hidden;
|
||||
}
|
||||
.item img{
|
||||
visibility: hidden;
|
||||
visibility: hidden;
|
||||
}
|
||||
</style>
|
||||
<script src="https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.min.js"></script>
|
||||
<script>$(function(){
|
||||
$("div.is-size-7").html("Powered by 你的名字").css("visibility","visible");
|
||||
$(".item img").attr('src','你的方形logo').css("visibility","visible");
|
||||
$("[rel='shortcut icon']").attr('href','你的方形logo');
|
||||
});
|
||||
<script>
|
||||
window.onload = function(){
|
||||
var avatar=document.querySelector(".item img")
|
||||
var footer=document.querySelector("div.is-size-7")
|
||||
footer.innerHTML="Powered by 你的名字"
|
||||
footer.style.visibility="visible"
|
||||
avatar.src="你的方形logo地址"
|
||||
avatar.style.visibility="visible"
|
||||
}
|
||||
</script>
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user