You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cloudnote_web/plugins/global.js

17 lines
377 B

import Vue from 'vue'
Vue.prototype.GLOBAL ={
//用户cookie
4 years ago
user_key:'user',
// 检查元素可见
visible_in_container:function(p,e) {
var z = p.getBoundingClientRect();
var r = e.getBoundingClientRect();
// Check style visiblilty and off-limits
return !(r.top > z.bottom || r.bottom < z.top ||
r.left > z.right || r.right < z.left);
4 years ago
}
}