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
# Most part of this file is created by https://www.gitignore.io | |
### Node ### | |
# Logs | |
logs | |
*.log | |
# Runtime data | |
pids | |
*.pid |
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
;(function(e) { | |
e.setAttribute("src", location.protocol + "//" + location.hostname + ":2014/target/target-script-min.js#dev"); | |
document.getElementsByTagName("body")[0].appendChild(e); | |
})(document.createElement("script")); |
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
String.prototype.strLen = function() { | |
var len = 0, | |
offset; | |
for (var i = 0, tmp = this.length; i < tmp; i++) { | |
offset = (this.isCHS(i)) ? 2 : 1; | |
len += offset; | |
} | |
return len; | |
}; |
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
/** | |
* Able to monitor tab visibility, do something while current tab is active / hidden. | |
* Works also on mobile browsers | |
* @return {[type]} [description] | |
*/ | |
var TabControl = { | |
tabVisibilityChanged: function () { | |
if (this.tabIsHidden()) { | |
// tab is hidden | |
} else { |