{"action":"created","comment":{"url":"https://api.github.com/repos/goavki/apertium-html-tools/pulls/comments/157343969","pull_request_review_id":83976673,"id":157343969,"diff_hunk":"@@ -0,0 +1,181 @@\n+/* global config, persistChoices, iso639Codes, iso639CodesInverse, populateTranslationList, showTranslateWebpageInterface */\n+/* global ajaxSend, ajaxComplete, synchronizeTextareaHeights */\n+\n+var BACK_TO_TOP_BUTTON_ACTIVATION_HEIGHT = 300;\n+\n+$(document).ajaxSend(ajaxSend);\n+$(document).ajaxComplete(ajaxComplete);\n+$(document).ajaxError(ajaxComplete);\n+\n+$.jsonp.setup({\n+    callbackParameter: 'callback'\n+});\n+\n+$(document).ready(function () {\n+    $('#noscript').hide();\n+    $('.navbar').css('margin-top', '0px');\n+    $('body > .container').css('margin-top', '0px');\n+\n+    if(config.SUBTITLE) {\n+        $('.apertiumSubLogo')\n+            .text(config.SUBTITLE)\n+            .show();\n+        if(config.SUBTITLE_COLOR) {\n+            $('.apertiumSubLogo').css('color', config.SUBTITLE_COLOR);\n+        }\n+    }\n+    else {\n+        $('.apertiumSubLogo').hide();\n+    }\n+\n+    if(config.SHOW_NAVBAR) {\n+        if(config.ENABLED_MODES === null) {\n+            $('.nav a').removeClass('hide');\n+        }\n+        else {\n+            $.each(config.ENABLED_MODES, function () {\n+                $('.nav a[data-mode=' + this + ']').removeClass('hide');\n+            });\n+        }\n+    }\n+    else {\n+        $('.navbar-default .navbar-toggle').hide();\n+        $('.navbar-default .nav').hide();\n+    }\n+\n+    var hash = parent.location.hash;\n+\n+    try {\n+        if(!hash || !$(hash + 'Container')) {\n+            hash = '#' + config.DEFAULT_MODE;\n+            parent.location.hash = hash;\n+        }\n+    }\n+    catch(e) {\n+        console.error('Invalid hash: ' + e);\n+        hash = '#' + config.DEFAULT_MODE;\n+        parent.location.hash = hash;\n+    }\n+\n+    try {\n+        if(hash === '#webpageTranslation') {\n+            hash = '#translation';\n+            showTranslateWebpageInterface();\n+        }\n+        else if(!hash || !$(hash + 'Container').length) {\n+            hash = '#' + config.DEFAULT_MODE;\n+            parent.location.hash = hash;\n+        }\n+    }\n+    catch(e) {\n+        console.error('Invalid hash: ' + e);\n+        hash = '#' + config.DEFAULT_MODE;\n+        parent.location.hash = hash;\n+    }\n+\n+    $('.modeContainer' + hash + 'Container').show();\n+    $('.navbar-default .nav li > a[data-mode=' + hash.substring(1) + ']').parent().addClass('active');\n+\n+    $('.navbar-default .nav a').click(function () {\n+        var mode = $(this).data('mode');\n+        $('.nav li').removeClass('active');\n+        $(this).parent('li').addClass('active');\n+        $('.modeContainer:not(#' + mode + 'Container)').stop().hide({\n+            queue: false\n+        });\n+        $('#' + mode + 'Container').stop().show({\n+            queue: false\n+        });\n+        synchronizeTextareaHeights();\n+    });\n+\n+    resizeFooter();\n+    $(window)\n+        .on('hashchange', persistChoices)\n+        .resize(debounce(function () {\n+            populateTranslationList();\n+            resizeFooter();","path":"assets/js/init.js","position":97,"original_position":97,"commit_id":"6089be4d44d17c4d2eb9c468c5a904672cfdc1cb","original_commit_id":"6089be4d44d17c4d2eb9c468c5a904672cfdc1cb","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":"'resizeFooter' is not defined  no-undef","created_at":"2017-12-16T15:12:19Z","updated_at":"2017-12-16T15:12:19Z","html_url":"https://github.com/goavki/apertium-html-tools/pull/225#discussion_r157343969","pull_request_url":"https://api.github.com/repos/goavki/apertium-html-tools/pulls/225","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/goavki/apertium-html-tools/pulls/comments/157343969"},"html":{"href":"https://github.com/goavki/apertium-html-tools/pull/225#discussion_r157343969"},"pull_request":{"href":"https://api.github.com/repos/goavki/apertium-html-tools/pulls/225"}}},"pull_request":{"url":"https://api.github.com/repos/goavki/apertium-html-tools/pulls/225","id":158743025,"html_url":"https://github.com/goavki/apertium-html-tools/pull/225","diff_url":"https://github.com/goavki/apertium-html-tools/pull/225.diff","patch_url":"https://github.com/goavki/apertium-html-tools/pull/225.patch","issue_url":"https://api.github.com/repos/goavki/apertium-html-tools/issues/225","number":225,"state":"open","locked":false,"title":"[WIP] Disentangle JS modules","user":{"login":"Androbin","id":16437156,"avatar_url":"https://avatars1.githubusercontent.com/u/16437156?v=4","gravatar_id":"","url":"https://api.github.com/users/Androbin","html_url":"https://github.com/Androbin","followers_url":"https://api.github.com/users/Androbin/followers","following_url":"https://api.github.com/users/Androbin/following{/other_user}","gists_url":"https://api.github.com/users/Androbin/gists{/gist_id}","starred_url":"https://api.github.com/users/Androbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Androbin/subscriptions","organizations_url":"https://api.github.com/users/Androbin/orgs","repos_url":"https://api.github.com/users/Androbin/repos","events_url":"https://api.github.com/users/Androbin/events{/privacy}","received_events_url":"https://api.github.com/users/Androbin/received_events","type":"User","site_admin":false},"body":"Fixing #80","created_at":"2017-12-16T12:38:42Z","updated_at":"2017-12-16T15:12:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f189e133d0c7e4c2773a74904490a01f9b6f786c","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/goavki/apertium-html-tools/pulls/225/commits","review_comments_url":"https://api.github.com/repos/goavki/apertium-html-tools/pulls/225/comments","review_comment_url":"https://api.github.com/repos/goavki/apertium-html-tools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/goavki/apertium-html-tools/issues/225/comments","statuses_url":"https://api.github.com/repos/goavki/apertium-html-tools/statuses/6089be4d44d17c4d2eb9c468c5a904672cfdc1cb","head":{"label":"Androbin:detangled","ref":"detangled","sha":"6089be4d44d17c4d2eb9c468c5a904672cfdc1cb","user":{"login":"Androbin","id":16437156,"avatar_url":"https://avatars1.githubusercontent.com/u/16437156?v=4","gravatar_id":"","url":"https://api.github.com/users/Androbin","html_url":"https://github.com/Androbin","followers_url":"https://api.github.com/users/Androbin/followers","following_url":"https://api.github.com/users/Androbin/following{/other_user}","gists_url":"https://api.github.com/users/Androbin/gists{/gist_id}","starred_url":"https://api.github.com/users/Androbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Androbin/subscriptions","organizations_url":"https://api.github.com/users/Androbin/orgs","repos_url":"https://api.github.com/users/Androbin/repos","events_url":"https://api.github.com/users/Androbin/events{/privacy}","received_events_url":"https://api.github.com/users/Androbin/received_events","type":"User","site_admin":false},"repo":{"id":114459694,"name":"apertium-html-tools","full_name":"Androbin/apertium-html-tools","owner":{"login":"Androbin","id":16437156,"avatar_url":"https://avatars1.githubusercontent.com/u/16437156?v=4","gravatar_id":"","url":"https://api.github.com/users/Androbin","html_url":"https://github.com/Androbin","followers_url":"https://api.github.com/users/Androbin/followers","following_url":"https://api.github.com/users/Androbin/following{/other_user}","gists_url":"https://api.github.com/users/Androbin/gists{/gist_id}","starred_url":"https://api.github.com/users/Androbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Androbin/subscriptions","organizations_url":"https://api.github.com/users/Androbin/orgs","repos_url":"https://api.github.com/users/Androbin/repos","events_url":"https://api.github.com/users/Androbin/events{/privacy}","received_events_url":"https://api.github.com/users/Androbin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Androbin/apertium-html-tools","description":"Apertium Html-tools is a web application providing a fully localised interface for text/document translation, analysis and generation powered by Apertium.","fork":true,"url":"https://api.github.com/repos/Androbin/apertium-html-tools","forks_url":"https://api.github.com/repos/Androbin/apertium-html-tools/forks","keys_url":"https://api.github.com/repos/Androbin/apertium-html-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Androbin/apertium-html-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Androbin/apertium-html-tools/teams","hooks_url":"https://api.github.com/repos/Androbin/apertium-html-tools/hooks","issue_events_url":"https://api.github.com/repos/Androbin/apertium-html-tools/issues/events{/number}","events_url":"https://api.github.com/repos/Androbin/apertium-html-tools/events","assignees_url":"https://api.github.com/repos/Androbin/apertium-html-tools/assignees{/user}","branches_url":"https://api.github.com/repos/Androbin/apertium-html-tools/branches{/branch}","tags_url":"https://api.github.com/repos/Androbin/apertium-html-tools/tags","blobs_url":"https://api.github.com/repos/Androbin/apertium-html-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Androbin/apertium-html-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Androbin/apertium-html-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/Androbin/apertium-html-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Androbin/apertium-html-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/Androbin/apertium-html-tools/languages","stargazers_url":"https://api.github.com/repos/Androbin/apertium-html-tools/stargazers","contributors_url":"https://api.github.com/repos/Androbin/apertium-html-tools/contributors","subscribers_url":"https://api.github.com/repos/Androbin/apertium-html-tools/subscribers","subscription_url":"https://api.github.com/repos/Androbin/apertium-html-tools/subscription","commits_url":"https://api.github.com/repos/Androbin/apertium-html-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/Androbin/apertium-html-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/Androbin/apertium-html-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/Androbin/apertium-html-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/Androbin/apertium-html-tools/contents/{+path}","compare_url":"https://api.github.com/repos/Androbin/apertium-html-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Androbin/apertium-html-tools/merges","archive_url":"https://api.github.com/repos/Androbin/apertium-html-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Androbin/apertium-html-tools/downloads","issues_url":"https://api.github.com/repos/Androbin/apertium-html-tools/issues{/number}","pulls_url":"https://api.github.com/repos/Androbin/apertium-html-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/Androbin/apertium-html-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/Androbin/apertium-html-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Androbin/apertium-html-tools/labels{/name}","releases_url":"https://api.github.com/repos/Androbin/apertium-html-tools/releases{/id}","deployments_url":"https://api.github.com/repos/Androbin/apertium-html-tools/deployments","created_at":"2017-12-16T12:37:33Z","updated_at":"2017-12-16T12:37:35Z","pushed_at":"2017-12-16T15:12:11Z","git_url":"git://github.com/Androbin/apertium-html-tools.git","ssh_url":"git@github.com:Androbin/apertium-html-tools.git","clone_url":"https://github.com/Androbin/apertium-html-tools.git","svn_url":"https://github.com/Androbin/apertium-html-tools","homepage":"http://wiki.apertium.org/wiki/Apertium-html-tools","size":2412,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"goavki:master","ref":"master","sha":"780e615ac7a10f51caffd9e2dbc6a28e3e3f1d8f","user":{"login":"goavki","id":10347085,"avatar_url":"https://avatars0.githubusercontent.com/u/10347085?v=4","gravatar_id":"","url":"https://api.github.com/users/goavki","html_url":"https://github.com/goavki","followers_url":"https://api.github.com/users/goavki/followers","following_url":"https://api.github.com/users/goavki/following{/other_user}","gists_url":"https://api.github.com/users/goavki/gists{/gist_id}","starred_url":"https://api.github.com/users/goavki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goavki/subscriptions","organizations_url":"https://api.github.com/users/goavki/orgs","repos_url":"https://api.github.com/users/goavki/repos","events_url":"https://api.github.com/users/goavki/events{/privacy}","received_events_url":"https://api.github.com/users/goavki/received_events","type":"Organization","site_admin":false},"repo":{"id":28576409,"name":"apertium-html-tools","full_name":"goavki/apertium-html-tools","owner":{"login":"goavki","id":10347085,"avatar_url":"https://avatars0.githubusercontent.com/u/10347085?v=4","gravatar_id":"","url":"https://api.github.com/users/goavki","html_url":"https://github.com/goavki","followers_url":"https://api.github.com/users/goavki/followers","following_url":"https://api.github.com/users/goavki/following{/other_user}","gists_url":"https://api.github.com/users/goavki/gists{/gist_id}","starred_url":"https://api.github.com/users/goavki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goavki/subscriptions","organizations_url":"https://api.github.com/users/goavki/orgs","repos_url":"https://api.github.com/users/goavki/repos","events_url":"https://api.github.com/users/goavki/events{/privacy}","received_events_url":"https://api.github.com/users/goavki/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/goavki/apertium-html-tools","description":"Apertium Html-tools is a web application providing a fully localised interface for text/document translation, analysis and generation powered by Apertium.","fork":false,"url":"https://api.github.com/repos/goavki/apertium-html-tools","forks_url":"https://api.github.com/repos/goavki/apertium-html-tools/forks","keys_url":"https://api.github.com/repos/goavki/apertium-html-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/goavki/apertium-html-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/goavki/apertium-html-tools/teams","hooks_url":"https://api.github.com/repos/goavki/apertium-html-tools/hooks","issue_events_url":"https://api.github.com/repos/goavki/apertium-html-tools/issues/events{/number}","events_url":"https://api.github.com/repos/goavki/apertium-html-tools/events","assignees_url":"https://api.github.com/repos/goavki/apertium-html-tools/assignees{/user}","branches_url":"https://api.github.com/repos/goavki/apertium-html-tools/branches{/branch}","tags_url":"https://api.github.com/repos/goavki/apertium-html-tools/tags","blobs_url":"https://api.github.com/repos/goavki/apertium-html-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/goavki/apertium-html-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/goavki/apertium-html-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/goavki/apertium-html-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/goavki/apertium-html-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/goavki/apertium-html-tools/languages","stargazers_url":"https://api.github.com/repos/goavki/apertium-html-tools/stargazers","contributors_url":"https://api.github.com/repos/goavki/apertium-html-tools/contributors","subscribers_url":"https://api.github.com/repos/goavki/apertium-html-tools/subscribers","subscription_url":"https://api.github.com/repos/goavki/apertium-html-tools/subscription","commits_url":"https://api.github.com/repos/goavki/apertium-html-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/goavki/apertium-html-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/goavki/apertium-html-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/goavki/apertium-html-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/goavki/apertium-html-tools/contents/{+path}","compare_url":"https://api.github.com/repos/goavki/apertium-html-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/goavki/apertium-html-tools/merges","archive_url":"https://api.github.com/repos/goavki/apertium-html-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/goavki/apertium-html-tools/downloads","issues_url":"https://api.github.com/repos/goavki/apertium-html-tools/issues{/number}","pulls_url":"https://api.github.com/repos/goavki/apertium-html-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/goavki/apertium-html-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/goavki/apertium-html-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/goavki/apertium-html-tools/labels{/name}","releases_url":"https://api.github.com/repos/goavki/apertium-html-tools/releases{/id}","deployments_url":"https://api.github.com/repos/goavki/apertium-html-tools/deployments","created_at":"2014-12-29T01:40:22Z","updated_at":"2017-12-07T17:50:24Z","pushed_at":"2017-12-16T15:12:11Z","git_url":"git://github.com/goavki/apertium-html-tools.git","ssh_url":"git@github.com:goavki/apertium-html-tools.git","clone_url":"https://github.com/goavki/apertium-html-tools.git","svn_url":"https://github.com/goavki/apertium-html-tools","homepage":"http://wiki.apertium.org/wiki/Apertium-html-tools","size":12799,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"archived":false,"open_issues_count":43,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":32,"open_issues":43,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/goavki/apertium-html-tools/pulls/225"},"html":{"href":"https://github.com/goavki/apertium-html-tools/pull/225"},"issue":{"href":"https://api.github.com/repos/goavki/apertium-html-tools/issues/225"},"comments":{"href":"https://api.github.com/repos/goavki/apertium-html-tools/issues/225/comments"},"review_comments":{"href":"https://api.github.com/repos/goavki/apertium-html-tools/pulls/225/comments"},"review_comment":{"href":"https://api.github.com/repos/goavki/apertium-html-tools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/goavki/apertium-html-tools/pulls/225/commits"},"statuses":{"href":"https://api.github.com/repos/goavki/apertium-html-tools/statuses/6089be4d44d17c4d2eb9c468c5a904672cfdc1cb"}},"author_association":"NONE"}}
{"actor":{"display_login":"houndci-bot"}}