Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修改水印的透明度的值 #2765

Merged
merged 15 commits into from
Aug 16, 2024
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
Loading