-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmore
35 lines (29 loc) · 789 Bytes
/
more
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
window.log = function(){
log.history = log.history||[];
log.history.push(arguments);
if(this.console){
console.log(Array.prototype.slice.call(arguments));
}
};
function ts(){
return ' | t:' + new Date().getTime();
}
function pcSafariDetected() {
var isS = (navigator.userAgent.indexOf("Safari") != -1) ? true : false;
var isW = (navigator.userAgent.indexOf("Windows") != -1) ? true : false;
var de = false;
if (isS && isW) {
de = true;
}
return de;
}
function chk_scroll(e) {
var elem = $(e.currentTarget);
if (elem[0].scrollHeight - elem.scrollTop() == elem.outerHeight()) {
console.log("bottom");
}
//call with $('div').bind('scroll',chk_scroll);
}
function getStyle(objid) {
return window.getComputedStyle(document.getElementById("myobj");
}