{"action":"created","comment":{"url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/pulls/comments/82785097","pull_request_review_id":3667466,"id":82785097,"diff_hunk":"@@ -0,0 +1,193 @@\n+/*!\n+ * vimeo.ga.js | v0.6\n+ * Based on modifications by LukasBeaton (https://github.com/LukasBeaton/vimeo.ga.js)\n+ * Copyright (c) 2015 Sander Heilbron (http://www.sanderheilbron.nl)\n+ * MIT licensed\n+ */\n+\n+\n+var vimeoGAJS = (window.vimeoGAJS) ? window.vimeoGAJS : {};\n+\n+(function($) {\n+  vimeoGAJS = {\n+    iframes : [],\n+    gaTracker : undefined,\n+    eventMarker : {},\n+\n+    init: function () {\n+      vimeoGAJS.iframes = $('iframe');\n+\n+      $.each(vimeoGAJS.iframes, function (index, iframe) {\n+        var iframeId = $(iframe).attr('id');\n+\n+        vimeoGAJS.eventMarker[iframeId] = {\n+          'progress25' : false,\n+          'progress50' : false,\n+          'progress75' : false,\n+          'videoPlayed' : false,\n+          'videoPaused' : false,\n+          'videoResumed' : false,\n+          'videoSeeking' : false,\n+          'videoCompleted' : false,\n+          'timePercentComplete' : 0\n+        };\n+      });\n+\n+      // Check which version of Google Analytics is used\n+      vimeoGAJS.gaTracker = 'ua'; // Universal Analytics (universal.js)\n+\n+      // Listen for messages from the player\n+      if (window.addEventListener) {\n+        window.addEventListener('message', vimeoGAJS.onMessageReceived, false);\n+      } else {\n+        window.attachEvent('onmessage', vimeoGAJS.onMessageReceived, false);\n+      }\n+    },\n+\n+    // Handle messages received from the player\n+    onMessageReceived: function(e) {\n+      if (e.origin.replace('https:', 'http:') !== \"http://player.vimeo.com\" || typeof vimeoGAJS.gaTracker === 'undefined') {\n+        //console.warn('Tracker is missing!');\n+        return;\n+      }\n+\n+      var data = JSON.parse(e.data),\n+          iframeEl = $(\"#\"+data.player_id),\n+          iframeId = iframeEl.attr(\"id\");\n+\n+      switch (data.event) {\n+      case 'ready':\n+        vimeoGAJS.onReady();\n+        break;\n+\n+      case 'playProgress':\n+        vimeoGAJS.onPlayProgress(data.data, iframeEl);\n+        break;\n+\n+      case 'seek':\n+        if (iframeEl.data('seek') && !vimeoGAJS.eventMarker[iframeId].videoSeeking) {\n+          vimeoGAJS.sendEvent(iframeEl, 'Skipped video forward or backward');\n+          vimeoGAJS.eventMarker[iframeId].videoSeeking = true; // Avoid subsequent seek trackings\n+        }\n+        break;\n+\n+      case 'play':\n+        if (!vimeoGAJS.eventMarker[iframeId].videoPlayed) {\n+          vimeoGAJS.sendEvent(iframeEl, 'Started video');\n+          vimeoGAJS.eventMarker[iframeId].videoPlayed = true; // Avoid subsequent play trackings","path":"source/javascripts/vimeo.js","position":77,"original_position":77,"commit_id":"de3efd5860a5e011a2e034c5c3c5568c2858f735","original_commit_id":"de3efd5860a5e011a2e034c5c3c5568c2858f735","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","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":"Line is too long.","created_at":"2016-10-11T12:53:34Z","updated_at":"2016-10-11T12:53:34Z","html_url":"https://github.com/DefactoSoftware/LearningSpaces-Landing/pull/112#discussion_r82785097","pull_request_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/pulls/112","_links":{"self":{"href":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/pulls/comments/82785097"},"html":{"href":"https://github.com/DefactoSoftware/LearningSpaces-Landing/pull/112#discussion_r82785097"},"pull_request":{"href":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/pulls/112"}}},"pull_request":{"url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/pulls/112","id":88687300,"html_url":"https://github.com/DefactoSoftware/LearningSpaces-Landing/pull/112","diff_url":"https://github.com/DefactoSoftware/LearningSpaces-Landing/pull/112.diff","patch_url":"https://github.com/DefactoSoftware/LearningSpaces-Landing/pull/112.patch","issue_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/issues/112","number":112,"state":"open","locked":false,"title":"[READY] add tracking for vimeo videos","user":{"login":"RonaldDijkstra","id":16101007,"avatar_url":"https://avatars.githubusercontent.com/u/16101007?v=3","gravatar_id":"","url":"https://api.github.com/users/RonaldDijkstra","html_url":"https://github.com/RonaldDijkstra","followers_url":"https://api.github.com/users/RonaldDijkstra/followers","following_url":"https://api.github.com/users/RonaldDijkstra/following{/other_user}","gists_url":"https://api.github.com/users/RonaldDijkstra/gists{/gist_id}","starred_url":"https://api.github.com/users/RonaldDijkstra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RonaldDijkstra/subscriptions","organizations_url":"https://api.github.com/users/RonaldDijkstra/orgs","repos_url":"https://api.github.com/users/RonaldDijkstra/repos","events_url":"https://api.github.com/users/RonaldDijkstra/events{/privacy}","received_events_url":"https://api.github.com/users/RonaldDijkstra/received_events","type":"User","site_admin":false},"body":"Needs testing and maybe we need to seperate the home from the tour video. ","created_at":"2016-10-10T15:53:35Z","updated_at":"2016-10-11T12:53:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6ceed6655f33536d97ae7a1272b26df82420b7b2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/pulls/112/commits","review_comments_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/pulls/112/comments","review_comment_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/issues/112/comments","statuses_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/statuses/de3efd5860a5e011a2e034c5c3c5568c2858f735","head":{"label":"DefactoSoftware:ronald/add-vimeo-tracking","ref":"ronald/add-vimeo-tracking","sha":"de3efd5860a5e011a2e034c5c3c5568c2858f735","user":{"login":"DefactoSoftware","id":3899757,"avatar_url":"https://avatars.githubusercontent.com/u/3899757?v=3","gravatar_id":"","url":"https://api.github.com/users/DefactoSoftware","html_url":"https://github.com/DefactoSoftware","followers_url":"https://api.github.com/users/DefactoSoftware/followers","following_url":"https://api.github.com/users/DefactoSoftware/following{/other_user}","gists_url":"https://api.github.com/users/DefactoSoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/DefactoSoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DefactoSoftware/subscriptions","organizations_url":"https://api.github.com/users/DefactoSoftware/orgs","repos_url":"https://api.github.com/users/DefactoSoftware/repos","events_url":"https://api.github.com/users/DefactoSoftware/events{/privacy}","received_events_url":"https://api.github.com/users/DefactoSoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":29184131,"name":"LearningSpaces-Landing","full_name":"DefactoSoftware/LearningSpaces-Landing","owner":{"login":"DefactoSoftware","id":3899757,"avatar_url":"https://avatars.githubusercontent.com/u/3899757?v=3","gravatar_id":"","url":"https://api.github.com/users/DefactoSoftware","html_url":"https://github.com/DefactoSoftware","followers_url":"https://api.github.com/users/DefactoSoftware/followers","following_url":"https://api.github.com/users/DefactoSoftware/following{/other_user}","gists_url":"https://api.github.com/users/DefactoSoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/DefactoSoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DefactoSoftware/subscriptions","organizations_url":"https://api.github.com/users/DefactoSoftware/orgs","repos_url":"https://api.github.com/users/DefactoSoftware/repos","events_url":"https://api.github.com/users/DefactoSoftware/events{/privacy}","received_events_url":"https://api.github.com/users/DefactoSoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DefactoSoftware/LearningSpaces-Landing","description":"LearningSpaces Landingpage","fork":false,"url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing","forks_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/forks","keys_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/teams","hooks_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/hooks","issue_events_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/issues/events{/number}","events_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/events","assignees_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/assignees{/user}","branches_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/branches{/branch}","tags_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/tags","blobs_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/git/refs{/sha}","trees_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/statuses/{sha}","languages_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/languages","stargazers_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/stargazers","contributors_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/contributors","subscribers_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/subscribers","subscription_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/subscription","commits_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/commits{/sha}","git_commits_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/git/commits{/sha}","comments_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/comments{/number}","issue_comment_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/issues/comments{/number}","contents_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/contents/{+path}","compare_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/merges","archive_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/downloads","issues_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/issues{/number}","pulls_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/pulls{/number}","milestones_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/milestones{/number}","notifications_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/labels{/name}","releases_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/releases{/id}","deployments_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/deployments","created_at":"2015-01-13T10:08:22Z","updated_at":"2016-01-15T15:20:58Z","pushed_at":"2016-10-11T12:53:24Z","git_url":"git://github.com/DefactoSoftware/LearningSpaces-Landing.git","ssh_url":"git@github.com:DefactoSoftware/LearningSpaces-Landing.git","clone_url":"https://github.com/DefactoSoftware/LearningSpaces-Landing.git","svn_url":"https://github.com/DefactoSoftware/LearningSpaces-Landing","homepage":"http://www.learningspaces.io/","size":9232,"stargazers_count":5,"watchers_count":5,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":11,"forks":2,"open_issues":11,"watchers":5,"default_branch":"master"}},"base":{"label":"DefactoSoftware:master","ref":"master","sha":"e8d0d05c494f8968a51f7c7c5128f1ca531c04ba","user":{"login":"DefactoSoftware","id":3899757,"avatar_url":"https://avatars.githubusercontent.com/u/3899757?v=3","gravatar_id":"","url":"https://api.github.com/users/DefactoSoftware","html_url":"https://github.com/DefactoSoftware","followers_url":"https://api.github.com/users/DefactoSoftware/followers","following_url":"https://api.github.com/users/DefactoSoftware/following{/other_user}","gists_url":"https://api.github.com/users/DefactoSoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/DefactoSoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DefactoSoftware/subscriptions","organizations_url":"https://api.github.com/users/DefactoSoftware/orgs","repos_url":"https://api.github.com/users/DefactoSoftware/repos","events_url":"https://api.github.com/users/DefactoSoftware/events{/privacy}","received_events_url":"https://api.github.com/users/DefactoSoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":29184131,"name":"LearningSpaces-Landing","full_name":"DefactoSoftware/LearningSpaces-Landing","owner":{"login":"DefactoSoftware","id":3899757,"avatar_url":"https://avatars.githubusercontent.com/u/3899757?v=3","gravatar_id":"","url":"https://api.github.com/users/DefactoSoftware","html_url":"https://github.com/DefactoSoftware","followers_url":"https://api.github.com/users/DefactoSoftware/followers","following_url":"https://api.github.com/users/DefactoSoftware/following{/other_user}","gists_url":"https://api.github.com/users/DefactoSoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/DefactoSoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DefactoSoftware/subscriptions","organizations_url":"https://api.github.com/users/DefactoSoftware/orgs","repos_url":"https://api.github.com/users/DefactoSoftware/repos","events_url":"https://api.github.com/users/DefactoSoftware/events{/privacy}","received_events_url":"https://api.github.com/users/DefactoSoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DefactoSoftware/LearningSpaces-Landing","description":"LearningSpaces Landingpage","fork":false,"url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing","forks_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/forks","keys_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/teams","hooks_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/hooks","issue_events_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/issues/events{/number}","events_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/events","assignees_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/assignees{/user}","branches_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/branches{/branch}","tags_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/tags","blobs_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/git/refs{/sha}","trees_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/statuses/{sha}","languages_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/languages","stargazers_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/stargazers","contributors_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/contributors","subscribers_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/subscribers","subscription_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/subscription","commits_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/commits{/sha}","git_commits_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/git/commits{/sha}","comments_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/comments{/number}","issue_comment_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/issues/comments{/number}","contents_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/contents/{+path}","compare_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/merges","archive_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/downloads","issues_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/issues{/number}","pulls_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/pulls{/number}","milestones_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/milestones{/number}","notifications_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/labels{/name}","releases_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/releases{/id}","deployments_url":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/deployments","created_at":"2015-01-13T10:08:22Z","updated_at":"2016-01-15T15:20:58Z","pushed_at":"2016-10-11T12:53:24Z","git_url":"git://github.com/DefactoSoftware/LearningSpaces-Landing.git","ssh_url":"git@github.com:DefactoSoftware/LearningSpaces-Landing.git","clone_url":"https://github.com/DefactoSoftware/LearningSpaces-Landing.git","svn_url":"https://github.com/DefactoSoftware/LearningSpaces-Landing","homepage":"http://www.learningspaces.io/","size":9232,"stargazers_count":5,"watchers_count":5,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":11,"forks":2,"open_issues":11,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/pulls/112"},"html":{"href":"https://github.com/DefactoSoftware/LearningSpaces-Landing/pull/112"},"issue":{"href":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/issues/112"},"comments":{"href":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/issues/112/comments"},"review_comments":{"href":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/pulls/112/comments"},"review_comment":{"href":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/pulls/112/commits"},"statuses":{"href":"https://api.github.com/repos/DefactoSoftware/LearningSpaces-Landing/statuses/de3efd5860a5e011a2e034c5c3c5568c2858f735"}}}}
{"actor":{"display_login":"houndci-bot"}}