{"action":"created","comment":{"url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/pulls/comments/176920702","pull_request_review_id":106711130,"id":176920702,"diff_hunk":"@@ -1,96 +1,108 @@\n // JS Goes here - ES6 supported\n-import 'intersection-observer';\n+import \"intersection-observer\";\n \n (() => {\n-    console.log('I hope you like the 🚀 loading of  RAYs{FRONTEND}BYTES! If you have any trouble with it? Please hit me on https://twitter.com/rsschouwenaar');\n-\n-//Add this below content to your HTML page, or add the js file to your page at the very top to register sercie worker\n-    if('serviceWorker' in navigator) {\n-        if (navigator.serviceWorker.controller) {\n+  console.log(\n+    \"I hope you like the 🚀 loading of  RAYs{FRONTEND}BYTES! If you have any trouble with it? Please hit me on https://twitter.com/rsschouwenaar\"\n+  );\n+  testVarForEsLint = \"this should cause an error!\";\n+  //Add this below content to your HTML page, or add the js file to your page at the very top to register sercie worker\n+  if (\"serviceWorker\" in navigator) {\n+    if (navigator.serviceWorker.controller) {\n+      console.log(\n+        \"[PWA Builder] active service worker found, no need to register\"\n+      );\n+    } else {\n+      //Register the ServiceWorker\n+      navigator.serviceWorker\n+        .register(\"sw-custom.js\", {\n+          scope: \"./\"\n+        })\n+        .then(function(reg) {\n+          console.log(\n+            \"Service worker has been registered for scope:\" + reg.scope\n+          );\n+        });\n+    }\n+  }\n \n-                console.log('[PWA Builder] active service worker found, no need to register')\n+  const colorSwitch = document.querySelector(\"#colorSwitch\");\n+  const mainContent = document.querySelector(\".container\");\n+  const root = document.querySelector(\":root\");\n \n-        } else {\n+  colorSwitch.addEventListener(\"click\", event => {\n+    console.log(\"event: \", event.srcElement.checked);\n+    mainContent.classList.toggle(\"dark--mode\");\n+  });\n \n-            //Register the ServiceWorker\n-            navigator.serviceWorker.register('sw-custom.js', {\n-                scope: './'\n-            }).then(function(reg) {\n-                console.log('Service worker has been registered for scope:'+ reg.scope);\n-            });\n+  window.onload = function() {\n+    const intersectionObserverOptions = {\n+      root: document.querySelector(\"body\"),\n+      rootMargin: \"0px\",\n+      threshold: 1.0\n+    };\n+    newVar = true;\n+    const io = new IntersectionObserver(entries => {\n+      // console.log('entries: ', entries);\n+      entries.forEach(entry => {\n+        if (entry.intersectionRatio > 0) {\n+          //   console.log('in the view: ', entry);\n+          progressiveImageLoading(entry.target);\n+          io.unobserve(entry.target);\n         }\n-    }\n-\n-    const colorSwitch = document.querySelector('#colorSwitch');\n-    const mainContent = document.querySelector('.container');\n-    const root = document.querySelector(':root');\n-\n-    colorSwitch.addEventListener('click', event => {\n-        console.log('event: ', event.srcElement.checked);\n-        mainContent.classList.toggle('dark--mode');\n+      });\n     });\n \n-    window.onload = function() {\n+    [...document.querySelectorAll(\".progressive-loader\")].map(","path":"src/js/app.js","position":80,"original_position":80,"commit_id":"ae772399dc656c6d9307a5fbf7089ca20c360834","original_commit_id":"ae772399dc656c6d9307a5fbf7089ca20c360834","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"'spread/rest operator' is only available in ES6 (use 'esversion: 6').","created_at":"2018-03-24T21:32:21Z","updated_at":"2018-03-24T21:32:22Z","html_url":"https://github.com/raymonschouwenaar/raymonschouwenaar-blog/pull/7#discussion_r176920702","pull_request_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/pulls/7","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/pulls/comments/176920702"},"html":{"href":"https://github.com/raymonschouwenaar/raymonschouwenaar-blog/pull/7#discussion_r176920702"},"pull_request":{"href":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/pulls/7","id":177259381,"html_url":"https://github.com/raymonschouwenaar/raymonschouwenaar-blog/pull/7","diff_url":"https://github.com/raymonschouwenaar/raymonschouwenaar-blog/pull/7.diff","patch_url":"https://github.com/raymonschouwenaar/raymonschouwenaar-blog/pull/7.patch","issue_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/issues/7","number":7,"state":"open","locked":false,"title":"Updated eslintrc file and latest version of eslint installed","user":{"login":"raymonschouwenaar","id":6241164,"avatar_url":"https://avatars2.githubusercontent.com/u/6241164?v=4","gravatar_id":"","url":"https://api.github.com/users/raymonschouwenaar","html_url":"https://github.com/raymonschouwenaar","followers_url":"https://api.github.com/users/raymonschouwenaar/followers","following_url":"https://api.github.com/users/raymonschouwenaar/following{/other_user}","gists_url":"https://api.github.com/users/raymonschouwenaar/gists{/gist_id}","starred_url":"https://api.github.com/users/raymonschouwenaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymonschouwenaar/subscriptions","organizations_url":"https://api.github.com/users/raymonschouwenaar/orgs","repos_url":"https://api.github.com/users/raymonschouwenaar/repos","events_url":"https://api.github.com/users/raymonschouwenaar/events{/privacy}","received_events_url":"https://api.github.com/users/raymonschouwenaar/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-24T21:18:50Z","updated_at":"2018-03-24T21:32:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a77afce63db61e5ea70c55b5d89c0670baa644f2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/pulls/7/commits","review_comments_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/pulls/7/comments","review_comment_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/issues/7/comments","statuses_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/statuses/ae772399dc656c6d9307a5fbf7089ca20c360834","head":{"label":"raymonschouwenaar:develop","ref":"develop","sha":"ae772399dc656c6d9307a5fbf7089ca20c360834","user":{"login":"raymonschouwenaar","id":6241164,"avatar_url":"https://avatars2.githubusercontent.com/u/6241164?v=4","gravatar_id":"","url":"https://api.github.com/users/raymonschouwenaar","html_url":"https://github.com/raymonschouwenaar","followers_url":"https://api.github.com/users/raymonschouwenaar/followers","following_url":"https://api.github.com/users/raymonschouwenaar/following{/other_user}","gists_url":"https://api.github.com/users/raymonschouwenaar/gists{/gist_id}","starred_url":"https://api.github.com/users/raymonschouwenaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymonschouwenaar/subscriptions","organizations_url":"https://api.github.com/users/raymonschouwenaar/orgs","repos_url":"https://api.github.com/users/raymonschouwenaar/repos","events_url":"https://api.github.com/users/raymonschouwenaar/events{/privacy}","received_events_url":"https://api.github.com/users/raymonschouwenaar/received_events","type":"User","site_admin":false},"repo":{"id":114989629,"name":"raymonschouwenaar-blog","full_name":"raymonschouwenaar/raymonschouwenaar-blog","owner":{"login":"raymonschouwenaar","id":6241164,"avatar_url":"https://avatars2.githubusercontent.com/u/6241164?v=4","gravatar_id":"","url":"https://api.github.com/users/raymonschouwenaar","html_url":"https://github.com/raymonschouwenaar","followers_url":"https://api.github.com/users/raymonschouwenaar/followers","following_url":"https://api.github.com/users/raymonschouwenaar/following{/other_user}","gists_url":"https://api.github.com/users/raymonschouwenaar/gists{/gist_id}","starred_url":"https://api.github.com/users/raymonschouwenaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymonschouwenaar/subscriptions","organizations_url":"https://api.github.com/users/raymonschouwenaar/orgs","repos_url":"https://api.github.com/users/raymonschouwenaar/repos","events_url":"https://api.github.com/users/raymonschouwenaar/events{/privacy}","received_events_url":"https://api.github.com/users/raymonschouwenaar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/raymonschouwenaar/raymonschouwenaar-blog","description":"RaymonSchouwenaar.nl blog","fork":false,"url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog","forks_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/forks","keys_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/teams","hooks_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/hooks","issue_events_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/issues/events{/number}","events_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/events","assignees_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/assignees{/user}","branches_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/branches{/branch}","tags_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/tags","blobs_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/git/refs{/sha}","trees_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/statuses/{sha}","languages_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/languages","stargazers_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/stargazers","contributors_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/contributors","subscribers_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/subscribers","subscription_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/subscription","commits_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/commits{/sha}","git_commits_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/git/commits{/sha}","comments_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/comments{/number}","issue_comment_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/issues/comments{/number}","contents_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/contents/{+path}","compare_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/merges","archive_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/downloads","issues_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/issues{/number}","pulls_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/pulls{/number}","milestones_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/milestones{/number}","notifications_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/labels{/name}","releases_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/releases{/id}","deployments_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/deployments","created_at":"2017-12-21T09:45:25Z","updated_at":"2018-03-24T21:18:11Z","pushed_at":"2018-03-24T21:32:12Z","git_url":"git://github.com/raymonschouwenaar/raymonschouwenaar-blog.git","ssh_url":"git@github.com:raymonschouwenaar/raymonschouwenaar-blog.git","clone_url":"https://github.com/raymonschouwenaar/raymonschouwenaar-blog.git","svn_url":"https://github.com/raymonschouwenaar/raymonschouwenaar-blog","homepage":"http://raymonschouwenaar.nl/","size":137564,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"raymonschouwenaar:master","ref":"master","sha":"c7544dc94ce339a1ec866bbd1a20ef6f8991a426","user":{"login":"raymonschouwenaar","id":6241164,"avatar_url":"https://avatars2.githubusercontent.com/u/6241164?v=4","gravatar_id":"","url":"https://api.github.com/users/raymonschouwenaar","html_url":"https://github.com/raymonschouwenaar","followers_url":"https://api.github.com/users/raymonschouwenaar/followers","following_url":"https://api.github.com/users/raymonschouwenaar/following{/other_user}","gists_url":"https://api.github.com/users/raymonschouwenaar/gists{/gist_id}","starred_url":"https://api.github.com/users/raymonschouwenaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymonschouwenaar/subscriptions","organizations_url":"https://api.github.com/users/raymonschouwenaar/orgs","repos_url":"https://api.github.com/users/raymonschouwenaar/repos","events_url":"https://api.github.com/users/raymonschouwenaar/events{/privacy}","received_events_url":"https://api.github.com/users/raymonschouwenaar/received_events","type":"User","site_admin":false},"repo":{"id":114989629,"name":"raymonschouwenaar-blog","full_name":"raymonschouwenaar/raymonschouwenaar-blog","owner":{"login":"raymonschouwenaar","id":6241164,"avatar_url":"https://avatars2.githubusercontent.com/u/6241164?v=4","gravatar_id":"","url":"https://api.github.com/users/raymonschouwenaar","html_url":"https://github.com/raymonschouwenaar","followers_url":"https://api.github.com/users/raymonschouwenaar/followers","following_url":"https://api.github.com/users/raymonschouwenaar/following{/other_user}","gists_url":"https://api.github.com/users/raymonschouwenaar/gists{/gist_id}","starred_url":"https://api.github.com/users/raymonschouwenaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymonschouwenaar/subscriptions","organizations_url":"https://api.github.com/users/raymonschouwenaar/orgs","repos_url":"https://api.github.com/users/raymonschouwenaar/repos","events_url":"https://api.github.com/users/raymonschouwenaar/events{/privacy}","received_events_url":"https://api.github.com/users/raymonschouwenaar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/raymonschouwenaar/raymonschouwenaar-blog","description":"RaymonSchouwenaar.nl blog","fork":false,"url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog","forks_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/forks","keys_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/teams","hooks_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/hooks","issue_events_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/issues/events{/number}","events_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/events","assignees_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/assignees{/user}","branches_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/branches{/branch}","tags_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/tags","blobs_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/git/refs{/sha}","trees_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/statuses/{sha}","languages_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/languages","stargazers_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/stargazers","contributors_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/contributors","subscribers_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/subscribers","subscription_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/subscription","commits_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/commits{/sha}","git_commits_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/git/commits{/sha}","comments_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/comments{/number}","issue_comment_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/issues/comments{/number}","contents_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/contents/{+path}","compare_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/merges","archive_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/downloads","issues_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/issues{/number}","pulls_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/pulls{/number}","milestones_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/milestones{/number}","notifications_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/labels{/name}","releases_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/releases{/id}","deployments_url":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/deployments","created_at":"2017-12-21T09:45:25Z","updated_at":"2018-03-24T21:18:11Z","pushed_at":"2018-03-24T21:32:12Z","git_url":"git://github.com/raymonschouwenaar/raymonschouwenaar-blog.git","ssh_url":"git@github.com:raymonschouwenaar/raymonschouwenaar-blog.git","clone_url":"https://github.com/raymonschouwenaar/raymonschouwenaar-blog.git","svn_url":"https://github.com/raymonschouwenaar/raymonschouwenaar-blog","homepage":"http://raymonschouwenaar.nl/","size":137564,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/pulls/7"},"html":{"href":"https://github.com/raymonschouwenaar/raymonschouwenaar-blog/pull/7"},"issue":{"href":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/issues/7"},"comments":{"href":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/raymonschouwenaar/raymonschouwenaar-blog/statuses/ae772399dc656c6d9307a5fbf7089ca20c360834"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}