Skip to content

Commit

Permalink
修改水印的透明度的值 (#2765)
Browse files Browse the repository at this point in the history
* 添加favicon图片

* firset

* 修改

* 撤销

* 修改水印的透明度

---------

Co-authored-by: 王飞 <fei.wang@xgo.one>
  • Loading branch information
feiazifeiazi and 王飞 authored Aug 16, 2024
1 parent 033d3e7 commit e8c8869
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -413,9 +413,9 @@ <h4 class="modal-title" id="myModalLabel2">扫码绑定</h4>
var user = '{{ user.display }}{{ user.date_joined|date:"Hdi" }}';
var watermark_enabled = '{{ watermark_enabled }}';
if(watermark_enabled == 'True'){
watermark.init({ watermark_txt: user + " " + now })
watermark.init({ watermark_txt: user + " " + now, watermark_alpha: 0.05})
window.onscroll = function(){
watermark.load({ watermark_txt: user + " " + now })
watermark.load({ watermark_txt: user + " " + now, watermark_alpha: 0.05})
}
};
</script>
Expand Down

0 comments on commit e8c8869

Please sign in to comment.