Created
October 13, 2017 17:24
-
-
Save nithindavid/faca728593b8cb48ae4a7aeacb6cc0f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var snapeData = [new Date()]; | |
var qu = $; | |
var _time = null; | |
var snape = setInterval(function() { | |
_time = qu('.pane-chat-header .chat-body .chat-main+div span'); | |
if ( !!_time && snapeData[snapeData.length - 1].status !== _time.title) { | |
snapeData.push({ | |
status: _time.title, | |
time: new Date() | |
}); | |
console.log(_time.title, " ****** ", new Date()); | |
} | |
},5000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment