添加到后台自定义css
body img { -webkit-user-drag: none; }
添加到后台自定义css
img{-webkit-animation:ani 2s linear infinite;}@keyframes ani{0%{box-shadow:0 0 0px #00BCD4;}25%{box-shadow:0 0 10px #00BCD4;}50%{box-shadow:0 0 20px #00BCD4;}75%{box-shadow:0 0 10px #00BCD4;}100%{box-shadow:0 0 0px #00BCD4;}}
放到前面
<script>
function checkDebugger(){var d=new Date();debugger;var dur=Date.now()-d;if(dur<5){return false}else{return true}}function breakDebugger(){if(checkDebugger()){breakDebugger()}};breakDebugger();
</script>
第一种:
<link href="https://cdn.bootcdn.net/ajax/libs/element-ui/2.9.2/theme-chalk/index.css" rel="stylesheet" />
<script src="./vue.js"></script>
<script src="./element.js"></script>
<script>
document.addEventListener("copy",function(e){
new Vue({
data:function(){
this.$notify({
title:"复制成功",
message:"若要转载请务必保留原文链接!",
type:"success"
});
return{visible:false}
}
})
})
</script>
第二种:
<link href="https://cdn.bootcdn.net/ajax/libs/element-ui/2.9.2/theme-chalk/index.css" rel="stylesheet" />
<script src="./vue.js"></script>
<script src="./element.js"></script>
<script src="./sweet.js"></script>
<script>
document.body.oncopy = function () {
Swal.fire({
allowOutsideClick: false,
type: "success",
title: "复制成功,如转载请注明出处!",
showConfirmButton: false,
timer: 1500
})
};
</script>
需要的js:
<script type="text/javascript" src="./commentTyping.js"></script>
<style>
#top-grrk{
background:url(https://external-30160.picsz.qpic.cn/e94ff0137dfb6cc51925d4ccf61d2541);
height:2px;
position:fixed;
width:100%;
Z-index:10000;
}
</style>
<div id="top-grrk"></div>
我的博客即将同步至腾讯云+社区,邀请大家一同入驻:https://cloud.tencent.com/developer/support-plan?invite_code=271t9rxyqixww