{"action":"opened","number":8,"pull_request":{"url":"https://api.github.com/repos/danielgindi/jquery-backstretch/pulls/8","id":47727380,"html_url":"https://github.com/danielgindi/jquery-backstretch/pull/8","diff_url":"https://github.com/danielgindi/jquery-backstretch/pull/8.diff","patch_url":"https://github.com/danielgindi/jquery-backstretch/pull/8.patch","issue_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/issues/8","number":8,"state":"open","locked":false,"title":"Add backstretch.gravity()","user":{"login":"johnv-git","id":5587971,"avatar_url":"https://avatars.githubusercontent.com/u/5587971?v=3","gravatar_id":"","url":"https://api.github.com/users/johnv-git","html_url":"https://github.com/johnv-git","followers_url":"https://api.github.com/users/johnv-git/followers","following_url":"https://api.github.com/users/johnv-git/following{/other_user}","gists_url":"https://api.github.com/users/johnv-git/gists{/gist_id}","starred_url":"https://api.github.com/users/johnv-git/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnv-git/subscriptions","organizations_url":"https://api.github.com/users/johnv-git/orgs","repos_url":"https://api.github.com/users/johnv-git/repos","events_url":"https://api.github.com/users/johnv-git/events{/privacy}","received_events_url":"https://api.github.com/users/johnv-git/received_events","type":"User","site_admin":false},"body":"Added a new public method `gravity()` that sets the align/centered properties for standard compass directions NorthWest, North, NorthEast, West, Center, etc.  This is useful when one requires a different alignment for different images.  Use with trigger `backstretch.before`.\r\n\r\nvar images = [\"X\", \"Y\", \"Z\"];\r\nvar gravity = [\"NorthWest\", \"Center\", \"SouthEast\"];\r\n        $(window).on(\"backstretch.before\", function (e, instance, index) {\r\n            //console.log(\"Setting gravity for #\" + index + \" (\" + instance.images[index] + \") => \" + gravity[index]);\r\n            if (Math.abs(index) > gravity.length - 1) {\r\n              return;\r\n            }\r\n            // Set the specific gravity for this image.\r\n            instance.gravity(gravity[index]);\r\n        });","created_at":"2015-10-14T23:17:31Z","updated_at":"2015-10-14T23:17:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/pulls/8/commits","review_comments_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/pulls/8/comments","review_comment_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/issues/8/comments","statuses_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/statuses/26133b163765c7fd94e301996afd534984037bda","head":{"label":"johnv-git:master","ref":"master","sha":"26133b163765c7fd94e301996afd534984037bda","user":{"login":"johnv-git","id":5587971,"avatar_url":"https://avatars.githubusercontent.com/u/5587971?v=3","gravatar_id":"","url":"https://api.github.com/users/johnv-git","html_url":"https://github.com/johnv-git","followers_url":"https://api.github.com/users/johnv-git/followers","following_url":"https://api.github.com/users/johnv-git/following{/other_user}","gists_url":"https://api.github.com/users/johnv-git/gists{/gist_id}","starred_url":"https://api.github.com/users/johnv-git/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnv-git/subscriptions","organizations_url":"https://api.github.com/users/johnv-git/orgs","repos_url":"https://api.github.com/users/johnv-git/repos","events_url":"https://api.github.com/users/johnv-git/events{/privacy}","received_events_url":"https://api.github.com/users/johnv-git/received_events","type":"User","site_admin":false},"repo":{"id":44066607,"name":"jquery-backstretch","full_name":"johnv-git/jquery-backstretch","owner":{"login":"johnv-git","id":5587971,"avatar_url":"https://avatars.githubusercontent.com/u/5587971?v=3","gravatar_id":"","url":"https://api.github.com/users/johnv-git","html_url":"https://github.com/johnv-git","followers_url":"https://api.github.com/users/johnv-git/followers","following_url":"https://api.github.com/users/johnv-git/following{/other_user}","gists_url":"https://api.github.com/users/johnv-git/gists{/gist_id}","starred_url":"https://api.github.com/users/johnv-git/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnv-git/subscriptions","organizations_url":"https://api.github.com/users/johnv-git/orgs","repos_url":"https://api.github.com/users/johnv-git/repos","events_url":"https://api.github.com/users/johnv-git/events{/privacy}","received_events_url":"https://api.github.com/users/johnv-git/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/johnv-git/jquery-backstretch","description":"Backstretch is a simple jQuery plugin that allows you to add a dynamically-resized, slideshow-capable background image to any page or element. The image will stretch to fit the page/element, and will automatically resize as the window/element size changes.","fork":true,"url":"https://api.github.com/repos/johnv-git/jquery-backstretch","forks_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/forks","keys_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/teams","hooks_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/hooks","issue_events_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/issues/events{/number}","events_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/events","assignees_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/assignees{/user}","branches_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/branches{/branch}","tags_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/tags","blobs_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/git/refs{/sha}","trees_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/statuses/{sha}","languages_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/languages","stargazers_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/stargazers","contributors_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/contributors","subscribers_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/subscribers","subscription_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/subscription","commits_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/commits{/sha}","git_commits_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/git/commits{/sha}","comments_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/comments{/number}","issue_comment_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/issues/comments{/number}","contents_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/contents/{+path}","compare_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/merges","archive_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/downloads","issues_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/issues{/number}","pulls_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/pulls{/number}","milestones_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/milestones{/number}","notifications_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/labels{/name}","releases_url":"https://api.github.com/repos/johnv-git/jquery-backstretch/releases{/id}","created_at":"2015-10-11T19:37:42Z","updated_at":"2015-10-11T19:37:45Z","pushed_at":"2015-10-11T19:44:10Z","git_url":"git://github.com/johnv-git/jquery-backstretch.git","ssh_url":"git@github.com:johnv-git/jquery-backstretch.git","clone_url":"https://github.com/johnv-git/jquery-backstretch.git","svn_url":"https://github.com/johnv-git/jquery-backstretch","homepage":"http://srobbin.com/jquery-plugins/backstretch/","size":9006,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"danielgindi:master","ref":"master","sha":"0641c74a43621cf15f0e685957f801d34c4aeed3","user":{"login":"danielgindi","id":366926,"avatar_url":"https://avatars.githubusercontent.com/u/366926?v=3","gravatar_id":"","url":"https://api.github.com/users/danielgindi","html_url":"https://github.com/danielgindi","followers_url":"https://api.github.com/users/danielgindi/followers","following_url":"https://api.github.com/users/danielgindi/following{/other_user}","gists_url":"https://api.github.com/users/danielgindi/gists{/gist_id}","starred_url":"https://api.github.com/users/danielgindi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielgindi/subscriptions","organizations_url":"https://api.github.com/users/danielgindi/orgs","repos_url":"https://api.github.com/users/danielgindi/repos","events_url":"https://api.github.com/users/danielgindi/events{/privacy}","received_events_url":"https://api.github.com/users/danielgindi/received_events","type":"User","site_admin":false},"repo":{"id":41718029,"name":"jquery-backstretch","full_name":"danielgindi/jquery-backstretch","owner":{"login":"danielgindi","id":366926,"avatar_url":"https://avatars.githubusercontent.com/u/366926?v=3","gravatar_id":"","url":"https://api.github.com/users/danielgindi","html_url":"https://github.com/danielgindi","followers_url":"https://api.github.com/users/danielgindi/followers","following_url":"https://api.github.com/users/danielgindi/following{/other_user}","gists_url":"https://api.github.com/users/danielgindi/gists{/gist_id}","starred_url":"https://api.github.com/users/danielgindi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielgindi/subscriptions","organizations_url":"https://api.github.com/users/danielgindi/orgs","repos_url":"https://api.github.com/users/danielgindi/repos","events_url":"https://api.github.com/users/danielgindi/events{/privacy}","received_events_url":"https://api.github.com/users/danielgindi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danielgindi/jquery-backstretch","description":"Backstretch is a simple jQuery plugin that allows you to add a dynamically-resized, slideshow-capable background image to any page or element. The image will stretch to fit the page/element, and will automatically resize as the window/element size changes.","fork":true,"url":"https://api.github.com/repos/danielgindi/jquery-backstretch","forks_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/forks","keys_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/teams","hooks_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/hooks","issue_events_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/issues/events{/number}","events_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/events","assignees_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/assignees{/user}","branches_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/branches{/branch}","tags_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/tags","blobs_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/git/refs{/sha}","trees_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/statuses/{sha}","languages_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/languages","stargazers_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/stargazers","contributors_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/contributors","subscribers_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/subscribers","subscription_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/subscription","commits_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/commits{/sha}","git_commits_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/git/commits{/sha}","comments_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/comments{/number}","issue_comment_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/issues/comments{/number}","contents_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/contents/{+path}","compare_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/merges","archive_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/downloads","issues_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/issues{/number}","pulls_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/pulls{/number}","milestones_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/milestones{/number}","notifications_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/labels{/name}","releases_url":"https://api.github.com/repos/danielgindi/jquery-backstretch/releases{/id}","created_at":"2015-09-01T05:06:36Z","updated_at":"2015-10-13T09:35:52Z","pushed_at":"2015-09-30T07:04:33Z","git_url":"git://github.com/danielgindi/jquery-backstretch.git","ssh_url":"git@github.com:danielgindi/jquery-backstretch.git","clone_url":"https://github.com/danielgindi/jquery-backstretch.git","svn_url":"https://github.com/danielgindi/jquery-backstretch","homepage":"http://srobbin.com/jquery-plugins/backstretch/","size":9064,"stargazers_count":19,"watchers_count":19,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/danielgindi/jquery-backstretch/pulls/8"},"html":{"href":"https://github.com/danielgindi/jquery-backstretch/pull/8"},"issue":{"href":"https://api.github.com/repos/danielgindi/jquery-backstretch/issues/8"},"comments":{"href":"https://api.github.com/repos/danielgindi/jquery-backstretch/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/danielgindi/jquery-backstretch/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/danielgindi/jquery-backstretch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/danielgindi/jquery-backstretch/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/danielgindi/jquery-backstretch/statuses/26133b163765c7fd94e301996afd534984037bda"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":23,"deletions":0,"changed_files":2}}