This file contains hidden or 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
<?php | |
namespace Utils; | |
/** | |
* Class RandomStringGenerator | |
* @package Utils | |
* | |
* Solution taken from here: | |
* http://stackoverflow.com/a/13733588/1056679 |
This file contains hidden or 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
/** | |
* This function check an element is scrolled into view area on screen. | |
* @param elem; use CSS Selector syntax to specific an element. | |
* @return boolean; | |
* @author Scott Dowding | |
* @refer http://stackoverflow.com/questions/487073 | |
*/ | |
function isScrolledIntoView(elem) | |
{ | |
var $elem = $(elem); |
NewerOlder