{"id":2475,"date":"2013-02-01T17:57:58","date_gmt":"2013-02-01T08:57:58","guid":{"rendered":"https:\/\/gunmagisgeek.com\/wordpress\/?p=2475"},"modified":"2014-01-18T15:35:07","modified_gmt":"2014-01-18T06:35:07","slug":"post-2475","status":"publish","type":"post","link":"https:\/\/gunmagisgeek.com\/blog\/fullcalendar\/2475","title":{"rendered":"[FullCalendar]\u30ab\u30ec\u30f3\u30c0\u30fc\u306b\u753b\u50cf\u3092\u8868\u793a\u3059\u308b"},"content":{"rendered":"<p><a href=\"http:\/\/shimz.me\/example\/fullcalenar\/03\/\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2013\/02\/fullcalimage.jpg\" alt=\"fullcalimage\" width=\"604\" height=\"451\" class=\"aligncenter size-full wp-image-2478\" srcset=\"https:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2013\/02\/fullcalimage.jpg 604w, https:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2013\/02\/fullcalimage-201x150.jpg 201w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/a><\/p>\n<p>Google\u30ab\u30ec\u30f3\u30c0\u30fc\u3063\u307d\u3044\u30ab\u30ec\u30f3\u30c0\u30fc\u3092\u4f5c\u6210\u3067\u304d\u308bjQuery\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u300c<a href=\"http:\/\/arshaw.com\/fullcalendar\/\">FullCalendar<\/a>\u300d<br \/>\n\u901a\u5e38\u3001\u30a4\u30d9\u30f3\u30c8\uff08\u4e88\u5b9a\uff09\u306f\u6587\u5b57\u3067\u3057\u304b\u767b\u9332\u3067\u304d\u307e\u305b\u3093\u304c\u3001\u3061\u3087\u3063\u3068\u3057\u305f\u5de5\u592b\u3067\u3001\u30ab\u30ec\u30f3\u30c0\u30fc\u306b\u753b\u50cf\u3092\u30a4\u30d9\u30f3\u30c8\u3068\u3057\u3066\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:js decode:true \" >$('#calendar').fullCalendar({\r\n    eventRender: function(events, element) {\r\n\tif(events.img){\r\n\t    $(element.context)  \/\/img\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u5b58\u5728\u3059\u308b\u30a4\u30d9\u30f3\u30c8\u3060\u3051title\u3092\u753b\u50cf\u306b\u5dee\u3057\u66ff\u3048\r\n\t\t.css(\"border-color\", \"transparent\")\r\n\t\t.css(\"background-color\", \"transparent\")\r\n\t\t.html('&lt;img class=\"photo\"  src=\"'+events.img+'\" \/&gt;');\r\n        }\r\n    },\r\n    events: [\r\n\t{\r\n\t    title: '\u901a\u5e38\u306e\u30a4\u30d9\u30f3\u30c8',\r\n\t    start: new Date(y, m, 15),\r\n\t},\t\t\t\r\n\t{\r\n\t    title: '\u753b\u50cf\u3000\u30a4\u30d9\u30f3\u30c8',\r\n\t    start: new Date(y, m, 1),\r\n\t    img:\"img2.jpg\"\t\t\t\t\t\r\n\t},\r\n\t{\r\n\t    title: '\u753b\u50cf\u3000\u30a4\u30d9\u30f3\u30c8',\r\n\t    start: new Date(y, m, 2),\r\n\t    img:\"img3.jpg\"\t\t\t\t\t\r\n\t}\r\n    ]\r\n});\r\n<\/pre>\n<p><a href=\"http:\/\/shimz.me\/example\/fullcalenar\/03\/\">example<\/a><\/p>\n<p>\u8cbc\u308a\u4ed8\u3051\u305f\u753b\u50cf\u3082\u30a4\u30d9\u30f3\u30c8\u306a\u306e\u3067\u3001\u30c9\u30e9\u30c3\u30b0\u3067\u79fb\u52d5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3010\u8ffd\u8a18\u3011<br \/>\nFullcalendar ver.1.6.4 \u3067\u306f\u4e0a\u8a18\u30b3\u30fc\u30c9\u3067\u306f\u753b\u50cf\u3092\u8868\u793a\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\n\u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:js mark:4 decode:true \" >$('#calendar').fullCalendar({\r\n    eventRender: function(events, element) {\r\n\tif(events.img){\r\n\t    $(element[0])  \/\/img\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u5b58\u5728\u3059\u308b\u30a4\u30d9\u30f3\u30c8\u3060\u3051title\u3092\u753b\u50cf\u306b\u5dee\u3057\u66ff\u3048\r\n\t    .css(\"border-color\", \"transparent\")\r\n\t    .css(\"background-color\", \"transparent\")\r\n\t    .html('&lt;img class=\"photo\"  src=\"'+events.img+'\" \/&gt;');\r\n\t}\r\n    },\r\n    events: [\r\n\t{\r\n\t    title: '\u901a\u5e38\u306e\u30a4\u30d9\u30f3\u30c8',\r\n\t    start: new Date(y, m, 15),\r\n\t},\t\t\t\r\n\t{\r\n\t    title: '\u753b\u50cf\u3000\u30a4\u30d9\u30f3\u30c8',\r\n\t    start: new Date(y, m, 1),\r\n\t    img:\"img2.jpg\"\t\t\t\t\t\r\n\t},\r\n\t{\r\n\t    title: '\u753b\u50cf\u3000\u30a4\u30d9\u30f3\u30c8',\r\n\t    start: new Date(y, m, 2),\r\n\t    img:\"img3.jpg\"\t\t\t\t\t\r\n\t}\r\n    ]\r\n});<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Google\u30ab\u30ec\u30f3\u30c0\u30fc\u3063\u307d\u3044\u30ab\u30ec\u30f3\u30c0\u30fc\u3092\u4f5c\u6210\u3067\u304d\u308b&hellip;<\/p>\n","protected":false},"author":1,"featured_media":2478,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[],"class_list":["post-2475","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-fullcalendar","has-post-thumbnail-archive"],"_links":{"self":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/2475","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/comments?post=2475"}],"version-history":[{"count":10,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/2475\/revisions"}],"predecessor-version":[{"id":2485,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/2475\/revisions\/2485"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/media\/2478"}],"wp:attachment":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/media?parent=2475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/categories?post=2475"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/tags?post=2475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}