{"action":"created","comment":{"url":"https://api.github.com/repos/ampproject/amp-by-example/pulls/comments/68992371","id":68992371,"diff_hunk":"@@ -0,0 +1,78 @@\n+<!---{\n+    \"experiment\": true,\n+    \"component\": \"amp-form\",\n+    \"draft\": true\n+  }--->\n+<!--\n+  #### Introduction\n+\n+  The [amp-form](https://github.com/ampproject/amphtml/blob/master/extensions/amp-form/amp-form.md0) extension allows the usage of forms and input fields in an AMP document. `amp-form` allows HTTP and XHR (XMLHttpRequest) form submissions. A HTTP form submission loads a new page, while a XHR form submission doesn't require a page-reload.\n+-->\n+<!-- -->\n+<!doctype html>\n+<html ⚡>\n+<head>\n+  <meta charset=\"utf-8\">\n+  <!-- #### Setup -->\n+  <!--\n+    Import the library.\n+  -->\n+  <script async custom-element=\"amp-form\" src=\"https://cdn.ampproject.org/v0/amp-form-0.1.js\"></script>\n+  <script async custom-template=\"amp-mustache\" src=\"https://cdn.ampproject.org/v0/amp-mustache-0.1.js\"></script>\n+  <meta name=\"viewport\" content=\"width=device-width,minimum-scale=1,initial-scale=1\">\n+  <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>\n+  <script async src=\"https://cdn.ampproject.org/v0.js\"></script> \n+  <!-- \n+    Customize success or error messages by using `amp-form-submit-success` and `amp-form-submit-error` classes.\n+   -->\n+  <style amp-custom>\n+        form.amp-form-submit-success [submit-success],  \n+          form.amp-form-submit-error [submit-error]{\n+            margin-top: 4px;\n+            font-size: 20px;\n+        }\n+        form.amp-form-submit-success [submit-success] {\n+            color: #ff4081;\n+        }\n+        form.amp-form-submit-error [submit-error] {\n+            color: #dc4e41;\n+        }\n+        .button-submit {\n+          margin-top: 4px;\n+        }\n+    </style>\n+</head>\n+<body> \n+\n+  <!-- #### HTTP Request -->","path":"src/20_Components/amp-form.html","position":47,"original_position":47,"commit_id":"694f54c589dd04970d5409f072b160e7c7c57768","original_commit_id":"694f54c589dd04970d5409f072b160e7c7c57768","user":{"login":"sebastianbenz","id":380472,"avatar_url":"https://avatars.githubusercontent.com/u/380472?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastianbenz","html_url":"https://github.com/sebastianbenz","followers_url":"https://api.github.com/users/sebastianbenz/followers","following_url":"https://api.github.com/users/sebastianbenz/following{/other_user}","gists_url":"https://api.github.com/users/sebastianbenz/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastianbenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastianbenz/subscriptions","organizations_url":"https://api.github.com/users/sebastianbenz/orgs","repos_url":"https://api.github.com/users/sebastianbenz/repos","events_url":"https://api.github.com/users/sebastianbenz/events{/privacy}","received_events_url":"https://api.github.com/users/sebastianbenz/received_events","type":"User","site_admin":false},"body":"Both use HTTP Requests - I think something in the line of: \"Handling form input in a ne page\"","created_at":"2016-06-29T17:37:47Z","updated_at":"2016-06-29T17:37:47Z","html_url":"https://github.com/ampproject/amp-by-example/pull/228#discussion_r68992371","pull_request_url":"https://api.github.com/repos/ampproject/amp-by-example/pulls/228","_links":{"self":{"href":"https://api.github.com/repos/ampproject/amp-by-example/pulls/comments/68992371"},"html":{"href":"https://github.com/ampproject/amp-by-example/pull/228#discussion_r68992371"},"pull_request":{"href":"https://api.github.com/repos/ampproject/amp-by-example/pulls/228"}}},"pull_request":{"url":"https://api.github.com/repos/ampproject/amp-by-example/pulls/228","id":75558389,"html_url":"https://github.com/ampproject/amp-by-example/pull/228","diff_url":"https://github.com/ampproject/amp-by-example/pull/228.diff","patch_url":"https://github.com/ampproject/amp-by-example/pull/228.patch","issue_url":"https://api.github.com/repos/ampproject/amp-by-example/issues/228","number":228,"state":"open","locked":false,"title":"Amp form","user":{"login":"kul3r4","id":820891,"avatar_url":"https://avatars.githubusercontent.com/u/820891?v=3","gravatar_id":"","url":"https://api.github.com/users/kul3r4","html_url":"https://github.com/kul3r4","followers_url":"https://api.github.com/users/kul3r4/followers","following_url":"https://api.github.com/users/kul3r4/following{/other_user}","gists_url":"https://api.github.com/users/kul3r4/gists{/gist_id}","starred_url":"https://api.github.com/users/kul3r4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kul3r4/subscriptions","organizations_url":"https://api.github.com/users/kul3r4/orgs","repos_url":"https://api.github.com/users/kul3r4/repos","events_url":"https://api.github.com/users/kul3r4/events{/privacy}","received_events_url":"https://api.github.com/users/kul3r4/received_events","type":"User","site_admin":false},"body":"Example for amp-form with a standard and a XHR request.","created_at":"2016-06-28T22:03:54Z","updated_at":"2016-06-29T17:37:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"70a958ad5526ba23dfa6fe03071fd07c2d191525","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ampproject/amp-by-example/pulls/228/commits","review_comments_url":"https://api.github.com/repos/ampproject/amp-by-example/pulls/228/comments","review_comment_url":"https://api.github.com/repos/ampproject/amp-by-example/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ampproject/amp-by-example/issues/228/comments","statuses_url":"https://api.github.com/repos/ampproject/amp-by-example/statuses/694f54c589dd04970d5409f072b160e7c7c57768","head":{"label":"kul3r4:amp-form","ref":"amp-form","sha":"694f54c589dd04970d5409f072b160e7c7c57768","user":{"login":"kul3r4","id":820891,"avatar_url":"https://avatars.githubusercontent.com/u/820891?v=3","gravatar_id":"","url":"https://api.github.com/users/kul3r4","html_url":"https://github.com/kul3r4","followers_url":"https://api.github.com/users/kul3r4/followers","following_url":"https://api.github.com/users/kul3r4/following{/other_user}","gists_url":"https://api.github.com/users/kul3r4/gists{/gist_id}","starred_url":"https://api.github.com/users/kul3r4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kul3r4/subscriptions","organizations_url":"https://api.github.com/users/kul3r4/orgs","repos_url":"https://api.github.com/users/kul3r4/repos","events_url":"https://api.github.com/users/kul3r4/events{/privacy}","received_events_url":"https://api.github.com/users/kul3r4/received_events","type":"User","site_admin":false},"repo":{"id":52002202,"name":"amp-by-example","full_name":"kul3r4/amp-by-example","owner":{"login":"kul3r4","id":820891,"avatar_url":"https://avatars.githubusercontent.com/u/820891?v=3","gravatar_id":"","url":"https://api.github.com/users/kul3r4","html_url":"https://github.com/kul3r4","followers_url":"https://api.github.com/users/kul3r4/followers","following_url":"https://api.github.com/users/kul3r4/following{/other_user}","gists_url":"https://api.github.com/users/kul3r4/gists{/gist_id}","starred_url":"https://api.github.com/users/kul3r4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kul3r4/subscriptions","organizations_url":"https://api.github.com/users/kul3r4/orgs","repos_url":"https://api.github.com/users/kul3r4/repos","events_url":"https://api.github.com/users/kul3r4/events{/privacy}","received_events_url":"https://api.github.com/users/kul3r4/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kul3r4/amp-by-example","description":"Accelerated Mobile Pages in Action","fork":true,"url":"https://api.github.com/repos/kul3r4/amp-by-example","forks_url":"https://api.github.com/repos/kul3r4/amp-by-example/forks","keys_url":"https://api.github.com/repos/kul3r4/amp-by-example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kul3r4/amp-by-example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kul3r4/amp-by-example/teams","hooks_url":"https://api.github.com/repos/kul3r4/amp-by-example/hooks","issue_events_url":"https://api.github.com/repos/kul3r4/amp-by-example/issues/events{/number}","events_url":"https://api.github.com/repos/kul3r4/amp-by-example/events","assignees_url":"https://api.github.com/repos/kul3r4/amp-by-example/assignees{/user}","branches_url":"https://api.github.com/repos/kul3r4/amp-by-example/branches{/branch}","tags_url":"https://api.github.com/repos/kul3r4/amp-by-example/tags","blobs_url":"https://api.github.com/repos/kul3r4/amp-by-example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kul3r4/amp-by-example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kul3r4/amp-by-example/git/refs{/sha}","trees_url":"https://api.github.com/repos/kul3r4/amp-by-example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kul3r4/amp-by-example/statuses/{sha}","languages_url":"https://api.github.com/repos/kul3r4/amp-by-example/languages","stargazers_url":"https://api.github.com/repos/kul3r4/amp-by-example/stargazers","contributors_url":"https://api.github.com/repos/kul3r4/amp-by-example/contributors","subscribers_url":"https://api.github.com/repos/kul3r4/amp-by-example/subscribers","subscription_url":"https://api.github.com/repos/kul3r4/amp-by-example/subscription","commits_url":"https://api.github.com/repos/kul3r4/amp-by-example/commits{/sha}","git_commits_url":"https://api.github.com/repos/kul3r4/amp-by-example/git/commits{/sha}","comments_url":"https://api.github.com/repos/kul3r4/amp-by-example/comments{/number}","issue_comment_url":"https://api.github.com/repos/kul3r4/amp-by-example/issues/comments{/number}","contents_url":"https://api.github.com/repos/kul3r4/amp-by-example/contents/{+path}","compare_url":"https://api.github.com/repos/kul3r4/amp-by-example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kul3r4/amp-by-example/merges","archive_url":"https://api.github.com/repos/kul3r4/amp-by-example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kul3r4/amp-by-example/downloads","issues_url":"https://api.github.com/repos/kul3r4/amp-by-example/issues{/number}","pulls_url":"https://api.github.com/repos/kul3r4/amp-by-example/pulls{/number}","milestones_url":"https://api.github.com/repos/kul3r4/amp-by-example/milestones{/number}","notifications_url":"https://api.github.com/repos/kul3r4/amp-by-example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kul3r4/amp-by-example/labels{/name}","releases_url":"https://api.github.com/repos/kul3r4/amp-by-example/releases{/id}","deployments_url":"https://api.github.com/repos/kul3r4/amp-by-example/deployments","created_at":"2016-02-18T11:18:36Z","updated_at":"2016-02-18T11:18:36Z","pushed_at":"2016-06-29T17:23:51Z","git_url":"git://github.com/kul3r4/amp-by-example.git","ssh_url":"git@github.com:kul3r4/amp-by-example.git","clone_url":"https://github.com/kul3r4/amp-by-example.git","svn_url":"https://github.com/kul3r4/amp-by-example","homepage":"http://amp-by-example.appspot.com/","size":82245,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"ampproject:master","ref":"master","sha":"b0acb492315f25215341c6d1863395d0146f1f62","user":{"login":"ampproject","id":14114390,"avatar_url":"https://avatars.githubusercontent.com/u/14114390?v=3","gravatar_id":"","url":"https://api.github.com/users/ampproject","html_url":"https://github.com/ampproject","followers_url":"https://api.github.com/users/ampproject/followers","following_url":"https://api.github.com/users/ampproject/following{/other_user}","gists_url":"https://api.github.com/users/ampproject/gists{/gist_id}","starred_url":"https://api.github.com/users/ampproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ampproject/subscriptions","organizations_url":"https://api.github.com/users/ampproject/orgs","repos_url":"https://api.github.com/users/ampproject/repos","events_url":"https://api.github.com/users/ampproject/events{/privacy}","received_events_url":"https://api.github.com/users/ampproject/received_events","type":"Organization","site_admin":false},"repo":{"id":51327024,"name":"amp-by-example","full_name":"ampproject/amp-by-example","owner":{"login":"ampproject","id":14114390,"avatar_url":"https://avatars.githubusercontent.com/u/14114390?v=3","gravatar_id":"","url":"https://api.github.com/users/ampproject","html_url":"https://github.com/ampproject","followers_url":"https://api.github.com/users/ampproject/followers","following_url":"https://api.github.com/users/ampproject/following{/other_user}","gists_url":"https://api.github.com/users/ampproject/gists{/gist_id}","starred_url":"https://api.github.com/users/ampproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ampproject/subscriptions","organizations_url":"https://api.github.com/users/ampproject/orgs","repos_url":"https://api.github.com/users/ampproject/repos","events_url":"https://api.github.com/users/ampproject/events{/privacy}","received_events_url":"https://api.github.com/users/ampproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ampproject/amp-by-example","description":"A hands-on introduction to Accelerated Mobile Pages (AMP) focusing on code and live samples.","fork":false,"url":"https://api.github.com/repos/ampproject/amp-by-example","forks_url":"https://api.github.com/repos/ampproject/amp-by-example/forks","keys_url":"https://api.github.com/repos/ampproject/amp-by-example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ampproject/amp-by-example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ampproject/amp-by-example/teams","hooks_url":"https://api.github.com/repos/ampproject/amp-by-example/hooks","issue_events_url":"https://api.github.com/repos/ampproject/amp-by-example/issues/events{/number}","events_url":"https://api.github.com/repos/ampproject/amp-by-example/events","assignees_url":"https://api.github.com/repos/ampproject/amp-by-example/assignees{/user}","branches_url":"https://api.github.com/repos/ampproject/amp-by-example/branches{/branch}","tags_url":"https://api.github.com/repos/ampproject/amp-by-example/tags","blobs_url":"https://api.github.com/repos/ampproject/amp-by-example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ampproject/amp-by-example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ampproject/amp-by-example/git/refs{/sha}","trees_url":"https://api.github.com/repos/ampproject/amp-by-example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ampproject/amp-by-example/statuses/{sha}","languages_url":"https://api.github.com/repos/ampproject/amp-by-example/languages","stargazers_url":"https://api.github.com/repos/ampproject/amp-by-example/stargazers","contributors_url":"https://api.github.com/repos/ampproject/amp-by-example/contributors","subscribers_url":"https://api.github.com/repos/ampproject/amp-by-example/subscribers","subscription_url":"https://api.github.com/repos/ampproject/amp-by-example/subscription","commits_url":"https://api.github.com/repos/ampproject/amp-by-example/commits{/sha}","git_commits_url":"https://api.github.com/repos/ampproject/amp-by-example/git/commits{/sha}","comments_url":"https://api.github.com/repos/ampproject/amp-by-example/comments{/number}","issue_comment_url":"https://api.github.com/repos/ampproject/amp-by-example/issues/comments{/number}","contents_url":"https://api.github.com/repos/ampproject/amp-by-example/contents/{+path}","compare_url":"https://api.github.com/repos/ampproject/amp-by-example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ampproject/amp-by-example/merges","archive_url":"https://api.github.com/repos/ampproject/amp-by-example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ampproject/amp-by-example/downloads","issues_url":"https://api.github.com/repos/ampproject/amp-by-example/issues{/number}","pulls_url":"https://api.github.com/repos/ampproject/amp-by-example/pulls{/number}","milestones_url":"https://api.github.com/repos/ampproject/amp-by-example/milestones{/number}","notifications_url":"https://api.github.com/repos/ampproject/amp-by-example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ampproject/amp-by-example/labels{/name}","releases_url":"https://api.github.com/repos/ampproject/amp-by-example/releases{/id}","deployments_url":"https://api.github.com/repos/ampproject/amp-by-example/deployments","created_at":"2016-02-08T21:05:29Z","updated_at":"2016-06-28T14:15:22Z","pushed_at":"2016-06-29T17:23:51Z","git_url":"git://github.com/ampproject/amp-by-example.git","ssh_url":"git@github.com:ampproject/amp-by-example.git","clone_url":"https://github.com/ampproject/amp-by-example.git","svn_url":"https://github.com/ampproject/amp-by-example","homepage":"http://ampbyexample.com/","size":91427,"stargazers_count":129,"watchers_count":129,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":54,"mirror_url":null,"open_issues_count":50,"forks":54,"open_issues":50,"watchers":129,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ampproject/amp-by-example/pulls/228"},"html":{"href":"https://github.com/ampproject/amp-by-example/pull/228"},"issue":{"href":"https://api.github.com/repos/ampproject/amp-by-example/issues/228"},"comments":{"href":"https://api.github.com/repos/ampproject/amp-by-example/issues/228/comments"},"review_comments":{"href":"https://api.github.com/repos/ampproject/amp-by-example/pulls/228/comments"},"review_comment":{"href":"https://api.github.com/repos/ampproject/amp-by-example/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ampproject/amp-by-example/pulls/228/commits"},"statuses":{"href":"https://api.github.com/repos/ampproject/amp-by-example/statuses/694f54c589dd04970d5409f072b160e7c7c57768"}}}}
{"actor":{"display_login":"sebastianbenz"}}