{"size": 1032, "ext": "js", "max_stars_repo_path": "build/es5-amd/node_modules/@lrnwebcomponents/page-scroll-position/page-scroll-position.js", "max_stars_repo_name": "EberlyODL/haxcms-courses", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "build/es5-amd/node_modules/@lrnwebcomponents/page-scroll-position/page-scroll-position.js", "max_issues_repo_name": "EberlyODL/haxcms-courses", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "build/es5-amd/node_modules/@lrnwebcomponents/page-scroll-position/page-scroll-position.js", "max_forks_repo_name": "EberlyODL/haxcms-courses", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 1032.0, "max_line_length": 1032, "alphanum_fraction": 0.855620155}
var PageScrollPosition=function(_HTMLElement){"use strict";babelHelpers.inherits(PageScrollPosition,_HTMLElement);function PageScrollPosition(){babelHelpers.classCallCheck(this,PageScrollPosition);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(PageScrollPosition).apply(this,arguments))}babelHelpers.createClass(PageScrollPosition,[{key:"attachedCallback",value:function attachedCallback(){var _this=this;this.value=0;var element=document,valueChangedEvent=new CustomEvent("value-changed",{detail:{value:0}});this.dispatchEvent(valueChangedEvent);element.addEventListener("scroll",function(){var a=document.documentElement.scrollTop,b=document.documentElement.scrollHeight-document.documentElement.clientHeight;_this.value=100*(a/b);valueChangedEvent=new CustomEvent("value-changed",{detail:{value:_this.value}});_this.dispatchEvent(valueChangedEvent)})}}]);return PageScrollPosition}(babelHelpers.wrapNativeSuper(HTMLElement));window.customElements.define("page-scroll-position",PageScrollPosition);