{"size": 1440, "ext": "js", "max_stars_repo_path": "public/pengguna/html/assets/js/jquery.TDPageEvents.min.js", "max_stars_repo_name": "marvellhasea/prognet", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/pengguna/html/assets/js/jquery.TDPageEvents.min.js", "max_issues_repo_name": "marvellhasea/prognet", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/pengguna/html/assets/js/jquery.TDPageEvents.min.js", "max_forks_repo_name": "marvellhasea/prognet", "max_forks_repo_forks_event_min_datetime": "2021-03-18T12:39:50.000Z", "max_forks_repo_forks_event_max_datetime": "2021-03-18T12:39:50.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 205.7142857143, "max_line_length": 1274, "alphanum_fraction": 0.7152777778}
/**
 * ThemeDron page events plugin
 * author ThemeDron http://themedron.com
 * GitHub: https://github.com/ThemeDron/PageEvents
 * page events plugin vers. 0.0.1
 */
$.fn.TDPageEvents=function(e){function t(){var e=$(window);this.result={pos:e.scrollTop(),scroll:!1,height:e.outerHeight(),width:e.outerWidth(),resize:!1},e.on("load",$.proxy(function(){this.createEvent()},this)),this.scrollData(),this.resizeData()}t.prototype.resizeData=function(){var e=$(window);e.on("resize",$.proxy(function(){var i=($(this),e.outerHeight()),r=e.outerWidth();clearTimeout($.data(this,"scroll")),$.data(this,"scroll",setTimeout(function(){this.createEvent("resize",{height:i,width:r,resize:!1})}.bind(this),500)),this.createEvent("resize",{height:i,width:r,resize:!0})},this))},t.prototype.scrollData=function(){var e=$(window);e.on("scroll",$.proxy(function(){var i=($(this),e.scrollTop());clearTimeout($.data(this,"scroll")),$.data(this,"scroll",setTimeout(function(){this.createEvent("scroll",{pos:i,scroll:!1})}.bind(this),150)),this.createEvent("scroll",{pos:i,scroll:!0})},this))},t.prototype.createEvent=function(e,t){$(window).trigger({type:"pageEvent",pos:"scroll"==e?t.pos:this.result.pos,scroll:"scroll"==e?t.scroll:this.result.scroll,height:"resize"==e?t.height:this.result.height,width:"resize"==e?t.width:this.result.width,resize:"resize"==e?t.resize:this.result.resize})},this.each(function(){$.data(this,"TDPageEvents",new t(this,e))})};