public/homepage/js/script.js
/**
	 * initOnView
	 * @description  calls a function when element has been scrolled into the view
	 */
initOnView
@description  calls a function when element has been scrolled into the view
initOnView @description calls a function when element has been scrolled into the view
function lazyInit(element, func) {
		var $win = jQuery(window);
		$win.on('load scroll', function () {
			if ((!element.hasClass('lazy-loaded') && (isScrolledIntoView(element)))) {
				func.call(element);
				element.addClass('lazy-loaded');
			}
		});
	}
function lazyInit ( element , func ) { var $win = jQuery ( window ) ; $win . on ( 'load scroll' , function ( ) { if ( ( ! element . hasClass ( 'lazy-loaded' ) && ( isScrolledIntoView ( element ) ) ) ) { func . call ( element ) ; element . addClass ( 'lazy-loaded' ) ; } } ) ; }
initOnView
 @description  calls a function when element has been scrolled into the view
initOnView @description calls a function when element has been scrolled into the view