{"id":288,"date":"2017-11-01T20:48:30","date_gmt":"2017-11-01T11:48:30","guid":{"rendered":"https:\/\/www.dogrow.net\/hp\/?p=288"},"modified":"2018-02-11T21:37:06","modified_gmt":"2018-02-11T12:37:06","slug":"blog26","status":"publish","type":"post","link":"https:\/\/www.dogrow.net\/hp\/blog26\/","title":{"rendered":"(26) \u30da\u30fc\u30b8\u30c8\u30c3\u30d7\u306b\u623b\u308b\u30dc\u30bf\u30f3"},"content":{"rendered":"<h1 class=\"my_h\">(1) \u3084\u308a\u305f\u3044\u3053\u3068<\/h1>\n<p>\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u304c\u7e26\u306b\u9577\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3068\u304d\u3001\u4e00\u6c17\u306b\u30da\u30fc\u30b8\u5148\u982d\u306b\u623b\u308a\u305f\u3044\u6642\u304c\u3042\u308b\u3002<\/p>\n<p>\u30d1\u30bd\u30b3\u30f3\u3067\u306e\u95b2\u89a7\u6642\u306b\u306f\u30ad\u30fc\u64cd\u4f5c\u3067\u4e00\u6c17\u306b\u623b\u308c\u305f\u308a\u3059\u308b\u306e\u3067\u5fc5\u8981\u306b\u611f\u3058\u308b\u3053\u3068\u306f\u5c11\u306a\u3044\u304c\u3001<br \/>\n\u643a\u5e2f\u3084\u30b9\u30de\u30db\u3067\u306f\u64cd\u4f5c\u624b\u6bb5\u304c\u9650\u3089\u308c\u308b\u305f\u3081\u3001\u4e00\u62bc\u3057\u3067\u5148\u982d\u306b\u623b\u308c\u308b\u30dc\u30bf\u30f3\u304c\u3042\u308b\u3068\u4fbf\u5229\u3060\u3002<\/p>\n<p>\u4eca\u56de\u306f\u4ee5\u4e0b\u306e\u4ed5\u69d8\u3067\u300c\u30da\u30fc\u30b8\u30c8\u30c3\u30d7\u306b\u623b\u308b\u30dc\u30bf\u30f3\u300d\u3092\u5b9f\u88c5\u3057\u3066\u307f\u308b\u3002<br \/>\n1) \u3042\u308b\u7a0b\u5ea6\u4e0b\u65b9\u5411\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u305f\u3068\u304d\u306b\u30dc\u30bf\u30f3\u304c\u51fa\u73fe\u3059\u308b\u3053\u3068\u3002<br \/>\n2) \u30dc\u30bf\u30f3\u306f\u5e38\u306b\u753b\u9762\u306e\u53f3\u4e0b\u306b\u8868\u793a\u3059\u308b\u3053\u3068\u3002<br \/>\n3) \u30dc\u30bf\u30f3\u62bc\u4e0b\u6642\u306f\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u306a\u304c\u3089\u30da\u30fc\u30b8\u30c8\u30c3\u30d7\u306b\u623b\u308b\u3053\u3068\u3002<\/p>\n<h1 class=\"my_h\">(2) \u5b9f\u73fe\u65b9\u6cd5<\/h1>\n<p>\u5b9f\u88c5\u3057\u305f\u30b5\u30f3\u30d7\u30eb\u30da\u30fc\u30b8\u306f\u3053\u3061\u3089\u3002<br \/>\n<a href=\"https:\/\/www.dogrow.net\/hp\/sample\/00026\/\" target=\"_blank\">https:\/\/www.dogrow.net\/hp\/sample\/00026\/<\/a><\/p>\n<p>\u81ea\u5206\u306e\u982d\u306e\u4e2d\u3092\u6574\u7406\u3059\u308b\u305f\u3081\u306b\u3001HTML, CSS, JS\u306e 3\u30d5\u30a1\u30a4\u30eb\u306b\u5206\u3051\u3066\u5b9f\u88c5\u3059\u308b\u3002<\/p>\n<h3 class=\"my_h\">1) index.html<\/h3>\n<p>17\u884c\u76ee\uff1a\u300c\u30da\u30fc\u30b8\u5148\u982d\u306b\u623b\u308b\u30dc\u30bf\u30f3\u300d\u3092\u914d\u7f6e\u3057\u3066\u3044\u308b\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;meta charset=&quot;utf-8&quot;&gt;\r\n&lt;link rel=&quot;stylesheet&quot; href=&quot;.\/style.css&quot; \/&gt;\r\n&lt;script type=&quot;text\/javascript&quot; src=&quot;\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.1.1\/jquery.min.js&quot;&gt;&lt;\/script&gt;\r\n&lt;script type=&quot;text\/javascript&quot; src=&quot;.\/script.js&quot;&gt;&lt;\/script&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n\r\n&lt;h1&gt;\u30da\u30fc\u30b8\u5148\u982d\u3067\u3059\u3002&lt;\/h1&gt;\r\n\r\n&lt;div style=&quot;height:2000px;padding:10px;border:2px #000 solid;background-color:#eee;text-align:center;&quot;&gt;\r\n\u9577\u3044\u30b3\u30f3\u30c6\u30f3\u30c4\r\n&lt;\/div&gt;\r\n\r\n&lt;div class=&quot;pagetop_button&quot;&gt;\u2191\u623b\u308b\u2191&lt;\/div&gt;\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<h3 class=\"my_h\">2) style.css<\/h3>\n<p>4\u884c\u76ee: \u4ed6\u306e\u8981\u7d20\u306b\u96a0\u308c\u308b\u3053\u3068\u306a\u304f\u5e38\u306b\u8868\u793a\u3055\u305b\u308b\u305f\u3081\u3002<br \/>\n5\u884c\u76ee: \u30da\u30fc\u30b8\u8868\u793a\u306e\u521d\u671f\u72b6\u614b\u3067\u306f\u975e\u8868\u793a\u3002\u30b9\u30af\u30ed\u30fc\u30eb\u6642\u306bjs\u3067\u8868\u793a\u306b\u5207\u308a\u66ff\u3048\u3066\u3044\u308b\u3002<br \/>\n6\u884c\u76ee\uff5e8\u884c\u76ee: \u30da\u30fc\u30b8\u4e0a\u3067\u306e\u8868\u793a\u4f4d\u7f6e\u3092\u56fa\u5b9a\u306b\u3059\u308b\u3002<br \/>\n11\u884c\u76ee\u4ee5\u4e0b\u306f\u898b\u305f\u76ee\u3092\u98fe\u3063\u305f\u3060\u3051\u306a\u306e\u3067\u3001\u6a5f\u80fd\u3092\u5b9f\u73fe\u3059\u308b\u4e0a\u3067\u306f\u4e0d\u8981\u306a\u3082\u306e\u3002<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\r\n@charset &quot;UTF-8&quot;;\r\n\r\ndiv.pagetop_button{\r\n  z-index: 9999;\r\n  display: none;\r\n  position: fixed;\r\n  bottom: 20px;\r\n  right:  20px;\r\n}\r\n\r\n\/* \u4ee5\u4e0b\u3001\u5225\u306b\u306a\u304f\u3066\u3082\u3088\u3044\u88c5\u98fe *\/\r\ndiv.pagetop_button{\r\n  padding: 5px;\r\n  background-color: #fff;\r\n  border: 1px #f00 solid;\r\n  border-radius: 5px;\r\n  cursor:pointer;\r\n}\r\n<\/pre>\n<h3 class=\"my_h\">3) script.js<\/h3>\n<p>5\u884c\u76ee: 300\u30d4\u30af\u30bb\u30eb\u3092\u8d85\u3048\u3066\u4e0b\u65b9\u5411\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u305f\u306a\u3089\u3070\u30dc\u30bf\u30f3\u3092\u8868\u793a<br \/>\n7\u884c\u76ee: 300\u30d4\u30af\u30bb\u30eb\u4ee5\u4e0b\u306a\u3089\u3070\u30dc\u30bf\u30f3\u3092\u975e\u8868\u793a<br \/>\n13\u884c\u76ee: \u30dc\u30bf\u30f3\u304c\u62bc\u3055\u308c\u305f\u306a\u3089\u3070\u30011000ms\u306e\u6642\u9593\u3092\u304b\u3051\u3066\u30b9\u30af\u30ed\u30fc\u30eb\u91cf0\u306e\u4f4d\u7f6e\u307e\u3067\u79fb\u52d5\u3059\u308b\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n$(function(){\r\n  var pagetop_button = $('.pagetop_button');\r\n  \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\r\n  $(window).scroll(function(){\r\n    if ($(this).scrollTop() &gt; 300){\r\n      pagetop_button.fadeIn();\r\n    }else{\r\n      pagetop_button.fadeOut();\r\n    }\r\n  });\r\n  \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\r\n  pagetop_button.click(function(){\r\n    $('html,body').animate({scrollTop:0}, 1000);\r\n  });\r\n});\r\n<\/pre>\n<hr class=\"my_hr_bottom\">\n","protected":false},"excerpt":{"rendered":"<p>(1) \u3084\u308a\u305f\u3044\u3053\u3068 \u30db\u30fc\u30e0\u30da\u30fc\u30b8\u304c\u7e26\u306b\u9577\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3068\u304d\u3001\u4e00\u6c17\u306b\u30da\u30fc\u30b8\u5148\u982d\u306b\u623b\u308a\u305f\u3044\u6642\u304c\u3042\u308b\u3002 \u30d1\u30bd\u30b3\u30f3\u3067\u306e\u95b2\u89a7\u6642\u306b\u306f\u30ad\u30fc\u64cd\u4f5c\u3067\u4e00\u6c17\u306b\u623b\u308c\u305f\u308a\u3059\u308b\u306e\u3067\u5fc5\u8981\u306b\u611f\u3058\u308b\u3053\u3068\u306f\u5c11\u306a\u3044\u304c\u3001 \u643a\u5e2f\u3084\u30b9\u30de\u30db\u3067\u306f\u64cd\u4f5c\u624b\u6bb5\u304c\u9650\u3089\u308c\u308b\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.dogrow.net\/hp\/blog26\/\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-288","post","type-post","status-publish","format-standard","hentry","category-javascriptjquery"],"views":1567,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/posts\/288","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/comments?post=288"}],"version-history":[{"count":15,"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/posts\/288\/revisions"}],"predecessor-version":[{"id":349,"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/posts\/288\/revisions\/349"}],"wp:attachment":[{"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/media?parent=288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/categories?post=288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/tags?post=288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}