{"action":"created","comment":{"url":"https://api.github.com/repos/binary-static/binary-static-www2/pulls/comments/52702016","id":52702016,"diff_hunk":"@@ -0,0 +1,236 @@\n+BetAnalysis.DigitInfoWS = function() {\n+    this.chart_config = {\n+        chart: {\n+                renderTo:'last_digit_histo',\n+                defaultSeriesType:'column',\n+                backgroundColor:'#eee',\n+                borderWidth:1,\n+                borderColor:'#ccc',\n+                plotBackgroundColor:'#fff',\n+                plotBorderWidth:1,\n+                plotBorderColor:'#ccc',\n+                height:225 // This is \"unresponsive\", but so is leaving it empty where it goes to 400px.\n+        },\n+        title:{text:''},\n+        credits:{enabled:false},\n+        exporting:{enabled:false},\n+        legend:{\n+            enabled:false\n+        },\n+        tooltip:{\n+            borderWidth:1,\n+            formatter:function() {\n+                var that = this;\n+                var total = $(\"select[name='tick_count']\").val();\n+                var percentage = that.y/total*100;\n+                return '<b>Digit:</b> '+ that.x +'<br/>'+\n+                '<b>Percentage:</b> '+ percentage.toFixed(1) + \" %\";\n+            }\n+        },\n+        plotOptions:{\n+            column:{\n+                shadow:false,\n+                borderWidth:0.5,\n+                borderColor:'#666',\n+                pointPadding:0,\n+                groupPadding:0,\n+                color: '#e1f0fb',\n+            },\n+            series: {\n+                dataLabels: {\n+                    enabled: true,\n+                    formatter: function() {\n+                        var total = $(\"select[name='tick_count']\").val();\n+                        var percentage = this.point.y/total*100;\n+                        return percentage.toFixed(2) + ' %';\n+                    },\n+                },\n+            },\n+        },\n+        xAxis:{\n+            categories: ['0','1','2','3','4','5','6','7','8','9'],\n+            lineWidth:0,\n+            lineColor:'#999',\n+            tickLength:10,\n+            tickColor:'#ccc',\n+        },\n+        yAxis:{\n+            title:{text:''},\n+            maxPadding:0,\n+            gridLineColor:'#e9e9e9',\n+            tickWidth:1,\n+            tickLength:3,\n+            tickColor:'#ccc',\n+            lineColor:'#ccc',\n+            endOnTick:true,\n+            opposite: false,\n+            labels: {\n+                align: 'left',\n+                x: 0,\n+                enabled: false,\n+                formatter: function() {\n+                    var total = $(\"select[name='tick_count']\").val();\n+                    var percentage = parseInt(this.value/total*100);\n+                    return percentage + \" %\";\n+                },\n+            },\n+        },\n+    };\n+\n+    this.spots = [];\n+    this.stream_id = null;\n+    this.updateChart = 0; //Removes anomalies for slow connections, yes like interstellar anomalies :D\n+};\n+\n+BetAnalysis.DigitInfoWS.prototype = {\n+    add_content: function(){\n+        var domain = document.domain.split('.').slice(-2).join('.'),\n+            underlyings =[];\n+        var symbols = Symbols.getAllSymbols();\n+        i=0;\n+        for(var key in symbols){\n+            if(symbols[key].split(\" \")[0] === 'Random'){\n+                underlyings[i++] = key;\n+            }\n+        }\n+        underlyings = underlyings.sort();\n+        var elem = '<select class=\"smallfont\" name=\"underlying\">';\n+        for(i=0;i<underlyings.length;i++){\n+            elem = elem + '<option value=\"'+underlyings[i]+'\">'+symbols[underlyings[i]]+'</option>';\n+        }\n+        elem = elem + '</select>';\n+        var contentId = document.getElementById('tab_last_digit-content'),\n+            content = '<div class=\"grd-parent\">'+\n+                        '<div id=\"last_digit_histo_form\" class=\"grd-grid-8 grd-grid-mobile-12 grd-centered\">'+\n+                        '<form class=smallfont action=\"'+ page.url.url_for('trade/last_digit_info') +'\" method=\"post\">'+\n+                        text.localize('<div class=\"grd-grid-mobile-12\">Select market :'+ elem +' </div>')+","path":"src/javascript/binary/pages/trade/charts/digit_infows.js","position":106,"original_position":106,"commit_id":"c2f2cc5ad6af368c6227fb0c051a6a5fadb131b9","original_commit_id":"c2f2cc5ad6af368c6227fb0c051a6a5fadb131b9","user":{"login":"ashkanx","id":4541182,"avatar_url":"https://avatars.githubusercontent.com/u/4541182?v=3","gravatar_id":"","url":"https://api.github.com/users/ashkanx","html_url":"https://github.com/ashkanx","followers_url":"https://api.github.com/users/ashkanx/followers","following_url":"https://api.github.com/users/ashkanx/following{/other_user}","gists_url":"https://api.github.com/users/ashkanx/gists{/gist_id}","starred_url":"https://api.github.com/users/ashkanx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashkanx/subscriptions","organizations_url":"https://api.github.com/users/ashkanx/orgs","repos_url":"https://api.github.com/users/ashkanx/repos","events_url":"https://api.github.com/users/ashkanx/events{/privacy}","received_events_url":"https://api.github.com/users/ashkanx/received_events","type":"User","site_admin":false},"body":"why are you adding <div class=\"grd-grid-mobile-12\">  </div> to it?","created_at":"2016-02-12T03:17:38Z","updated_at":"2016-02-12T03:17:38Z","html_url":"https://github.com/binary-static/binary-static-www2/pull/9#discussion_r52702016","pull_request_url":"https://api.github.com/repos/binary-static/binary-static-www2/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/binary-static/binary-static-www2/pulls/comments/52702016"},"html":{"href":"https://github.com/binary-static/binary-static-www2/pull/9#discussion_r52702016"},"pull_request":{"href":"https://api.github.com/repos/binary-static/binary-static-www2/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/binary-static/binary-static-www2/pulls/9","id":58649533,"html_url":"https://github.com/binary-static/binary-static-www2/pull/9","diff_url":"https://github.com/binary-static/binary-static-www2/pull/9.diff","patch_url":"https://github.com/binary-static/binary-static-www2/pull/9.patch","issue_url":"https://api.github.com/repos/binary-static/binary-static-www2/issues/9","number":9,"state":"open","locked":false,"title":"Last digit chartws","user":{"login":"4p00rv","id":11488287,"avatar_url":"https://avatars.githubusercontent.com/u/11488287?v=3","gravatar_id":"","url":"https://api.github.com/users/4p00rv","html_url":"https://github.com/4p00rv","followers_url":"https://api.github.com/users/4p00rv/followers","following_url":"https://api.github.com/users/4p00rv/following{/other_user}","gists_url":"https://api.github.com/users/4p00rv/gists{/gist_id}","starred_url":"https://api.github.com/users/4p00rv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4p00rv/subscriptions","organizations_url":"https://api.github.com/users/4p00rv/orgs","repos_url":"https://api.github.com/users/4p00rv/repos","events_url":"https://api.github.com/users/4p00rv/events{/privacy}","received_events_url":"https://api.github.com/users/4p00rv/received_events","type":"User","site_admin":false},"body":"Added digit_chart for last digit prediction trade.","created_at":"2016-02-08T18:43:15Z","updated_at":"2016-02-12T03:17:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"03b7fe6f4efc6680eba1085903245006779e2daf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/binary-static/binary-static-www2/pulls/9/commits","review_comments_url":"https://api.github.com/repos/binary-static/binary-static-www2/pulls/9/comments","review_comment_url":"https://api.github.com/repos/binary-static/binary-static-www2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/binary-static/binary-static-www2/issues/9/comments","statuses_url":"https://api.github.com/repos/binary-static/binary-static-www2/statuses/c2f2cc5ad6af368c6227fb0c051a6a5fadb131b9","head":{"label":"4p00rv:last_digit_chartws","ref":"last_digit_chartws","sha":"c2f2cc5ad6af368c6227fb0c051a6a5fadb131b9","user":{"login":"4p00rv","id":11488287,"avatar_url":"https://avatars.githubusercontent.com/u/11488287?v=3","gravatar_id":"","url":"https://api.github.com/users/4p00rv","html_url":"https://github.com/4p00rv","followers_url":"https://api.github.com/users/4p00rv/followers","following_url":"https://api.github.com/users/4p00rv/following{/other_user}","gists_url":"https://api.github.com/users/4p00rv/gists{/gist_id}","starred_url":"https://api.github.com/users/4p00rv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4p00rv/subscriptions","organizations_url":"https://api.github.com/users/4p00rv/orgs","repos_url":"https://api.github.com/users/4p00rv/repos","events_url":"https://api.github.com/users/4p00rv/events{/privacy}","received_events_url":"https://api.github.com/users/4p00rv/received_events","type":"User","site_admin":false},"repo":{"id":51317391,"name":"binary-static-www2","full_name":"4p00rv/binary-static-www2","owner":{"login":"4p00rv","id":11488287,"avatar_url":"https://avatars.githubusercontent.com/u/11488287?v=3","gravatar_id":"","url":"https://api.github.com/users/4p00rv","html_url":"https://github.com/4p00rv","followers_url":"https://api.github.com/users/4p00rv/followers","following_url":"https://api.github.com/users/4p00rv/following{/other_user}","gists_url":"https://api.github.com/users/4p00rv/gists{/gist_id}","starred_url":"https://api.github.com/users/4p00rv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4p00rv/subscriptions","organizations_url":"https://api.github.com/users/4p00rv/orgs","repos_url":"https://api.github.com/users/4p00rv/repos","events_url":"https://api.github.com/users/4p00rv/events{/privacy}","received_events_url":"https://api.github.com/users/4p00rv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/4p00rv/binary-static-www2","description":"Binary.com static content","fork":true,"url":"https://api.github.com/repos/4p00rv/binary-static-www2","forks_url":"https://api.github.com/repos/4p00rv/binary-static-www2/forks","keys_url":"https://api.github.com/repos/4p00rv/binary-static-www2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/4p00rv/binary-static-www2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/4p00rv/binary-static-www2/teams","hooks_url":"https://api.github.com/repos/4p00rv/binary-static-www2/hooks","issue_events_url":"https://api.github.com/repos/4p00rv/binary-static-www2/issues/events{/number}","events_url":"https://api.github.com/repos/4p00rv/binary-static-www2/events","assignees_url":"https://api.github.com/repos/4p00rv/binary-static-www2/assignees{/user}","branches_url":"https://api.github.com/repos/4p00rv/binary-static-www2/branches{/branch}","tags_url":"https://api.github.com/repos/4p00rv/binary-static-www2/tags","blobs_url":"https://api.github.com/repos/4p00rv/binary-static-www2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/4p00rv/binary-static-www2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/4p00rv/binary-static-www2/git/refs{/sha}","trees_url":"https://api.github.com/repos/4p00rv/binary-static-www2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/4p00rv/binary-static-www2/statuses/{sha}","languages_url":"https://api.github.com/repos/4p00rv/binary-static-www2/languages","stargazers_url":"https://api.github.com/repos/4p00rv/binary-static-www2/stargazers","contributors_url":"https://api.github.com/repos/4p00rv/binary-static-www2/contributors","subscribers_url":"https://api.github.com/repos/4p00rv/binary-static-www2/subscribers","subscription_url":"https://api.github.com/repos/4p00rv/binary-static-www2/subscription","commits_url":"https://api.github.com/repos/4p00rv/binary-static-www2/commits{/sha}","git_commits_url":"https://api.github.com/repos/4p00rv/binary-static-www2/git/commits{/sha}","comments_url":"https://api.github.com/repos/4p00rv/binary-static-www2/comments{/number}","issue_comment_url":"https://api.github.com/repos/4p00rv/binary-static-www2/issues/comments{/number}","contents_url":"https://api.github.com/repos/4p00rv/binary-static-www2/contents/{+path}","compare_url":"https://api.github.com/repos/4p00rv/binary-static-www2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/4p00rv/binary-static-www2/merges","archive_url":"https://api.github.com/repos/4p00rv/binary-static-www2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/4p00rv/binary-static-www2/downloads","issues_url":"https://api.github.com/repos/4p00rv/binary-static-www2/issues{/number}","pulls_url":"https://api.github.com/repos/4p00rv/binary-static-www2/pulls{/number}","milestones_url":"https://api.github.com/repos/4p00rv/binary-static-www2/milestones{/number}","notifications_url":"https://api.github.com/repos/4p00rv/binary-static-www2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/4p00rv/binary-static-www2/labels{/name}","releases_url":"https://api.github.com/repos/4p00rv/binary-static-www2/releases{/id}","deployments_url":"https://api.github.com/repos/4p00rv/binary-static-www2/deployments","created_at":"2016-02-08T18:32:11Z","updated_at":"2016-02-08T18:32:13Z","pushed_at":"2016-02-12T02:17:29Z","git_url":"git://github.com/4p00rv/binary-static-www2.git","ssh_url":"git@github.com:4p00rv/binary-static-www2.git","clone_url":"https://github.com/4p00rv/binary-static-www2.git","svn_url":"https://github.com/4p00rv/binary-static-www2","homepage":"https://www.binary.com","size":415490,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"binary-static:master","ref":"master","sha":"2576f3e0e10e745c1c1fe5bd16783b1d69e765f0","user":{"login":"binary-static","id":17081428,"avatar_url":"https://avatars.githubusercontent.com/u/17081428?v=3","gravatar_id":"","url":"https://api.github.com/users/binary-static","html_url":"https://github.com/binary-static","followers_url":"https://api.github.com/users/binary-static/followers","following_url":"https://api.github.com/users/binary-static/following{/other_user}","gists_url":"https://api.github.com/users/binary-static/gists{/gist_id}","starred_url":"https://api.github.com/users/binary-static/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binary-static/subscriptions","organizations_url":"https://api.github.com/users/binary-static/orgs","repos_url":"https://api.github.com/users/binary-static/repos","events_url":"https://api.github.com/users/binary-static/events{/privacy}","received_events_url":"https://api.github.com/users/binary-static/received_events","type":"Organization","site_admin":false},"repo":{"id":51139013,"name":"binary-static-www2","full_name":"binary-static/binary-static-www2","owner":{"login":"binary-static","id":17081428,"avatar_url":"https://avatars.githubusercontent.com/u/17081428?v=3","gravatar_id":"","url":"https://api.github.com/users/binary-static","html_url":"https://github.com/binary-static","followers_url":"https://api.github.com/users/binary-static/followers","following_url":"https://api.github.com/users/binary-static/following{/other_user}","gists_url":"https://api.github.com/users/binary-static/gists{/gist_id}","starred_url":"https://api.github.com/users/binary-static/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binary-static/subscriptions","organizations_url":"https://api.github.com/users/binary-static/orgs","repos_url":"https://api.github.com/users/binary-static/repos","events_url":"https://api.github.com/users/binary-static/events{/privacy}","received_events_url":"https://api.github.com/users/binary-static/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/binary-static/binary-static-www2","description":"Binary.com static content","fork":true,"url":"https://api.github.com/repos/binary-static/binary-static-www2","forks_url":"https://api.github.com/repos/binary-static/binary-static-www2/forks","keys_url":"https://api.github.com/repos/binary-static/binary-static-www2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/binary-static/binary-static-www2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/binary-static/binary-static-www2/teams","hooks_url":"https://api.github.com/repos/binary-static/binary-static-www2/hooks","issue_events_url":"https://api.github.com/repos/binary-static/binary-static-www2/issues/events{/number}","events_url":"https://api.github.com/repos/binary-static/binary-static-www2/events","assignees_url":"https://api.github.com/repos/binary-static/binary-static-www2/assignees{/user}","branches_url":"https://api.github.com/repos/binary-static/binary-static-www2/branches{/branch}","tags_url":"https://api.github.com/repos/binary-static/binary-static-www2/tags","blobs_url":"https://api.github.com/repos/binary-static/binary-static-www2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/binary-static/binary-static-www2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/binary-static/binary-static-www2/git/refs{/sha}","trees_url":"https://api.github.com/repos/binary-static/binary-static-www2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/binary-static/binary-static-www2/statuses/{sha}","languages_url":"https://api.github.com/repos/binary-static/binary-static-www2/languages","stargazers_url":"https://api.github.com/repos/binary-static/binary-static-www2/stargazers","contributors_url":"https://api.github.com/repos/binary-static/binary-static-www2/contributors","subscribers_url":"https://api.github.com/repos/binary-static/binary-static-www2/subscribers","subscription_url":"https://api.github.com/repos/binary-static/binary-static-www2/subscription","commits_url":"https://api.github.com/repos/binary-static/binary-static-www2/commits{/sha}","git_commits_url":"https://api.github.com/repos/binary-static/binary-static-www2/git/commits{/sha}","comments_url":"https://api.github.com/repos/binary-static/binary-static-www2/comments{/number}","issue_comment_url":"https://api.github.com/repos/binary-static/binary-static-www2/issues/comments{/number}","contents_url":"https://api.github.com/repos/binary-static/binary-static-www2/contents/{+path}","compare_url":"https://api.github.com/repos/binary-static/binary-static-www2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/binary-static/binary-static-www2/merges","archive_url":"https://api.github.com/repos/binary-static/binary-static-www2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/binary-static/binary-static-www2/downloads","issues_url":"https://api.github.com/repos/binary-static/binary-static-www2/issues{/number}","pulls_url":"https://api.github.com/repos/binary-static/binary-static-www2/pulls{/number}","milestones_url":"https://api.github.com/repos/binary-static/binary-static-www2/milestones{/number}","notifications_url":"https://api.github.com/repos/binary-static/binary-static-www2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/binary-static/binary-static-www2/labels{/name}","releases_url":"https://api.github.com/repos/binary-static/binary-static-www2/releases{/id}","deployments_url":"https://api.github.com/repos/binary-static/binary-static-www2/deployments","created_at":"2016-02-05T10:01:09Z","updated_at":"2016-02-09T02:01:59Z","pushed_at":"2016-02-12T02:35:23Z","git_url":"git://github.com/binary-static/binary-static-www2.git","ssh_url":"git@github.com:binary-static/binary-static-www2.git","clone_url":"https://github.com/binary-static/binary-static-www2.git","svn_url":"https://github.com/binary-static/binary-static-www2","homepage":"https://www.binary.com","size":414641,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/binary-static/binary-static-www2/pulls/9"},"html":{"href":"https://github.com/binary-static/binary-static-www2/pull/9"},"issue":{"href":"https://api.github.com/repos/binary-static/binary-static-www2/issues/9"},"comments":{"href":"https://api.github.com/repos/binary-static/binary-static-www2/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/binary-static/binary-static-www2/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/binary-static/binary-static-www2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/binary-static/binary-static-www2/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/binary-static/binary-static-www2/statuses/c2f2cc5ad6af368c6227fb0c051a6a5fadb131b9"}}}}