python 去除水印_python 利用opencv去除图片水印
$(function () {changeIndReadCommentStyle();//返回顶部$('#back-to-top').click(function (e) {$('html,body').animate({scrollTop: 0}, 500)});// 修改首页 阅读、评论样式function changeIndReadCommentStyle() {var count = $(
$(function () {
changeIndReadCommentStyle();
//返回顶部
$('#back-to-top').click(function (e) {
$('html,body').animate({scrollTop: 0}, 500)
});
// 修改首页 阅读、评论样式
function changeIndReadCommentStyle() {
var count = $('.day').length;
var pattern = new RegExp("阅读(.*?)
for (var i = 0; i < count; i++) {
var html = "";
var txt = pattern.exec($('.postDesc').eq(i).html());
html += " " + txt;
$('.postDesc').eq(i).html(html);
//修改文章简介中的摘要
var content = $(".c_b_p_desc").eq(i).html();
if (content) {
var contentNoZhaiYao = content.slice(3);
$('.c_b_p_desc').eq(i).html(contentNoZhaiYao);
}
}
}
//页面滚动
$(document).scroll(function () {
var scroH = $(document).scrollTop(); //滚动高度
var viewH = $(window).height(); //可见高度
var contentH = $(document).height(); //内容高度
if (scroH > 100) { //距离顶部大于100px时
$("#back-to-top").css({display: "block"});
$("#navigator").css({backgroundColor: 'rgba(85,136,153,.9)', boxShadow: '0 1px 5px #589'});
} else {
$("#back-to-top").css({display: "none"});
$("#navigator").css({backgroundColor: 'rgba(85,136,153,1)', boxShadow: 'none'});
}
if (contentH - (scroH + viewH) <= 100) { //距离底部高度小于100px
}
if (contentH == (scroH + viewH)) { //滚动条滑到底部啦
}
});
});
//滑稽~
$('#ad_t2').remove();
$('#under_post_news').remove();
$('#blog_nav_newpost').remove();
$('#under_post_kb').remove();
$('.c_ad_block').remove();
$('#blog-calendar').remove();
$('#sidebar_search').remove();
$('title').html($('title').html())
window.onload = function () {
//反对func改为关注func
$(".buryit").attr("onclick", "follow('c2d997b7-371a-4689-9bcd-08d581a6bd57');")
$("#bury_count").text($("#profile_block a")[2].text);
//修改 标签中的数量
var tagsCount = $('#sidebar_toptags ul li').length
for (var i = 0; i < tagsCount; i++) {
var html = $('#sidebar_toptags ul li').eq(i).html()
html = html.replace(/\(\d+\)/ig, '')
$('#sidebar_toptags ul li').eq(i).html(html);
}
//修改 分类中的数量
var categoryCount = $('#sidebar_postcategory ul li').length
for (var i = 0; i < categoryCount; i++) {
var html = $('#sidebar_postcategory ul li').eq(i).html()
html = html.replace(/\(\d+\)/ig, '')
$('#sidebar_postcategory ul li').eq(i).html(html);
}
}
//自定义 定时器[当元素加载完成是执行回调函数]
function customTimer(inpId, fn) {
if ($(inpId).length) {
fn();
} else {
var intervalId = setInterval(function () {
if ($(inpId).length) { //如果存在了
clearInterval(intervalId); // 则关闭定时器
customTimer(inpId, fn); //执行自身
}
}, 100);
}
}
//页面加载完成时执行
$(function () {
customTimer("#div_digg", function () {
var div_html = "
"" +
"" +
"" +
"
$("#div_digg").append(div_html);
});
})
$(function () {
$("#navList").append("
段子");})
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)