{"id":12511,"date":"2013-09-17T20:59:39","date_gmt":"2013-09-17T11:59:39","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=12511"},"modified":"2013-09-17T20:59:39","modified_gmt":"2013-09-17T11:59:39","slug":"clndr-js","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/clndr-js\/","title":{"rendered":"\u7f8e\u3057\u3044\u30c7\u30b6\u30a4\u30f3\u306ejQuery\u30ab\u30ec\u30f3\u30c0\u30fc\u30d7\u30e9\u30b0\u30a4\u30f3\u300cCLNDR.js\u300d"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2013\/09\/blogCLNDR.js.png\" alt=\"CLNDR js\" title=\"CLNDR.js.png\" border=\"0\" width=\"560\" height=\"349\" \/><\/p>\n<p>\u300c<a href=\"http:\/\/kylestetz.github.io\/CLNDR\/\">CLNDR.js<\/a>\u300d\u306f\u30ab\u30ec\u30f3\u30c0\u30fc\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306ejQuery\u30d7\u30e9\u30b0\u30a4\u30f3\u3002\u4ed6\u306e\u30ab\u30ec\u30f3\u30c0\u30fc\u30d7\u30e9\u30b0\u30a4\u30f3\u3068\u9055\u3063\u3066\u76f4\u63a5\u30de\u30fc\u30af\u30a2\u30c3\u30d7\u3092\u751f\u6210\u305b\u305a\u3001Underscore.js\u306eHTML\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u3046\u3068\u3053\u308d\u304c\u7279\u5fb4\u306e\u3088\u3046\u3067\u3059\u3002<br \/>\n<!--more--><\/p>\n<h3>\u57fa\u672c\u7684\u306a\u547c\u3073\u51fa\u3057\u65b9<\/h3>\n<p>clndr()\u3092\u547c\u3076\u3060\u3051\u3067\u3059\u304c\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u6e21\u3057\u305f\u308a\u305f\u304f\u3055\u3093\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3002<\/p>\n<pre><code class=\"javascript\">\/\/ this will use clndr's default template, which you probably don't want.\n$('#calendar').clndr();\n\n\/\/ so instead, pass in your template as a string!\n$('#calendar').clndr({\n  template: $('#calendar-template').html()\n});\n\n\/\/ there are a lot of options. the rabbit hole is deep.\n$('#calendar').clndr({\n  template: $('#calendar-template').html(),\n  events: [\n    { date: '2013-09-09', title: 'CLNDR GitHub Page Finished', url: 'http:\/\/github.com\/kylestetz\/CLNDR' }\n  ],\n  clickEvents: {\n    click: function(target) {\n      console.log(target);\n    },\n    onMonthChange: function(month) {\n      console.log('you just went to ' + month.format('MMMM, YYYY'));\n    }\n  },\n  doneRendering: function() {\n    console.log('this would be a fine place to attach custom event handlers.');\n  }\n});\n<\/code><\/pre>\n<h3>\u30a4\u30d9\u30f3\u30c8\u3082\u8a2d\u5b9a\u3067\u304d\u308b<\/h3>\n<p>\u516c\u5f0f\u30b5\u30a4\u30c8\u306b\u52d5\u304b\u305b\u308b\u30c7\u30e2\u304c\u8cbc\u308a\u4ed8\u3051\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2013\/09\/blogc1-1.png\" alt=\"C1 1\" title=\"c1-1.png\" border=\"0\" width=\"294\" height=\"223\" \/><\/p>\n<p>\u8272\u304c\u5909\u308f\u3063\u3066\u3044\u308b\u3068\u3053\u308d\u306b\u306f\u30a4\u30d9\u30f3\u30c8\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u3066\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u8a73\u7d30\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2013\/09\/blogc2.png\" alt=\"C2\" title=\"c2.png\" border=\"0\" width=\"293\" height=\"225\" \/><\/p>\n<p>\u3053\u308c\u304c\u30a4\u30d9\u30f3\u30c8\u306e\u8a73\u7d30\u753b\u9762\u3002\u30d0\u30c4\u3092\u62bc\u3059\u3068\u5143\u306e\u753b\u9762\u306b\u623b\u308a\u307e\u3059\u3002<\/p>\n<p>\u30ab\u30ec\u30f3\u30c0\u30fc\u3092\u4f7f\u3046\u5834\u9762\u306f\u591a\u3044\u306e\u3067\u3001\u899a\u3048\u3066\u304a\u304f\u3068\u6709\u529b\u306a\u9078\u629e\u80a2\u306b\u306a\u308a\u305d\u3046\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u306d\u3002\u30c7\u30b6\u30a4\u30f3\u3082\u30d5\u30e9\u30c3\u30c8\u3063\u307d\u304f\u3066\u4eca\u98a8\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u300cCLNDR.js\u300d\u306f\u30ab\u30ec\u30f3\u30c0\u30fc\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306ejQuery\u30d7\u30e9\u30b0\u30a4\u30f3\u3002\u4ed6\u306e\u30ab\u30ec\u30f3\u30c0\u30fc\u30d7\u30e9\u30b0\u30a4\u30f3\u3068\u9055\u3063\u3066\u76f4\u63a5\u30de\u30fc\u30af\u30a2\u30c3\u30d7\u3092\u751f\u6210\u305b\u305a\u3001Underscore.js\u306eHTML\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u3046\u3068\u3053\u308d\u304c\u7279\u5fb4\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"author":2,"featured_media":12508,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[655,186,1513],"class_list":["post-12511","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-javascript","tag-jquery","tag-1513"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/12511","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=12511"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/12511\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/12508"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=12511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=12511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=12511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}