js/blebHint.js
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
构造函数,来初始化相应的属性
*/
function PopBubble(caption,content,see){
this.content = content;
this.caption= caption;
this.see= see;
this.width= 220;
this.height = 120;
this.timeout= 150;
this.speed = 15;
this.step = 2;
this.right = screen.width -1;
this.bottom = screen.height;
this.left = this.right - this.width;
this.top= this.bottom - this.height;
this.timer = 0;
this.pause = false;
this.close = false;
this.autoHide = true;
}
/*
退宿弹出窗口的方法
*/
PopBubble.prototype.hide = function(){
var offset = this.height>this.bottom-this.top?this.height:this.bottom-this.top;
var obj = this;
if(this.timer>0){
window.clearInterval(obj.timer);
}
var fun = function(){
if(obj.pause==false||obj.close){
var x = obj.left;
var y = 0;
var width = obj.width;
var height = 0;
if(obj.offset>0){
height = obj.offset;
}
y = obj.bottom - height;
if(y>=obj.bottom){
window.clearInterval(obj.timer);
obj.Pop.hide();
} else {
obj.offset = obj.offset - obj.step;
}
obj.Pop.show(x,y,width,height);
}
}
this.timer = window.setInterval(fun,this.speed)
后面还有 95 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。