GitHub PullRequestReviewCommentEvent at 2014-05-11 20:52:40
Repository: andygray.github.io
Actor: andygray
Payload: {"comment":{"url":"https://api.github.com/repos/andygray/andygray.github.io/pulls/comments/12510700","id":12510700,"diff_hunk":"@@ -1,115 +1,162 @@\n <html>\n \n <head>\n-    <link rel=\"stylesheet\" href=\"https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css\">\n-    <link rel=\"stylesheet\" href=\"https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css\">\n     <title>Summer League</title>\n+    <link href=\"stylesheets/screen.css\" media=\"screen, projection\" rel=\"stylesheet\" type=\"text/css\" /> \n+    <script src=\"http://code.jquery.com/jquery-latest.min.js\"\n+        type=\"text/javascript\"></script>\n+    <meta name=\"viewport\" content=\"initial-scale=1, maximum-scale=1\">\n+\n+<script>\n+$( document ).ready(function() {\n+    $('#leagueTable').hide();\n+    \n+    $( \".table\" ).click(function() {\n+\t$( \"#leagueTable\" ).fadeIn('fast');\n+\t$( \"#results\" ).fadeOut('fast');\n+\t$('li.table').addClass('selected');\n+\t$('li.table').siblings().removeClass('selected');\n+\t});\n+    \n+    $( \".results\" ).click(function() {\n+\t$( \"#results\" ).fadeIn('fast');\n+\t$( \"#leagueTable\").fadeOut('fast');\n+\t$('li.results').addClass('selected');\n+\t$('li.results').siblings().removeClass('selected');\n+\t});\n+\n+\t$(\"ul#scores li\").click(function() {\n+\t$(this).addClass('selected');\n+\t$(this).siblings().removeClass('selected');\n+\t});\n+});\n+</script>\n+\n+\n </head>\n \n <body ng-app=\"league\" ng-controller=\"LeagueCtrl\">\n \n-    <div class=\"well col-sm-6 col col-sm-offset-3\">\n-        <input type=\"button\" class=\"btn\" value=\"Table\" ng-click=\"showFixtures = false\"/>\n-        <input type=\"button\" class=\"btn\" value=\"Fixture\" ng-click=\"showFixtures = true\"/>\n-    </div>\n-\n-    <div ng-hide=\"showFixtures\">\n-        <div class=\"well col-sm-6 col col-sm-offset-3\">\n-            <table class=\"table table-striped\">\n-                <tr>\n-                    <th>Golfer</th>\n-                    <th>W</th>\n-                    <th>D</th>\n-                    <th>L</th>\n-                    <th>B</th>\n-                    <th>Pts</th>\n-                </tr>\n-                <tr ng-cloak ng-repeat=\"value in trows|orderBy:'(win * 3) + draw + bonus':true\">\n-                    <td>\n-                        <img src=\"http://graph.facebook.com/{{value.facebook}}/picture\" alt=\"{{ value.name }}\" class=\"img-circle\"> \n-                        {{ value.name }}\n-                    </td>\n-                    <td>{{ value.win }}</td>\n-                    <td>{{ value.draw }}</td>\n-                    <td>{{ value.lose }}</td>\n-                    <td>{{ value.bonus }}</td>\n-                    <td>{{ (value.win * 3) + value.draw + value.bonus }}</td>\n-                </tr>\n-            </table>\n-        </div>\n-    </div>\n-\n-    <div ng-show=\"showFixtures\">\n-        <div class=\"well col-sm-6 col-sm-offset-3\">\n-            <form name=\"fixform\" class=\"form-horizontal\" novalidate ng-submit=\"addFixture()\">\n-                <select class=\"form-control\" name=\"home\" ng-model=\"home\" required>\n-                    <option value=\"\">-- Select Golfer --</option>\n-                    <option ng-repeat=\"golfer in data.golfers\" value=\"{{ golfer.name }}\" />{{ golfer.name}}</option>\n-                </select>\n-                Vs.\n-                <select class=\"form-control\" name=\"away\" ng-model=\"away\" required>\n-                    <option value=\"\">-- Select Golfer --</option>\n-                    <option ng-repeat=\"golfer in data.golfers\" value=\"{{ golfer.name }}\" />{{ golfer.name}}</option>\n-                </select>\n-                Result:\n-                <select class=\"form-control\" name=\"result\" ng-model=\"result\" required>\n-                    <option value=\"\">-- Select Result --</option>\n-                    <option value=\"2 and 1\">2 and 1</option>\n-                    <option value=\"3 and 2\">3 and 2</option>\n-                    <option value=\"All Square\">All Square</option>\n-                    <option value=\"5 and 4\">5 and 4</option>\n-                </select>\n-                <input type=\"submit\" class=\"btn btn-success\" value=\"Add Result\" ng-disabled=\"fixform.$invalid\">\n-            </form>\n-        </div>\n-\n-        <div class=\"well col-sm-6 col-sm-offset-3\">\n-            <ul>\n-                <li ng-cloak ng-repeat=\"(key, fixture) in data.fixtures\">\n-                    <em>{{fixture.timestamp | date:'mediumDate'}}</em>\n-                    <span class=\"pull-right\">\n-                        {{fixture.result}}\n-                        <a href=\"\" ng-click=\"deleteFixture(key)\">X</a>\n-                    </span>\n-                </li>\n-            </ul>\n-        </div>\n-    </div>\n+\n+\t\t<div id=\"headerBar\">\n+\t\t\t<h1>CGCSL</h1>\n+\t\n+\t\t\t<ul>\n+\t\t\t\t<li class=\"table\">Table</li>\n+\t\t\t\t<li class=\" results selected\">Results</li>\n+\t\t\t</ul>\n+\t\t\t\n+\t\t</div>\n+\t\t\n+\t\t<div id=\"wrapper\">\n+\t\n+\t\t<div id=\"leagueTable\">\n+\t\t    <div class=\"well col-sm-6 col col-sm-offset-3\">\n+\t\t        <!--<pre>{{ table }}</pre>-->\n+\t\t        <table>\n+\t\t            <tr>\n+\t\t                <th class=\"golfer\">Golfer</th>\n+\t\t                <th class=\"win\">W</th>\n+\t\t                <th class=\"draw\">D</th>\n+\t\t                <th class=\"lost\">L</th>\n+\t\t                <th class=\"bonus\">B</th>\n+\t\t                <th class=\"pts\">Pts</th>\n+\t\t            </tr>\n+\t\t            <tr ng-cloak ng-repeat=\"value in trows|orderBy:'(win * 3) + draw':true\">\n+\t\t                <td class=\"golfer\">{{ value.name }}</td>\n+\t\t                <td class=\"win\">{{ value.win }}</td>\n+\t\t                <td class=\"draw\">{{ value.draw }}</td>\n+\t\t                <td class=\"lost\">{{ value.lose }}</td>\n+\t\t                <td class=\"bonus\">{{ value.bonus }}</td>\n+\t\t                <td class=\"pts\">{{ (value.win * 3) + value.draw }}</td>","path":"index.html","position":140,"original_position":140,"commit_id":"6b63e3aca63c47714427a75e9443fcb5de48df81","original_commit_id":"6b63e3aca63c47714427a75e9443fcb5de48df81","user":{"login":"andygray","id":1502550,"avatar_url":"https://avatars.githubusercontent.com/u/1502550?","gravatar_id":"fa8f8a94faafb40b24666f6f90d63f8f","url":"https://api.github.com/users/andygray","html_url":"https://github.com/andygray","followers_url":"https://api.github.com/users/andygray/followers","following_url":"https://api.github.com/users/andygray/following{/other_user}","gists_url":"https://api.github.com/users/andygray/gists{/gist_id}","starred_url":"https://api.github.com/users/andygray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andygray/subscriptions","organizations_url":"https://api.github.com/users/andygray/orgs","repos_url":"https://api.github.com/users/andygray/repos","events_url":"https://api.github.com/users/andygray/events{/privacy}","received_events_url":"https://api.github.com/users/andygray/received_events","type":"User","site_admin":false},"body":"The code you are working from is out of date. See I have bonus points etc in the version in red. ","created_at":"2014-05-11T20:52:40Z","updated_at":"2014-05-11T20:52:40Z","html_url":"https://github.com/andygray/andygray.github.io/pull/2#discussion_r12510700","pull_request_url":"https://api.github.com/repos/andygray/andygray.github.io/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/andygray/andygray.github.io/pulls/comments/12510700"},"html":{"href":"https://github.com/andygray/andygray.github.io/pull/2#discussion_r12510700"},"pull_request":{"href":"https://api.github.com/repos/andygray/andygray.github.io/pulls/2"}}}}