{"id":8865,"date":"2016-11-09T06:00:29","date_gmt":"2016-11-08T21:00:29","guid":{"rendered":"https:\/\/www.suzukikenichi.com\/blog\/?p=8865"},"modified":"2016-11-09T05:22:10","modified_gmt":"2016-11-08T20:22:10","slug":"amp-supports-form","status":"publish","type":"post","link":"https:\/\/www.suzukikenichi.com\/blog\/amp-supports-form\/","title":{"rendered":"AMP\u304c\u30d5\u30a9\u30fc\u30e0\u3092\u30b5\u30dd\u30fc\u30c8\u3001amp-form\u306e\u5b9f\u88c5\u3067\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u767b\u9332\u3084EC\u30b5\u30a4\u30c8\u306e\u30ab\u30e9\u30fc\u9078\u629e\u306a\u3069\u304c\u53ef\u80fd\u306b"},"content":{"rendered":"<p class=\"p20-b al-r small\">[\u30ec\u30d9\u30eb: \u4e0a\u7d1a]<\/p>\n<p class=\"p60-b\">AMP\u304c\u6b63\u5f0f\u306b<a href=\"https:\/\/amphtml.wordpress.com\/2016\/10\/31\/forms-now-supported-in-amp\/\">\u30d5\u30a9\u30fc\u30e0\u3092\u30b5\u30dd\u30fc\u30c8<\/a>\u3057\u307e\u3057\u305f\u3002<br \/>\n<code>&lt;form&gt;<\/code> \u8981\u7d20\u3068 <code>&lt;input&gt;<\/code> \u8981\u7d20\u3092\u4f7f\u7528\u3057\u305f\u30d5\u30a9\u30fc\u30e0\u6a5f\u80fd\u304cAMP\u30da\u30fc\u30b8\u3067\u3082\u5229\u7528\u3067\u304d\u307e\u3059\u3002<br \/>\n\u30d5\u30a9\u30fc\u30e0\u3092\u5229\u7528\u3059\u308b\u3068\u305f\u3068\u3048\u3070\u3001\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u767b\u9332\u3084\u30b5\u30a4\u30c8\u5185\u691c\u7d22\u3001EC\u30b5\u30a4\u30c8\u3067\u306e\u30ab\u30e9\u30fc\u9078\u629e\u306a\u3069\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u306b\u5fdc\u3058\u305f\u64cd\u4f5c\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>amp-form\u3067\u30d5\u30a9\u30fc\u30e0\u3092\u5b9f\u88c5<\/h2>\n<p>AMP\u30da\u30fc\u30b8\u3067\u30d5\u30a9\u30fc\u30e0\u3092\u5b9f\u88c5\u3059\u308b\u305f\u3081\u306b\u306f\u3001<a href=\"https:\/\/www.ampproject.org\/docs\/reference\/components\/amp-form\"><code>&lt;amp-form&gt;<\/code><\/a> \u62e1\u5f35\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30fc\u30c9\u306e\u4f8b\u3067\u3059\u3002<\/p>\n<pre style=\"overflow-x: auto\"><code class=\"green\">&lt;form method=\"post\" action-xhr=\"https:\/\/example.com\/subscribe\" target=\"_blank\"&gt;\r\n    &lt;fieldset&gt;\r\n        &lt;label&gt;\r\n            &lt;span&gt;Your name&lt;\/span&gt;\r\n            &lt;input type=\"text\" name=\"name\" required&gt;\r\n        &lt;\/label&gt;\r\n        &lt;label&gt;\r\n            &lt;span&gt;Your email&lt;\/span&gt;\r\n            &lt;input type=\"email\" name=\"email\" required&gt;\r\n        &lt;\/label&gt;\r\n        &lt;input type=\"submit\" value=\"Subscribe\"&gt;\r\n    &lt;\/fieldset&gt;\r\n    &lt;div submit-success&gt;\r\n        &lt;template type=\"amp-mustache\"&gt;\r\n            Subscription successful!\r\n        &lt;\/template&gt;\r\n    &lt;\/div&gt;\r\n    &lt;div submit-failed&gt;\r\n        &lt;template type=\"amp-mustache\"&gt;\r\n            Subscription failed!\r\n        &lt;\/template&gt;\r\n    &lt;\/div&gt;\r\n&lt;\/form&gt;<\/code><\/pre>\n<p class=\"p40-t\">\u3053\u3061\u3089\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3GIF\u306f\u3001<code>amp-form<\/code> \u3092\u4f7f\u3063\u305f\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u767b\u9332\u3059\u308b\u5834\u9762\u306e\u30c7\u30e2\u3067\u3059\u3002<br \/>\n\u540d\u524d\u3068\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3001SUBSCRIBE\uff08\u8cfc\u8aad\uff09\u30dc\u30bf\u30f3\u3092\u30bf\u30c3\u30d7\u3059\u308b\u3068\u3001&#8221;Success!&#8221;\uff08\u6210\u529f\uff09\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8fd4\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" itemprop=\"image\" src=\"\/\/www.suzukikenichi.com\/images\/amp-form.gif\" alt=\"amp-form\u3092\u4f7f\u3063\u305fAMP\u30da\u30fc\u30b8\u3067\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u767b\u9332\" width=\"500\" height=\"896\" \/><\/p>\n<p class=\"p60-t\">AMP\u30da\u30fc\u30b8\u3067\u30d5\u30a9\u30fc\u30e0\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u3068\u3067\u304d\u308b\u3053\u3068\u304c\u5897\u3048\u3066\u304d\u307e\u3059\u3002<br \/>\nAMP\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u30b5\u30a4\u30c8\u7ba1\u7406\u8005\u306e\u306a\u304b\u306b\u306f\u3001\u3068\u3066\u3082\u5b09\u3057\u3044\u30cb\u30e5\u30fc\u30b9\u3068\u3057\u3066\u53d7\u3051\u53d6\u308b\u4eba\u3082\u3044\u308b\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p><code>amp-form<\/code>\u306e\u8a73\u7d30\u306f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u4e00\u90e8\u306e\u6a5f\u80fd\u306f\u307e\u3060\u5b9f\u9a13\u6bb5\u968e\u3067\u3059\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/www.ampproject.org\/docs\/reference\/components\/amp-form\">amp-form &#8211; Accelerated Mobile Pages Project<\/a><\/li>\n<li><a href=\"https:\/\/ampbyexample.com\/components\/amp-form\/\">amp-form &#8211; AMP by Example<\/a><\/li>\n<\/ul>\n<p>\u516c\u5f0f\u30a2\u30ca\u30a6\u30f3\u30b9\u306f<a href=\"https:\/\/googledevjp.blogspot.jp\/2016\/11\/forms-now-supported-in-amp.html\">\u65e5\u672c\u8a9e\u8a33<\/a>\u3082\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AMP\u304c\u6b63\u5f0f\u306b\u30d5\u30a9\u30fc\u30e0\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u305f\u3002form\u8981\u7d20\u3068input\u8981\u7d20\u3092\u4f7f\u7528\u3057\u305f\u30d5\u30a9\u30fc\u30e0\u6a5f\u80fd\u304cAMP\u30da\u30fc\u30b8\u3067\u3082\u5229\u7528\u3067\u304d\u308b\u3002\u30d5\u30a9\u30fc\u30e0\u3092\u5229\u7528\u3059\u308b\u3068\u305f\u3068\u3048\u3070\u3001\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u767b\u9332\u3084\u30b5\u30a4\u30c8\u5185\u691c\u7d22\u3001EC\u30b5\u30a4\u30c8\u3067\u306e\u30ab\u30e9\u30fc\u9078\u629e\u306a\u3069\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u306b\u5fdc\u3058\u305f\u64cd\u4f5c\u304c\u53ef\u80fd\u306b\u306a\u308b\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1179],"tags":[1228,1292],"class_list":["post-8865","post","type-post","status-publish","format-standard","category-mobile-seo","tag-amp-accelerated-mobile-pages","tag-amp-form"],"_links":{"self":[{"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/posts\/8865","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/comments?post=8865"}],"version-history":[{"count":0,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/posts\/8865\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/media?parent=8865"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/categories?post=8865"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/tags?post=8865"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}