{"action":"created","comment":{"url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/pulls/comments/40414914","id":40414914,"diff_hunk":"@@ -0,0 +1,100 @@\n+(function ($) {\n+    $.fn.slider = function (options) {\n+        return this.each( function () {\n+            var uuid,\n+                options,\n+                $slideshowDiv,\n+                $element,\n+                slideTo,\n+                $prevSlideButton,\n+                $nextSlideButton,\n+                images,\n+                indicatorsDiv,\n+                indicator;\n+\n+            /**\n+             * Generating UUID of the element so that none could be doubled.\n+             */\n+            uuid = 'slider-' + $('.slideshow').length;\n+\n+            /**\n+             * Options of the slideshow.\n+             */\n+            options = $.extend({\n+                runWith: 0,\n+                activeSlide: 0\n+            }, options);\n+\n+            /**\n+             * Wrapping exisiting listed slides into the plugin's layer.\n+             */\n+            $slideshowDiv = $('<div/>', { id: uuid }).addClass('slideshow');\n+            $element = $(this);\n+            $element.wrap($slideshowDiv);\n+\n+            /**\n+             * Slides to the slide stated as argument passed or defaultly to first one.\n+             */\n+            slideTo = function (slide, sliderId) {\n+                slide = slide || options.runWith;\n+                sliderId = sliderId || uuid;\n+                options.activeSlide = slide;\n+\n+                //$element.css('left', ((+slide * 800) * -1) + 'px');","path":"js/slider.jquery.js","position":43,"original_position":43,"commit_id":"5d320c03eb17a9714e286648d3aa85b409072f58","original_commit_id":"5d320c03eb17a9714e286648d3aa85b409072f58","user":{"login":"Gruszks","id":35410,"avatar_url":"https://avatars.githubusercontent.com/u/35410?v=3","gravatar_id":"","url":"https://api.github.com/users/Gruszks","html_url":"https://github.com/Gruszks","followers_url":"https://api.github.com/users/Gruszks/followers","following_url":"https://api.github.com/users/Gruszks/following{/other_user}","gists_url":"https://api.github.com/users/Gruszks/gists{/gist_id}","starred_url":"https://api.github.com/users/Gruszks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gruszks/subscriptions","organizations_url":"https://api.github.com/users/Gruszks/orgs","repos_url":"https://api.github.com/users/Gruszks/repos","events_url":"https://api.github.com/users/Gruszks/events{/privacy}","received_events_url":"https://api.github.com/users/Gruszks/received_events","type":"User","site_admin":false},"body":"What is this?","created_at":"2015-09-25T09:51:12Z","updated_at":"2015-09-25T09:51:12Z","html_url":"https://github.com/stxnext-kindergarten/slider-dczapiewski/pull/4#discussion_r40414914","pull_request_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/pulls/comments/40414914"},"html":{"href":"https://github.com/stxnext-kindergarten/slider-dczapiewski/pull/4#discussion_r40414914"},"pull_request":{"href":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/pulls/4","id":45884279,"html_url":"https://github.com/stxnext-kindergarten/slider-dczapiewski/pull/4","diff_url":"https://github.com/stxnext-kindergarten/slider-dczapiewski/pull/4.diff","patch_url":"https://github.com/stxnext-kindergarten/slider-dczapiewski/pull/4.patch","issue_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/issues/4","number":4,"state":"open","locked":false,"title":"Added slider.","user":{"login":"damianc","id":4060481,"avatar_url":"https://avatars.githubusercontent.com/u/4060481?v=3","gravatar_id":"","url":"https://api.github.com/users/damianc","html_url":"https://github.com/damianc","followers_url":"https://api.github.com/users/damianc/followers","following_url":"https://api.github.com/users/damianc/following{/other_user}","gists_url":"https://api.github.com/users/damianc/gists{/gist_id}","starred_url":"https://api.github.com/users/damianc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damianc/subscriptions","organizations_url":"https://api.github.com/users/damianc/orgs","repos_url":"https://api.github.com/users/damianc/repos","events_url":"https://api.github.com/users/damianc/events{/privacy}","received_events_url":"https://api.github.com/users/damianc/received_events","type":"User","site_admin":false},"body":"https://bugzilla.stxnext.pl/show_bug.cgi?id=6235\r\nticket #6235","created_at":"2015-09-24T11:05:54Z","updated_at":"2015-09-25T09:51:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"01d1629f2425d7382308af7863ca77db2f47c741","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/pulls/4/commits","review_comments_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/pulls/4/comments","review_comment_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/issues/4/comments","statuses_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/statuses/5d320c03eb17a9714e286648d3aa85b409072f58","head":{"label":"damianc:bug_6235/slider","ref":"bug_6235/slider","sha":"5d320c03eb17a9714e286648d3aa85b409072f58","user":{"login":"damianc","id":4060481,"avatar_url":"https://avatars.githubusercontent.com/u/4060481?v=3","gravatar_id":"","url":"https://api.github.com/users/damianc","html_url":"https://github.com/damianc","followers_url":"https://api.github.com/users/damianc/followers","following_url":"https://api.github.com/users/damianc/following{/other_user}","gists_url":"https://api.github.com/users/damianc/gists{/gist_id}","starred_url":"https://api.github.com/users/damianc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damianc/subscriptions","organizations_url":"https://api.github.com/users/damianc/orgs","repos_url":"https://api.github.com/users/damianc/repos","events_url":"https://api.github.com/users/damianc/events{/privacy}","received_events_url":"https://api.github.com/users/damianc/received_events","type":"User","site_admin":false},"repo":{"id":42923992,"name":"slider-dczapiewski","full_name":"damianc/slider-dczapiewski","owner":{"login":"damianc","id":4060481,"avatar_url":"https://avatars.githubusercontent.com/u/4060481?v=3","gravatar_id":"","url":"https://api.github.com/users/damianc","html_url":"https://github.com/damianc","followers_url":"https://api.github.com/users/damianc/followers","following_url":"https://api.github.com/users/damianc/following{/other_user}","gists_url":"https://api.github.com/users/damianc/gists{/gist_id}","starred_url":"https://api.github.com/users/damianc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damianc/subscriptions","organizations_url":"https://api.github.com/users/damianc/orgs","repos_url":"https://api.github.com/users/damianc/repos","events_url":"https://api.github.com/users/damianc/events{/privacy}","received_events_url":"https://api.github.com/users/damianc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/damianc/slider-dczapiewski","description":"","fork":true,"url":"https://api.github.com/repos/damianc/slider-dczapiewski","forks_url":"https://api.github.com/repos/damianc/slider-dczapiewski/forks","keys_url":"https://api.github.com/repos/damianc/slider-dczapiewski/keys{/key_id}","collaborators_url":"https://api.github.com/repos/damianc/slider-dczapiewski/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/damianc/slider-dczapiewski/teams","hooks_url":"https://api.github.com/repos/damianc/slider-dczapiewski/hooks","issue_events_url":"https://api.github.com/repos/damianc/slider-dczapiewski/issues/events{/number}","events_url":"https://api.github.com/repos/damianc/slider-dczapiewski/events","assignees_url":"https://api.github.com/repos/damianc/slider-dczapiewski/assignees{/user}","branches_url":"https://api.github.com/repos/damianc/slider-dczapiewski/branches{/branch}","tags_url":"https://api.github.com/repos/damianc/slider-dczapiewski/tags","blobs_url":"https://api.github.com/repos/damianc/slider-dczapiewski/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/damianc/slider-dczapiewski/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/damianc/slider-dczapiewski/git/refs{/sha}","trees_url":"https://api.github.com/repos/damianc/slider-dczapiewski/git/trees{/sha}","statuses_url":"https://api.github.com/repos/damianc/slider-dczapiewski/statuses/{sha}","languages_url":"https://api.github.com/repos/damianc/slider-dczapiewski/languages","stargazers_url":"https://api.github.com/repos/damianc/slider-dczapiewski/stargazers","contributors_url":"https://api.github.com/repos/damianc/slider-dczapiewski/contributors","subscribers_url":"https://api.github.com/repos/damianc/slider-dczapiewski/subscribers","subscription_url":"https://api.github.com/repos/damianc/slider-dczapiewski/subscription","commits_url":"https://api.github.com/repos/damianc/slider-dczapiewski/commits{/sha}","git_commits_url":"https://api.github.com/repos/damianc/slider-dczapiewski/git/commits{/sha}","comments_url":"https://api.github.com/repos/damianc/slider-dczapiewski/comments{/number}","issue_comment_url":"https://api.github.com/repos/damianc/slider-dczapiewski/issues/comments{/number}","contents_url":"https://api.github.com/repos/damianc/slider-dczapiewski/contents/{+path}","compare_url":"https://api.github.com/repos/damianc/slider-dczapiewski/compare/{base}...{head}","merges_url":"https://api.github.com/repos/damianc/slider-dczapiewski/merges","archive_url":"https://api.github.com/repos/damianc/slider-dczapiewski/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/damianc/slider-dczapiewski/downloads","issues_url":"https://api.github.com/repos/damianc/slider-dczapiewski/issues{/number}","pulls_url":"https://api.github.com/repos/damianc/slider-dczapiewski/pulls{/number}","milestones_url":"https://api.github.com/repos/damianc/slider-dczapiewski/milestones{/number}","notifications_url":"https://api.github.com/repos/damianc/slider-dczapiewski/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/damianc/slider-dczapiewski/labels{/name}","releases_url":"https://api.github.com/repos/damianc/slider-dczapiewski/releases{/id}","created_at":"2015-09-22T09:20:06Z","updated_at":"2015-09-24T10:55:26Z","pushed_at":"2015-09-25T09:40:53Z","git_url":"git://github.com/damianc/slider-dczapiewski.git","ssh_url":"git@github.com:damianc/slider-dczapiewski.git","clone_url":"https://github.com/damianc/slider-dczapiewski.git","svn_url":"https://github.com/damianc/slider-dczapiewski","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":null,"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":"stxnext-kindergarten:master","ref":"master","sha":"89624e3e2786067728010d7356f787b86c08a4a1","user":{"login":"stxnext-kindergarten","id":5575308,"avatar_url":"https://avatars.githubusercontent.com/u/5575308?v=3","gravatar_id":"","url":"https://api.github.com/users/stxnext-kindergarten","html_url":"https://github.com/stxnext-kindergarten","followers_url":"https://api.github.com/users/stxnext-kindergarten/followers","following_url":"https://api.github.com/users/stxnext-kindergarten/following{/other_user}","gists_url":"https://api.github.com/users/stxnext-kindergarten/gists{/gist_id}","starred_url":"https://api.github.com/users/stxnext-kindergarten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stxnext-kindergarten/subscriptions","organizations_url":"https://api.github.com/users/stxnext-kindergarten/orgs","repos_url":"https://api.github.com/users/stxnext-kindergarten/repos","events_url":"https://api.github.com/users/stxnext-kindergarten/events{/privacy}","received_events_url":"https://api.github.com/users/stxnext-kindergarten/received_events","type":"Organization","site_admin":false},"repo":{"id":42922242,"name":"slider-dczapiewski","full_name":"stxnext-kindergarten/slider-dczapiewski","owner":{"login":"stxnext-kindergarten","id":5575308,"avatar_url":"https://avatars.githubusercontent.com/u/5575308?v=3","gravatar_id":"","url":"https://api.github.com/users/stxnext-kindergarten","html_url":"https://github.com/stxnext-kindergarten","followers_url":"https://api.github.com/users/stxnext-kindergarten/followers","following_url":"https://api.github.com/users/stxnext-kindergarten/following{/other_user}","gists_url":"https://api.github.com/users/stxnext-kindergarten/gists{/gist_id}","starred_url":"https://api.github.com/users/stxnext-kindergarten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stxnext-kindergarten/subscriptions","organizations_url":"https://api.github.com/users/stxnext-kindergarten/orgs","repos_url":"https://api.github.com/users/stxnext-kindergarten/repos","events_url":"https://api.github.com/users/stxnext-kindergarten/events{/privacy}","received_events_url":"https://api.github.com/users/stxnext-kindergarten/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stxnext-kindergarten/slider-dczapiewski","description":"","fork":false,"url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski","forks_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/forks","keys_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/teams","hooks_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/hooks","issue_events_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/issues/events{/number}","events_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/events","assignees_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/assignees{/user}","branches_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/branches{/branch}","tags_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/tags","blobs_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/git/refs{/sha}","trees_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/statuses/{sha}","languages_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/languages","stargazers_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/stargazers","contributors_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/contributors","subscribers_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/subscribers","subscription_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/subscription","commits_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/commits{/sha}","git_commits_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/git/commits{/sha}","comments_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/comments{/number}","issue_comment_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/issues/comments{/number}","contents_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/contents/{+path}","compare_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/merges","archive_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/downloads","issues_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/issues{/number}","pulls_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/pulls{/number}","milestones_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/milestones{/number}","notifications_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/labels{/name}","releases_url":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/releases{/id}","created_at":"2015-09-22T08:45:55Z","updated_at":"2015-09-22T08:45:55Z","pushed_at":"2015-09-25T09:40:53Z","git_url":"git://github.com/stxnext-kindergarten/slider-dczapiewski.git","ssh_url":"git@github.com:stxnext-kindergarten/slider-dczapiewski.git","clone_url":"https://github.com/stxnext-kindergarten/slider-dczapiewski.git","svn_url":"https://github.com/stxnext-kindergarten/slider-dczapiewski","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/pulls/4"},"html":{"href":"https://github.com/stxnext-kindergarten/slider-dczapiewski/pull/4"},"issue":{"href":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/issues/4"},"comments":{"href":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/stxnext-kindergarten/slider-dczapiewski/statuses/5d320c03eb17a9714e286648d3aa85b409072f58"}}}}