{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/webmaker.org/pulls/comments/25310514","id":25310514,"diff_hunk":"@@ -0,0 +1,114 @@\n+requirejs.config({\n+  baseDir: \"/js\",\n+  paths: {\n+    \"analytics\": \"/bower_components/webmaker-analytics/analytics\",\n+    \"jquery\": \"/bower_components/jquery/jquery.min\",\n+    'languages': '/bower_components/webmaker-language-picker/js/languages',\n+    'list': '/bower_components/listjs/dist/list.min',\n+    'fuzzySearch': '/bower_components/list.fuzzysearch.js/dist/list.fuzzysearch.min',\n+    'magnific-popup': '/bower_components/magnific-popup/dist/jquery.magnific-popup.min',\n+    'transition': '/bower_components/bootstrap/js/transition',\n+    'tabzilla': 'https://mozorg.cdn.mozilla.net/tabzilla/tabzilla',\n+    'selectize': '/bower_components/selectize/dist/js/standalone/selectize.min',\n+    'collapse': '/bower_components/bootstrap/js/collapse',\n+    'carousel': '/bower_components/bootstrap/js/carousel'\n+  },\n+  shim: {\n+    'transition': ['jquery'],\n+    'collapse': ['jquery'],\n+    'carousel': ['jquery']\n+  }\n+});\n+\n+require([\"jquery\", \"languages\", \"selectize\", \"transition\", \"collapse\", \"carousel\", \"magnific-popup\"], function ($, languages, selectize ) {\n+  \"use strict\";\n+  var $window = $(window);\n+  //parallax\n+  $(window).scroll(function() {\n+    var yPos = -($(window).scrollTop() / 50);\n+    $(\"#moi-video\").css({ backgroundPosition: \"50% \"+ yPos + \"px\" });\n+  });\n+  // video lightbox\n+  $(\".moi-video-link\").magnificPopup({\n+    type: \"iframe\"\n+  });\n+  // quote carousel\n+  $(\"#quote-carousel\").carousel();\n+  // smooth scrolling to anchors. modified from http://css-tricks.com/snippets/jquery/smooth-scrolling/\n+  $(\".go-to-anchor-btn\").click(function() {\n+    if (location.pathname.replace(/^\\//,'') == this.pathname.replace(/^\\//,'') && location.hostname == this.hostname) {\n+      var target = $(this.hash);\n+      target = target.length ? target : $('[name=' + this.hash.slice(1) +']');\n+      if (target.length) {\n+        $('html,body').animate({\n+          scrollTop: target.offset().top\n+        }, 600);\n+        return false;\n+      }\n+    }\n+  });\n+  var $element = $('#langPicker');\n+  var highlightLangs = [ \"bn\", \"hi-IN\", \"pt-BR\" ]; // P1 languages for /localweb page: Bangla, Hindi, Brazilian Portuguese\n+  var otherLangs = [ \"en-US\", \"da-DK\", \"sq\", \"sv\", \"es-CL\", \"fr\", \"ru\", \"fl\", \"es-MX\" ]; // other languages that are at least 90% complete\n+  var highlightOptions = [];\n+  var options = [];\n+  var lang;\n+  var langData;\n+  var config = window.angularConfig;\n+\n+  function createLangData(lang) {\n+    return  {\n+              id: lang,\n+              title: config.langmap[lang] ? config.langmap[lang].nativeName : lang,\n+              english: config.langmap[lang] && config.langmap[lang].englishName\n+            };\n+  }\n+\n+  for (var i = 0; i < config.supported_languages.length; i++) {","path":"public/js/pages/localweb.js","position":67,"original_position":67,"commit_id":"275b560fe3e45292c2a834f4fce65114b258e658","original_commit_id":"275b560fe3e45292c2a834f4fce65114b258e658","user":{"login":"mmmavis","id":2896608,"avatar_url":"https://avatars.githubusercontent.com/u/2896608?v=3","gravatar_id":"","url":"https://api.github.com/users/mmmavis","html_url":"https://github.com/mmmavis","followers_url":"https://api.github.com/users/mmmavis/followers","following_url":"https://api.github.com/users/mmmavis/following{/other_user}","gists_url":"https://api.github.com/users/mmmavis/gists{/gist_id}","starred_url":"https://api.github.com/users/mmmavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmmavis/subscriptions","organizations_url":"https://api.github.com/users/mmmavis/orgs","repos_url":"https://api.github.com/users/mmmavis/repos","events_url":"https://api.github.com/users/mmmavis/events{/privacy}","received_events_url":"https://api.github.com/users/mmmavis/received_events","type":"User","site_admin":false},"body":"Hey @alicoding ,\r\nUmmm this seems to be working for me on https://moi-splash.herokuapp.com/localweb .  We want to highlight the 3 P1 languages(Bangla, Hindi, Brazilian Portuguese) so they appear first in the dropdown.  I'm seeing this on my Heroku staging but maybe on production the setup is different.  I can revert this change back and let @edrushka know that this is not recommended. ","created_at":"2015-02-25T01:14:31Z","updated_at":"2015-02-25T01:14:31Z","html_url":"https://github.com/mozilla/webmaker.org/pull/1246#discussion_r25310514","pull_request_url":"https://api.github.com/repos/mozilla/webmaker.org/pulls/1246","_links":{"self":{"href":"https://api.github.com/repos/mozilla/webmaker.org/pulls/comments/25310514"},"html":{"href":"https://github.com/mozilla/webmaker.org/pull/1246#discussion_r25310514"},"pull_request":{"href":"https://api.github.com/repos/mozilla/webmaker.org/pulls/1246"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/webmaker.org/pulls/1246","id":29479555,"html_url":"https://github.com/mozilla/webmaker.org/pull/1246","diff_url":"https://github.com/mozilla/webmaker.org/pull/1246.diff","patch_url":"https://github.com/mozilla/webmaker.org/pull/1246.patch","issue_url":"https://api.github.com/repos/mozilla/webmaker.org/issues/1246","number":1246,"state":"open","locked":false,"title":"Build for MOI splash page (re: #1168)","user":{"login":"mmmavis","id":2896608,"avatar_url":"https://avatars.githubusercontent.com/u/2896608?v=3","gravatar_id":"","url":"https://api.github.com/users/mmmavis","html_url":"https://github.com/mmmavis","followers_url":"https://api.github.com/users/mmmavis/followers","following_url":"https://api.github.com/users/mmmavis/following{/other_user}","gists_url":"https://api.github.com/users/mmmavis/gists{/gist_id}","starred_url":"https://api.github.com/users/mmmavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmmavis/subscriptions","organizations_url":"https://api.github.com/users/mmmavis/orgs","repos_url":"https://api.github.com/users/mmmavis/repos","events_url":"https://api.github.com/users/mmmavis/events{/privacy}","received_events_url":"https://api.github.com/users/mmmavis/received_events","type":"User","site_admin":false},"body":"original build ticket: https://github.com/mozilla/webmaker.org/issues/1168\r\nstaging on Heorku: https://moi-splash.herokuapp.com/localweb\r\n\r\nThe build is done except a few pieces\r\n\r\n- localization\r\n- styling tweaks\r\n- some missing links and logo\r\n\r\nWould we great if we can start code review soon :dancers: ","created_at":"2015-02-17T21:32:58Z","updated_at":"2015-02-25T01:14:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f2d6f75bef3406e763684876cda1f797c97e007","assignee":{"login":"ScottDowne","id":197334,"avatar_url":"https://avatars.githubusercontent.com/u/197334?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottDowne","html_url":"https://github.com/ScottDowne","followers_url":"https://api.github.com/users/ScottDowne/followers","following_url":"https://api.github.com/users/ScottDowne/following{/other_user}","gists_url":"https://api.github.com/users/ScottDowne/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottDowne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottDowne/subscriptions","organizations_url":"https://api.github.com/users/ScottDowne/orgs","repos_url":"https://api.github.com/users/ScottDowne/repos","events_url":"https://api.github.com/users/ScottDowne/events{/privacy}","received_events_url":"https://api.github.com/users/ScottDowne/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/webmaker.org/pulls/1246/commits","review_comments_url":"https://api.github.com/repos/mozilla/webmaker.org/pulls/1246/comments","review_comment_url":"https://api.github.com/repos/mozilla/webmaker.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/webmaker.org/issues/1246/comments","statuses_url":"https://api.github.com/repos/mozilla/webmaker.org/statuses/275b560fe3e45292c2a834f4fce65114b258e658","head":{"label":"mmmavis:moi-landing-page-new","ref":"moi-landing-page-new","sha":"275b560fe3e45292c2a834f4fce65114b258e658","user":{"login":"mmmavis","id":2896608,"avatar_url":"https://avatars.githubusercontent.com/u/2896608?v=3","gravatar_id":"","url":"https://api.github.com/users/mmmavis","html_url":"https://github.com/mmmavis","followers_url":"https://api.github.com/users/mmmavis/followers","following_url":"https://api.github.com/users/mmmavis/following{/other_user}","gists_url":"https://api.github.com/users/mmmavis/gists{/gist_id}","starred_url":"https://api.github.com/users/mmmavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmmavis/subscriptions","organizations_url":"https://api.github.com/users/mmmavis/orgs","repos_url":"https://api.github.com/users/mmmavis/repos","events_url":"https://api.github.com/users/mmmavis/events{/privacy}","received_events_url":"https://api.github.com/users/mmmavis/received_events","type":"User","site_admin":false},"repo":{"id":17005542,"name":"webmaker.org","full_name":"mmmavis/webmaker.org","owner":{"login":"mmmavis","id":2896608,"avatar_url":"https://avatars.githubusercontent.com/u/2896608?v=3","gravatar_id":"","url":"https://api.github.com/users/mmmavis","html_url":"https://github.com/mmmavis","followers_url":"https://api.github.com/users/mmmavis/followers","following_url":"https://api.github.com/users/mmmavis/following{/other_user}","gists_url":"https://api.github.com/users/mmmavis/gists{/gist_id}","starred_url":"https://api.github.com/users/mmmavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmmavis/subscriptions","organizations_url":"https://api.github.com/users/mmmavis/orgs","repos_url":"https://api.github.com/users/mmmavis/repos","events_url":"https://api.github.com/users/mmmavis/events{/privacy}","received_events_url":"https://api.github.com/users/mmmavis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mmmavis/webmaker.org","description":"Where all the stuff gets made","fork":true,"url":"https://api.github.com/repos/mmmavis/webmaker.org","forks_url":"https://api.github.com/repos/mmmavis/webmaker.org/forks","keys_url":"https://api.github.com/repos/mmmavis/webmaker.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mmmavis/webmaker.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mmmavis/webmaker.org/teams","hooks_url":"https://api.github.com/repos/mmmavis/webmaker.org/hooks","issue_events_url":"https://api.github.com/repos/mmmavis/webmaker.org/issues/events{/number}","events_url":"https://api.github.com/repos/mmmavis/webmaker.org/events","assignees_url":"https://api.github.com/repos/mmmavis/webmaker.org/assignees{/user}","branches_url":"https://api.github.com/repos/mmmavis/webmaker.org/branches{/branch}","tags_url":"https://api.github.com/repos/mmmavis/webmaker.org/tags","blobs_url":"https://api.github.com/repos/mmmavis/webmaker.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mmmavis/webmaker.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mmmavis/webmaker.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/mmmavis/webmaker.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mmmavis/webmaker.org/statuses/{sha}","languages_url":"https://api.github.com/repos/mmmavis/webmaker.org/languages","stargazers_url":"https://api.github.com/repos/mmmavis/webmaker.org/stargazers","contributors_url":"https://api.github.com/repos/mmmavis/webmaker.org/contributors","subscribers_url":"https://api.github.com/repos/mmmavis/webmaker.org/subscribers","subscription_url":"https://api.github.com/repos/mmmavis/webmaker.org/subscription","commits_url":"https://api.github.com/repos/mmmavis/webmaker.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/mmmavis/webmaker.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/mmmavis/webmaker.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/mmmavis/webmaker.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/mmmavis/webmaker.org/contents/{+path}","compare_url":"https://api.github.com/repos/mmmavis/webmaker.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mmmavis/webmaker.org/merges","archive_url":"https://api.github.com/repos/mmmavis/webmaker.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mmmavis/webmaker.org/downloads","issues_url":"https://api.github.com/repos/mmmavis/webmaker.org/issues{/number}","pulls_url":"https://api.github.com/repos/mmmavis/webmaker.org/pulls{/number}","milestones_url":"https://api.github.com/repos/mmmavis/webmaker.org/milestones{/number}","notifications_url":"https://api.github.com/repos/mmmavis/webmaker.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mmmavis/webmaker.org/labels{/name}","releases_url":"https://api.github.com/repos/mmmavis/webmaker.org/releases{/id}","created_at":"2014-02-20T01:20:47Z","updated_at":"2015-02-18T00:38:42Z","pushed_at":"2015-02-24T23:34:38Z","git_url":"git://github.com/mmmavis/webmaker.org.git","ssh_url":"git@github.com:mmmavis/webmaker.org.git","clone_url":"https://github.com/mmmavis/webmaker.org.git","svn_url":"https://github.com/mmmavis/webmaker.org","homepage":"https://webmaker.org","size":43706,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"3d048d34bbdf95f25cc5f4e57a7fc50dcff0f940","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":8780590,"name":"webmaker.org","full_name":"mozilla/webmaker.org","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/webmaker.org","description":"Webmaker is Mozilla's project to teach the web","fork":false,"url":"https://api.github.com/repos/mozilla/webmaker.org","forks_url":"https://api.github.com/repos/mozilla/webmaker.org/forks","keys_url":"https://api.github.com/repos/mozilla/webmaker.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/webmaker.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/webmaker.org/teams","hooks_url":"https://api.github.com/repos/mozilla/webmaker.org/hooks","issue_events_url":"https://api.github.com/repos/mozilla/webmaker.org/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/webmaker.org/events","assignees_url":"https://api.github.com/repos/mozilla/webmaker.org/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/webmaker.org/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/webmaker.org/tags","blobs_url":"https://api.github.com/repos/mozilla/webmaker.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/webmaker.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/webmaker.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/webmaker.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/webmaker.org/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/webmaker.org/languages","stargazers_url":"https://api.github.com/repos/mozilla/webmaker.org/stargazers","contributors_url":"https://api.github.com/repos/mozilla/webmaker.org/contributors","subscribers_url":"https://api.github.com/repos/mozilla/webmaker.org/subscribers","subscription_url":"https://api.github.com/repos/mozilla/webmaker.org/subscription","commits_url":"https://api.github.com/repos/mozilla/webmaker.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/webmaker.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/webmaker.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/webmaker.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/webmaker.org/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/webmaker.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/webmaker.org/merges","archive_url":"https://api.github.com/repos/mozilla/webmaker.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/webmaker.org/downloads","issues_url":"https://api.github.com/repos/mozilla/webmaker.org/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/webmaker.org/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/webmaker.org/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/webmaker.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/webmaker.org/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/webmaker.org/releases{/id}","created_at":"2013-03-14T17:01:22Z","updated_at":"2015-02-24T23:29:30Z","pushed_at":"2015-02-24T23:29:30Z","git_url":"git://github.com/mozilla/webmaker.org.git","ssh_url":"git@github.com:mozilla/webmaker.org.git","clone_url":"https://github.com/mozilla/webmaker.org.git","svn_url":"https://github.com/mozilla/webmaker.org","homepage":"https://webmaker.org","size":54909,"stargazers_count":45,"watchers_count":45,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":100,"mirror_url":null,"open_issues_count":100,"forks":100,"open_issues":100,"watchers":45,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/webmaker.org/pulls/1246"},"html":{"href":"https://github.com/mozilla/webmaker.org/pull/1246"},"issue":{"href":"https://api.github.com/repos/mozilla/webmaker.org/issues/1246"},"comments":{"href":"https://api.github.com/repos/mozilla/webmaker.org/issues/1246/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/webmaker.org/pulls/1246/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/webmaker.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/webmaker.org/pulls/1246/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/webmaker.org/statuses/275b560fe3e45292c2a834f4fce65114b258e658"}}}}