{"id":2158,"date":"2012-08-14T11:41:23","date_gmt":"2012-08-14T02:41:23","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=2158"},"modified":"2012-09-20T10:10:28","modified_gmt":"2012-09-20T01:10:28","slug":"jquery-ui%e3%81%aedatepicker%e3%81%ab%e7%a5%9d%e6%97%a5%e5%88%a4%e5%ae%9a%e3%83%ad%e3%82%b8%e3%83%83%e3%82%af%e3%82%92%e7%b5%84%e3%81%bf%e8%be%bc%e3%82%80%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=2158","title":{"rendered":"jQuery UI\u306eDatepicker\u306b\u795d\u65e5\u5224\u5b9a\u30ed\u30b8\u30c3\u30af\u3092\u7d44\u307f\u8fbc\u3080\u3002"},"content":{"rendered":"<p>jQuery UI\u306b\u306fWeb\u30b7\u30b9\u30c6\u30e0\u3067\u7c21\u5358\u306b\u65e5\u4ed8\u9078\u629e\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u300c<a href=\"http:\/\/jqueryui.com\/demos\/datepicker\/\" title=\"jQuery UI - Datepicker Demos &#038; Documentation\" target=\"_blank\">Datepicker<\/a>\u300d\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u6a19\u6e96\u3067\u306f\u65e5\u672c\u306e\u795d\u65e5\u306e\u8272\u5206\u3051\u304c\u884c\u3048\u307e\u305b\u3093\u3002<br \/>\n\u305d\u3053\u3067\u4eca\u56de\u306f\u3053\u306eDatepicker\u306b<a href=\"http:\/\/www.h3.dion.ne.jp\/~sakatsu\/index.htm\" title=\"AddinBox\" target=\"_blank\">Excel MVP\u306e\u89d2\u7530\u3055\u3093<\/a>\u4f5c\u306e\u300c<a href=\"http:\/\/www.h3.dion.ne.jp\/~sakatsu\/holiday_logic.htm#JS\" title=\"AddinBox(\u795d\u65e5\u30de\u30af\u30ed-1)\" target=\"_blank\">\u65e5\u672c\u306e\u795d\u65e5\u5224\u5b9a\u30ed\u30b8\u30c3\u30af<\/a>\u300d\u3092\u7d44\u307f\u8fbc\u3093\u3067\u307f\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #ff0000; font-weight: bold;\">2012\/08\/14 \u8ffd\u8a18\uff1a<\/span><br \/>\n\u4e0b\u8a18\u30b3\u30fc\u30c9\u3092Office\u7528\u30a2\u30d7\u30ea\u306b\u7d44\u307f\u8fbc\u3093\u3060\u306e\u304c\u300c<a href=\"\/\/www.ka-net.org\/blog\/?p=2165\" title=\"[JavaScript API for Office]\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u65e5\u4ed8\u3092\u5165\u529b\u3059\u308b\u30b3\u30f3\u30c6\u30f3\u30c4\u30a2\u30d7\u30ea\u3002\" target=\"_blank\">[JavaScript API for Office]\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u65e5\u4ed8\u3092\u5165\u529b\u3059\u308b\u30b3\u30f3\u30c6\u30f3\u30c4\u30a2\u30d7\u30ea\u3002<\/a>\u300d\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><!--more--><br \/>\n<span style=\"color: #ff0000; font-weight: bold;\">\u203b JavaScript \u7528\u795d\u65e5\u5224\u5b9a\u30b3\u30fc\u30c9(HolidayChk.js)\u306f<a href=\"http:\/\/www.h3.dion.ne.jp\/~sakatsu\/holiday_logic.htm#JS\" title=\"AddinBox(\u795d\u65e5\u30de\u30af\u30ed-1)\" target=\"_blank\">\u89d2\u7530\u3055\u3093\u306eHP<\/a>\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3001\u81ea\u5206\u306e\u74b0\u5883\u306b\u5408\u308f\u305b\u3066\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/span><br \/>\n<span style=\"color: #ff0000; font-weight: bold;\">\u203b HolidayChk.js\u3092\u5229\u7528\u3059\u308b\u969b\u306f\u300c<a href=\"http:\/\/www.h3.dion.ne.jp\/~sakatsu\/holiday_logic.htm#JS\" title=\"AddinBox(\u795d\u65e5\u30de\u30af\u30ed-1)\" target=\"_blank\">AddinBox(\u795d\u65e5\u30de\u30af\u30ed-1)<\/a>\u300d\u306b\u3042\u308b\u4f7f\u7528\u6761\u4ef6\u306b\u5f93\u3063\u3066\u304f\u3060\u3055\u3044\u3002\u307e\u305f\u3001\u30d5\u30a1\u30a4\u30eb\u306f\u5fc5\u305a\u6700\u65b0\u7248\u3092\u4f7f\u7528\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">&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;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=Edge&quot;&gt;\r\n        &lt;link rel=&quot;stylesheet&quot; href=&quot;http:\/\/ajax.googleapis.com\/ajax\/libs\/jqueryui\/1\/themes\/dot-luv\/jquery-ui.css&quot;&gt;\r\n        &lt;script src=&quot;http:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.7.2\/jquery.min.js&quot;&gt;&lt;\/script&gt;\r\n        &lt;script src=&quot;http:\/\/ajax.googleapis.com\/ajax\/libs\/jqueryui\/1.8.21\/jquery-ui.min.js&quot;&gt;&lt;\/script&gt;\r\n        &lt;script src=&quot;http:\/\/ajax.googleapis.com\/ajax\/libs\/jqueryui\/1\/i18n\/jquery.ui.datepicker-ja.min.js&quot;&gt;&lt;\/script&gt;\r\n        &lt;script src=&quot;HolidayChk.js&quot;&gt;&lt;\/script&gt;\r\n        &lt;script&gt;\r\n            $(function(){\r\n                $(&quot;#datepicker&quot;).datepicker({\r\n                    beforeShowDay: function(date) {\r\n                        var result;\r\n                        var dd = date.getFullYear() + &quot;\/&quot; + (date.getMonth() + 1) + &quot;\/&quot; + date.getDate();\r\n                        var hName = ktHolidayName(dd);\r\n                        if(hName != &quot;&quot;) {\r\n                            result = &#x5B;true, &quot;date-holiday&quot;, hName];\r\n                        } else {\r\n                            switch (date.getDay()) {\r\n                                case 0: \/\/\u65e5\u66dc\u65e5\r\n                                    result = &#x5B;true, &quot;date-holiday&quot;];\r\n                                    break;\r\n                                case 6: \/\/\u571f\u66dc\u65e5\r\n                                    result = &#x5B;true, &quot;date-saturday&quot;];\r\n                                    break;\r\n                                default:\r\n                                    result = &#x5B;true];\r\n                                    break;\r\n                            }\r\n                        }\r\n                        return result;\r\n                    },\r\n                    onSelect: function(dateText, inst) {\r\n                        alert(dateText);\r\n                    }\r\n                });\r\n            });\r\n        &lt;\/script&gt;\r\n        &lt;style&gt;\r\n            .date-holiday .ui-state-default {\r\n                background-image:none;\r\n                background-color:#FF9999;\r\n            }\r\n            .date-saturday .ui-state-default {\r\n                background-image:none;\r\n                background-color:#66CCFF;\r\n            }\r\n            body {\r\n                margin:0;\r\n                padding:0;\r\n                font-family:Arial,sans-serif;\r\n                font-size:0.8em;\r\n            }\r\n        &lt;\/style&gt;\r\n    &lt;\/head&gt;\r\n    &lt;body&gt;\r\n        &lt;div id=&quot;datepicker&quot;&gt;&lt;\/div&gt;\r\n    &lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Datepicker_01.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Datepicker_01.jpg\" alt=\"\" title=\"Datepicker_01\" width=\"292\" height=\"236\" class=\"alignnone size-full wp-image-2159\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Datepicker_01.jpg 292w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Datepicker_01-290x234.jpg 290w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Datepicker_01-150x121.jpg 150w\" sizes=\"auto, (max-width: 292px) 100vw, 292px\" \/><\/a><\/p>\n<p><span style=\"color: #ff0000; font-weight: bold;\">\u203b \u5b9f\u969b\u306e\u30b5\u30f3\u30d7\u30eb\u306f\u4e0b\u8a18\u306b\u306a\u308a\u307e\u3059(\u898b\u3084\u3059\u3044\u3088\u3046\u306b\u30b9\u30bf\u30a4\u30eb\u306f\u5909\u66f4\u3057\u3066\u3042\u308a\u307e\u3059)\u3002\u30d6\u30ed\u30b0\u306e\u4ed5\u69d8\u4e0aIE\u3060\u3068\u8868\u793a\u3067\u304d\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/span><\/p>\n<link rel=\"stylesheet\" href=\"http:\/\/ajax.googleapis.com\/ajax\/libs\/jqueryui\/1\/themes\/cupertino\/jquery-ui.css\">\n<link rel=\"stylesheet\" href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/holidayset.css\">\n<script src=\"http:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.7.2\/jquery.min.js\"><\/script><br \/>\n<script src=\"http:\/\/ajax.googleapis.com\/ajax\/libs\/jqueryui\/1.8.21\/jquery-ui.min.js\"><\/script><br \/>\n<script src=\"http:\/\/ajax.googleapis.com\/ajax\/libs\/jqueryui\/1\/i18n\/jquery.ui.datepicker-ja.min.js\"><\/script><br \/>\n<script src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/HolidayChk.js\"><\/script><br \/>\n<script>\n    $(function(){\n        $(\"#datepicker\").datepicker({\n            beforeShowDay: function(date) {\n                var result;\n                var dd = date.getFullYear() + \"\/\" + (date.getMonth() + 1) + \"\/\" + date.getDate();\n                var hName = ktHolidayName(dd);\n                if(hName != \"\") {\n                    result = [true, \"date-holiday\", hName];\n                } else {\n                    switch (date.getDay()) {\n                        case 0: \/\/\u65e5\u66dc\u65e5\n                            result = [true, \"date-holiday\"];\n                            break;\n                        case 6: \/\/\u571f\u66dc\u65e5\n                            result = [true, \"date-saturday\"];\n                            break;\n                        default:\n                            result = [true];\n                            break;\n                    }\n                }\n                return result;\n            },\n            onSelect: function(dateText, inst) {\n                alert(dateText);\n            }\n        });\n    });\n<\/script><\/p>\n<div id=\"datepicker\"><\/div>\n<p>\u4ed5\u7d44\u307f\u3068\u3057\u3066\u306f\u3001Datepicker\u306e<a href=\"http:\/\/jqueryui.com\/demos\/datepicker\/#event-beforeShow\" title=\"beforeShow\" target=\"_blank\">beforeShowDay\u30a4\u30d9\u30f3\u30c8<\/a>\u3092\u4f7f\u3063\u3066\u3001\u65e5\u4ed8\u304c\u8868\u793a\u3055\u308c\u308b\u524d\u306b\u571f\u65e5\u795d\u65e5\u5224\u5b9a\u3092\u884c\u3044\u30b9\u30bf\u30a4\u30eb\u3092\u9069\u5fdc\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u3059\u304c\u3001\u4e0a\u8a18\u30b3\u30fc\u30c9\u306e\u901a\u308aDatepicker\u3068\u89d2\u7530\u3055\u3093\u306e\u30ed\u30b8\u30c3\u30af\u3068\u306f\u975e\u5e38\u306b\u76f8\u6027\u304c\u826f\u3044\u306e\u3067\u3001<span style=\"color: #ff0000; font-weight: bold;\">\u307b\u3093\u306e\u6570\u884c\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067\u795d\u65e5\u306e\u8272\u5206\u3051\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/span><\/p>\n<p>\u65e5\u4ed8\u3068\u8a00\u3048\u3070\u89d2\u7530\u3055\u3093\u89d2\u7530\u3055\u3093\u3068\u8a00\u3048\u3070\u65e5\u4ed8\u3001\u3068\u3044\u3046\u304f\u3089\u3044\u65e5\u4ed8\u51e6\u7406\u306b\u95a2\u3057\u3066\u9020\u8a63\u304c\u6df1\u3044\u89d2\u7530\u3055\u3093\u3002<br \/>\n\u975e\u5e38\u306b\u4fbf\u5229\u306a\u30ed\u30b8\u30c3\u30af\u3092\u516c\u958b\u3057\u3066\u3044\u305f\u3060\u304d\u3001\u672c\u5f53\u306b\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u4e0a\u8a18\u30b3\u30fc\u30c9\u3067\u306f(\u9762\u5012\u81ed\u3044\u306e\u3067)\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u3068\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u3092Google\u304b\u3089\u8aad\u307f\u8fbc\u3080\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u306e\u30b9\u30bf\u30a4\u30eb\u306f\u7c21\u5358\u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u8a73\u3057\u304f\u306f\u4e0b\u8a18Web\u30da\u30fc\u30b8\u306b\u3042\u308b\u300c<span style=\"color: #ff0000; font-weight: bold;\">jQuery UI\u306e\u30c7\u30b6\u30a4\u30f3\u3092\u6c7a\u3081\u308b<\/span>\u300d\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>\u30fbjQuery UI\u306eDatepicker\u3067\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u697d\u3005\u65e5\u4ed8\u5165\u529b <\/strong><br \/>\n<a href=\"http:\/\/www.hanemaru.com\/itemcolumn\/11jquidatepicker01.html\" title=\"jQuery UI\u306eDatepicker\u3067\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u697d\u3005\u65e5\u4ed8\u5165\u529b \" target=\"_blank\">http:\/\/www.hanemaru.com\/itemcolumn\/11jquidatepicker01.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"jQuery UI\u306b\u306fWeb\u30b7\u30b9\u30c6\u30e0\u3067\u7c21\u5358\u306b\u65e5\u4ed8\u9078\u629e\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u300cDatepicker\u300d\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u6a19\u6e96\u3067\u306f\u65e5\u672c\u306e\u795d\u65e5\u306e\u8272\u5206\u3051\u304c\u884c\u3048\u307e\u305b\u3093\u3002 \u305d\u3053\u3067\u4eca\u56de\u306f\u3053\u306eDatepicker\u306bExcel MVP\u306e\u89d2\u7530 [&hellip;]","protected":false},"author":1,"featured_media":7122,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5],"tags":[16,83,84],"class_list":["post-2158","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-other","tag-javascript","tag-jquery-ui","tag-datepicker"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-Other.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-yO","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2158"}],"version-history":[{"count":11,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2158\/revisions"}],"predecessor-version":[{"id":2169,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2158\/revisions\/2169"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7122"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}