{"id":2067,"date":"2020-12-14T11:42:30","date_gmt":"2020-12-14T02:42:30","guid":{"rendered":"https:\/\/qol-kk.com\/wp2\/?p=2067"},"modified":"2020-12-15T09:53:13","modified_gmt":"2020-12-15T00:53:13","slug":"post-2067","status":"publish","type":"post","link":"https:\/\/qol-kk.com\/wp2\/blog\/2020\/12\/14\/post-2067\/","title":{"rendered":"Bootstrap\uff1a\u30ab\u30c3\u30b3\u3044\u3044\u30ab\u30ec\u30f3\u30c0\u30fc\u300edaterangepicker\u300f\u306e\u53d6\u6271\u3044\u3092\u8abf\u3079\u305f"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"2340\" data-permalink=\"https:\/\/qol-kk.com\/wp2\/blog\/2020\/12\/14\/post-2067\/daterangepicker\/\" data-orig-file=\"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2020\/12\/daterangepicker.png\" data-orig-size=\"654,335\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"daterangepicker\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2020\/12\/daterangepicker.png\" class=\"alignnone size-full wp-image-2340\" src=\"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2020\/12\/daterangepicker.png\" alt=\"\" width=\"654\" height=\"335\" srcset=\"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2020\/12\/daterangepicker.png 654w, https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2020\/12\/daterangepicker-300x154.png 300w\" sizes=\"auto, (max-width: 654px) 100vw, 654px\" \/><\/p>\n<h2>Bootstrap\uff1a\u30ab\u30c3\u30b3\u3044\u3044\u30ab\u30ec\u30f3\u30c0\u30fc\u300edaterangepicker\u300f\u306e\u53d6\u6271\u3044\u3092\u8abf\u3079\u305f<\/h2>\n<p>\u3053\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u62c5\u5f53\u533a\u5206\u306f\u65e5\u4ed8\u306e\u7bc4\u56f2\u6307\u5b9a\u3067\u3059\u3002<br \/>\n\u4f8b\u3048\u3070\u3001\u58f2\u4e0a\u306e\u671f\u9593\u96c6\u8a08\u3068\u304b\u300e\u3069\u3053\u304b\u3089\u3069\u3053\u306e\u96c6\u8a08\u3092\u3059\u308b\u306e\u304b\u300f\u3092\u6307\u793a\u3059\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002<br \/>\n\u305f\u3060\u3057\u3001\u6a19\u6e96\u72b6\u614b\u3067\u306fPOST\u306e\u66f8\u304d\u8fbc\u307f\u304c\u7121\u3044\u306e\u3067\u300c\u3069\u3053\u306b\u66f8\u3051\u3070\u826f\u3044\u306e\uff1f\u300d\u3068\u82e6\u6226\u3057\u3066\u307e\u3057\u305f\u3002<br \/>\n\u3068\u8a00\u3046\u4e8b\u3067\u3001\u500b\u4eba\u7684\u5099\u5fd8\u9332\u3002<\/p>\n<h3>daterangepicker\u5c0e\u5165\u306e\u7d4c\u7def<\/h3>\n<p>Bootstrap\u306e\u30c6\u30f3\u30d7\u30ec Gentelella \u306b\u6a19\u6e96\u642d\u8f09\u3055\u308c\u3066\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u3001\u58f2\u4e0a\u3068\u304b\u6765\u5e97\u6570\u306e\u96c6\u8a08\u306b\u3069\u3046\u3057\u3066\u3082\u6a5f\u95a2\u3067\u306e\u5909\u66f4\u3068\u8a00\u3046\u30bf\u30b9\u30af\u304c\u5165\u308b\u306e\u3067\u6d3b\u7528\u3057\u3066\u307f\u3088\u3046\u3068\u3002<\/p>\n<h3>Gentelella\u3067\u306e\u8a72\u5f53\u7b87\u6240<\/h3>\n<div class=\"borderBox\">static<br \/>\n\u251c\u2500\u2500 build\/<br \/>\n\u2502\u00a0 \u251c\u2500\u2500\u2500 css\/<br \/>\n\u2502\u00a0 \u251c\u2500\u2500\u2500 js\/<br \/>\n\u2502\u00a0 \u2502\u3000\u251c\u2500\u2500\u2500 custom.js<br \/>\n\u2502\u00a0 \u2502\u3000\u251c\u2500\u2500\u2500 custom.min.js<br \/>\n\u2502\u00a0 (\u4ee5\u4e0b\u7565)<br \/>\n\u251c\u2500\u2500 venders\/<br \/>\n\u2502\u00a0 \u251c\u2500\u2500\u2500 bootstrap-daterangepicker\/<br \/>\n\u2502\u00a0 \u2502\u3000\u251c\u2500\u2500\u2500 daterangepicker.css<br \/>\n\u2502\u00a0 \u2502\u3000\u251c\u2500\u2500\u2500 daterangepicker.js<br \/>\n\u2502\u00a0 \u2502\u3000\u251c\u2500\u2500\u2500 daterangepicker.scss<br \/>\n\u2502\u00a0 \u2502\u3000\u251c\u2500\u2500\u2500 package.js<br \/>\n\u2502\u00a0 \u2502\u3000\u251c\u2500\u2500\u2500 package.json<br \/>\n\u2502\u00a0 \u2502\u3000\u251c\u2500\u2500\u2500 README.md<br \/>\n\u2502\u00a0 \u2502\u3000(\u4ee5\u4e0b\u7565)<br \/>\n(\u4ee5\u4e0b\u7565)<\/div>\n<p>\u3053\u306e\u4e2d\u306e\u3010venders\/bootstrap-daterangepicker\/daterangepicker.js\u3011\u304c\u30d9\u30fc\u30b9\u3068\u306a\u308bJS\u30d5\u30a1\u30a4\u30eb<\/p>\n<p>\u3067\u3001\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u3044\u308b\u9805\u76ee\u306f\u3010build\/js\/custom.js \u203b\u307e\u305f\u306fcustom.min.js\u3011\u306b\u5b58\u5728\u3057\u307e\u3057\u305f\u3002<\/p>\n<h3>Gentelella \u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u9805\u76ee\u306e\u8a72\u5f53\u7b87\u6240<\/h3>\n<pre class=\"lang:default decode:true\">\/* DATERANGEPICKER *\/\r\n\r\nfunction init_daterangepicker() {\r\n\r\n    if (typeof($.fn.daterangepicker) === 'undefined') {\r\n        return;\r\n    }\r\n    console.log('init_daterangepicker');\r\n\r\n    var cb = function(start, end, label) {\r\n        console.log(start.toISOString(), end.toISOString(), label);\r\n        $('#reportrange span').html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY'));\r\n    };\r\n\r\n    var optionSet1 = {\r\n        startDate: moment().subtract(29, 'days'),\r\n        endDate: moment(),\r\n        minDate: '01\/01\/2012',\r\n        maxDate: '12\/31\/2015',\r\n        dateLimit: {\r\n            days: 60\r\n        },\r\n        showDropdowns: true,\r\n        showWeekNumbers: true,\r\n        timePicker: false,\r\n        timePickerIncrement: 1,\r\n        timePicker12Hour: true,\r\n        ranges: {\r\n            'Today': [moment(), moment()],\r\n            'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],\r\n            'Last 7 Days': [moment().subtract(6, 'days'), moment()],\r\n            'Last 30 Days': [moment().subtract(29, 'days'), moment()],\r\n            'This Month': [moment().startOf('month'), moment().endOf('month')],\r\n            'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')]\r\n        },\r\n        opens: 'left',\r\n        buttonClasses: ['btn btn-default'],\r\n        applyClass: 'btn-small btn-primary',\r\n        cancelClass: 'btn-small',\r\n        format: 'MM\/DD\/YYYY',\r\n        separator: ' to ',\r\n        locale: {\r\n            applyLabel: 'Submit',\r\n            cancelLabel: 'Clear',\r\n            fromLabel: 'From',\r\n            toLabel: 'To',\r\n            customRangeLabel: 'Custom',\r\n            daysOfWeek: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\r\n            monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],\r\n            firstDay: 1\r\n        }\r\n    };\r\n\r\n    $('#reportrange span').html(moment().subtract(29, 'days').format('MMMM D, YYYY') + ' - ' + moment().format('MMMM D, YYYY'));\r\n    $('#reportrange').daterangepicker(optionSet1, cb);\r\n    $('#reportrange').on('show.daterangepicker', function() {\r\n        console.log(\"show event fired\");\r\n    });\r\n    $('#reportrange').on('hide.daterangepicker', function() {\r\n        console.log(\"hide event fired\");\r\n    });\r\n    $('#reportrange').on('apply.daterangepicker', function(ev, picker) {\r\n        console.log(\"apply event fired, start\/end dates are \" + picker.startDate.format('MMMM D, YYYY') + \" to \" + picker.endDate.format('MMMM D, YYYY'));\r\n    });\r\n    $('#reportrange').on('cancel.daterangepicker', function(ev, picker) {\r\n        console.log(\"cancel event fired\");\r\n    });\r\n    $('#options1').click(function() {\r\n        $('#reportrange').data('daterangepicker').setOptions(optionSet1, cb);\r\n    });\r\n    $('#options2').click(function() {\r\n        $('#reportrange').data('daterangepicker').setOptions(optionSet2, cb);\r\n    });\r\n    $('#destroy').click(function() {\r\n        $('#reportrange').data('daterangepicker').remove();\r\n    });\r\n\r\n}\r\n\r\n$(document).ready(function() {\r\n    init_daterangepicker();\r\n});<\/pre>\n<p>\u95a2\u9023\u3059\u308b\u7b87\u6240\u306f\u4ed6\u306b\u3082\u4e0b\u306e3\u3064\u306e\u8981\u7d20\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3089\u306f\u30c6\u30f3\u30d7\u30ec\u5185\u306e\u4f7f\u3044\u3069\u3053\u308d\u306b\u3088\u3063\u3066\u5206\u304b\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"paperBox\">\n<ul>\n<li>init_daterangepicker_right();<\/li>\n<li>init_daterangepicker_single_call();<\/li>\n<li>init_daterangepicker_reservation();<\/li>\n<\/ul>\n<\/div>\n<h3>\u671f\u9593\u6307\u5b9a\u306e\u9805\u76ee\uff1a10\u884c\u76ee\uff5e13\u884c\u76ee \uff06 54\u884c\u76ee~55\u884c\u76ee<\/h3>\n<p>10\u884c\u76ee\uff5e13\u884c\u76ee\u306f\u4e0b\u306e\u753b\u50cf\u306e\u8d64\u4e38\u7b87\u6240\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"2342\" data-permalink=\"https:\/\/qol-kk.com\/wp2\/blog\/2020\/12\/14\/post-2067\/attachment-0\/\" data-orig-file=\"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2020\/12\/e93ab926ab63f1275955a519fc143b01.png\" data-orig-size=\"667,50\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"daterangepicker_\u671f\u9593\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2020\/12\/e93ab926ab63f1275955a519fc143b01.png\" class=\"alignnone size-full wp-image-2342\" src=\"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2020\/12\/e93ab926ab63f1275955a519fc143b01.png\" alt=\"\" width=\"667\" height=\"50\" srcset=\"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2020\/12\/e93ab926ab63f1275955a519fc143b01.png 667w, https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2020\/12\/e93ab926ab63f1275955a519fc143b01-300x22.png 300w\" sizes=\"auto, (max-width: 667px) 100vw, 667px\" \/><\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u4eca\u56de\u306f\u4e0b\u306e\u69d8\u306b\u66f8\u304d\u66ff\u3048\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"lang:default decode:true\">#10\uff5e13\u884c\u76ee\r\n    var cb = function(start, end, label) {\r\n        console.log(start.toISOString(), end.toISOString(), label);\r\n        $('#reportrange span').html(start.format('YYYY\/MM\/DD') + ' - ' + end.format('YYYY\/MM\/DD'));\r\n    };\r\n\r\n#54\uff5e55\u884c\u76ee\r\n    $('#reportrange span').html('\u671f\u9593\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044');\r\n    $('#reportrange').daterangepicker(optionSet1, cb);<\/pre>\n<p>12\u884c\u76ee\u3010$('#reportrange span').html(start.format('YYYY\/MM\/DD') + ' - ' + end.format('YYYY\/MM\/DD'));\u3011<br \/>\n\u3053\u3053\u306f\u30d4\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u305f\u671f\u9593\u3092\u8d64\u4e38\u306e\u7b87\u6240\u306b\u914d\u7f6e\u3059\u308b\u969b\u306b\u3069\u306e\u3088\u3046\u306a\u8868\u793a\u306b\u3059\u308b\u304b\u3092\u6307\u793a\u3057\u3066\u3044\u307e\u3059\u3002YYYY\/MM\/DD \u3067 2020\/12\/14\u3068\u8a00\u3046\u8868\u8a18\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>54\u884c\u76ee\u306f\u671f\u9593\u306e\u30d4\u30c3\u30af\u30a2\u30c3\u30d7\u304c\u5b58\u5728\u3057\u306a\u3044\u6642\u306b\u4f55\u3092\u8868\u793a\u3059\u308b\u304b\u3092\u6307\u793a\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3010$('#reportrange span').html('\u671f\u9593\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044');\u3011\u3068\u3057\u305f\u5834\u5408\u306f\u753b\u50cf\u306e\u69d8\u306b\u300e\u671f\u9593\u3092...\u300f\u3068\u8a00\u3046\u6587\u5b57\u3092\u8868\u793a\u3057\u307e\u3059\u3002\u65e5\u4ed8\u304c\u5165\u3063\u3066\u3044\u305f\u65b9\u304c\u30ab\u30c3\u30b3\u3044\u3044\u306e\u3067\u3059\u304c\u3001\u4eca\u56de\u306f\u8af8\u4e8b\u60c5\u3067\u6587\u5b57\u5217\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>55\u884c\u76ee\u306f\u671f\u9593\u306e\u30d4\u30c3\u30af\u30a2\u30c3\u30d7\u304c\u884c\u308f\u308c\u305f\u6642\u306b\u4f55\u3092\u8868\u793a\u3059\u308b\u304b\u3092\u6307\u793a\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n15\u884c\u76ee\u304b\u3089\u59cb\u307e\u308boptionSet1\u3067\u8a2d\u5b9a\u3055\u308c\u305f\u5024\u309210\u884c\u76ee\u304b\u3089\u306ecb \u306e\u30eb\u30fc\u30eb\u306b\u5f93\u3063\u3066\u66f8\u3044\u3066\u306d\u3068\u8a00\u3046\u610f\u5473\u3067\u3059\u3002<\/p>\n<h4>\u6ce8\u610f\u70b9<\/h4>\n<p>\u65e5\u4ed8\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306b\u3064\u3044\u3066\u306f\u9577\u5e74\u306e\u30af\u30bb\u3067\u6700\u521d yyyy\/mm\/dd \u3068\u3057\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u3053\u308c\u306f\u9593\u9055\u3044\u3067\u3059\u3002<br \/>\nJavaScript\u4e0a\u3067\u306f\u3010mm = \u5206\u3011\u306a\u306e\u3067\u8868\u793a\u3055\u308c\u306a\u3044\u304b\u9593\u9055\u3048\u305f\u5024\u304c\u8868\u793a\u3055\u308c\u308b\u4e8b\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u203b\u3061\u306a\u307f\u306bPHP\u3067\u306f\u3010\u5206 = i\u3011\u306b\u306a\u308b\u3002<\/p>\n<h3>15\u884c\u76ee\uff5e52\u884c\u76ee\u306f\u8868\u793a\u30aa\u30d7\u30b7\u30e7\u30f3<\/h3>\n<pre class=\"lang:default decode:true\">    var optionSet1 = {\r\n        startDate: moment().subtract(30, 'days'),\r\n        endDate: moment().subtract(1, 'days'),\r\n        minDate: '2012\/01\/01',\r\n        maxDate: '2020\/12\/11',\r\n        format: 'YYYY\/MM\/DD',\r\n        dateLimit: {\r\n            days: 60\r\n        },\r\n        alwaysShowCalendars: true,\r\n        showDropdowns: true,\r\n        showWeekNumbers: false,\r\n        timePicker: false,\r\n        timePickerIncrement: 1,\r\n        timePicker12Hour: true,\r\n        ranges: {\r\n            \/*'\u4eca\u65e5': [moment(), moment()],*\/\r\n            '\u6628\u65e5': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],\r\n            '\u6700\u65b07\u65e5\u9593': [moment().subtract(7, 'days'), moment().subtract(1, 'days')],\r\n            '\u6700\u65b030\u65e5\u9593': [moment().subtract(30, 'days'), moment().subtract(1, 'days')],\r\n            '\u4eca\u6708': [moment().startOf('month'), moment().endOf('month')],\r\n            '\u5148\u6708': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')]\r\n        },\r\n        opens: 'left',\r\n        buttonClasses: ['btn btn-default'],\r\n        applyClass: 'btn-small btn-primary',\r\n        cancelClass: 'btn-small',\r\n        separator: ' to ',\r\n        locale: {\r\n            applyLabel: '\u78ba\u5b9a',\r\n            cancelLabel: '\u30af\u30ea\u30a2',\r\n            fromLabel: 'From',\r\n            toLabel: 'To',\r\n            customRangeLabel: '\u30ab\u30b9\u30bf\u30e0',\r\n            daysOfWeek: ['\u65e5', '\u6708', '\u706b', '\u6c34', '\u6728', '\u91d1', '\u571f'],\r\n            monthNames: ['01\u6708', '02\u6708', '03\u6708', '04\u6708', '05\u6708', '06\u6708', '07\u6708', '08\u6708', '09\u6708', '10\u6708', '11\u6708', '12\u6708'],\r\n            firstDay: 1\r\n        }\r\n    };<\/pre>\n<p>\u4e0a\u304c\u65e5\u672c\u8a9e\u5316\u3057\u305f\u3082\u306e\u3002<\/p>\n<p>\u4eca\u56de\u306e\u8a2d\u7f6e\u306f\u5e97\u8217\u60c5\u5831\u306e\u5206\u6790\u306a\u306e\u3067\u3001\u5f53\u65e5\u30c7\u30fc\u30bf\u306f\u624b\u306b\u5165\u3089\u306a\u3044\uff1d\u4eca\u65e5(Today)\u306f\u5ec3\u6b62\u3002<br \/>\n\u540c\u69d8\u306b\u62bd\u51fa\u671f\u9593\u3082\u6700\u65b0\u30671\u65e5\u524d\u306a\u306e\u3067\u3010endDate: moment().subtract(1, 'days'),\u3011\u3068\u3057\u3066moment() \u304b\u30891\u65e5\u6e1b\u7b97\u3002<br \/>\n\u3064\u3044\u3067\u306b\u3010startDate: moment().subtract(30, 'days'),\u3011\u3067\u521d\u671f\u5024\u306e\u958b\u59cb\u65e5\u3082\u5909\u66f4\u3002<\/p>\n<p>\u3042\u3068\u306frenge \u3068locale \u3092\u65e5\u672c\u8a9e\u5316\u3057\u3066\u3084\u308b\u3068\u4f7f\u3044\u52dd\u624b\u304c\u826f\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>54\u884c\u76ee\uff5e76\u884c\u76ee\u306f\u52d5\u4f5c\u3092\u62c5\u5f53\u3059\u308b\u30d1\u30fc\u30c8<\/h3>\n<pre class=\"lang:default decode:true \">    $('#reportrange span').html('\u671f\u9593\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044');\r\n    $('#reportrange').daterangepicker(optionSet1, cb);\r\n    $('#reportrange').on('show.daterangepicker', function() {\r\n        console.log(\"show event fired\");\r\n    });\r\n    $('#reportrange').on('hide.daterangepicker', function() {\r\n        console.log(\"hide event fired\");\r\n    });\r\n    $('#reportrange').on('apply.daterangepicker', function(ev, picker) {\r\n        let f = document.createElement('form');\r\n            f.method = 'post';\r\n            f.action = location.pathname;\r\n            f.innerHTML = '&lt;input type=\"text\" name=\"fr\" value='+  picker.startDate.format('YYYY\/MM\/DD') + '&gt;' +\r\n               '&lt;input type=\"text\" name=\"toe\" value=' + picker.endDate.format('YYYY\/MM\/DD') + '&gt;' +\r\n               '&lt;input type=\"submit\" value=\"submit\"&gt;';\r\n\r\n            document.body.append(f);\r\n        f.submit();\r\n        console.log(\"apply event fired, start\/end dates are \" + picker.startDate.format('YYYY\/MM\/DD') + \" to \" + picker.endDate.format('YYYY\/MM\/DD'));\r\n    });\r\n    $('#reportrange').on('cancel.daterangepicker', function(ev, picker) {\r\n        console.log(\"cancel event fired\");\r\n    });\r\n    $('#options1').click(function() {\r\n        $('#reportrange').data('daterangepicker').setOptions(optionSet1, cb);\r\n    });\r\n    $('#options2').click(function() {\r\n        $('#reportrange').data('daterangepicker').setOptions(optionSet2, cb);\r\n    });\r\n    $('#destroy').click(function() {\r\n        $('#reportrange').data('daterangepicker').remove();\r\n    });<\/pre>\n<p>\u3053\u3053\u304c\u60a9\u3093\u3060\u30d1\u30fc\u30c8\u3067\u3059\u3002<br \/>\n\u8a73\u7d30\u307e\u3067\u66f8\u304f\u3068\u9577\u304f\u306a\u308a\u305d\u3046\u306a\u306e\u3067\u305d\u308c\u306f<a href=\"https:\/\/qol-kk.com\/wp2\/blog\/2020\/12\/15\/post-2346\/\">\u5225\u8a18\u4e8b<\/a>\u3067\u88dc\u586b\u3057\u307e\u3059\u3002<br \/>\n\u3053\u306e\u8a18\u4e8b\u306e\u89e3\u8aac\u3067\u306f\u300e\u3069\u3053\u304c\u3069\u306e\u52d5\u4f5c\u3092\u62c5\u5f53\u3057\u3066\u3044\u308b\u304b\u300f\u306b\u7559\u3081\u307e\u3059\u3002<\/p>\n<div class=\"paperBox\">\n<ul>\n<li>54\u884c\u76ee\uff1a\u671f\u9593\u62bd\u51fa\u304c\u4e00\u5207\u884c\u308f\u308c\u3066\u3044\u306a\u3044\u6642\u306b inpt\u30bf\u30b0 \u3067\u8868\u793a\u3055\u308c\u308b\u5185\u5bb9\u3002<\/li>\n<li>55\u884c\u76ee\uff1a\u671f\u9593\u62bd\u51fa\u304c\u884c\u308f\u308c\u305f\u6642\u306b input\u30bf\u30b0 \u3067\u8868\u793a\u3055\u308c\u308b\u5185\u5bb9\u3002<\/li>\n<li>56\u884c\u76ee\uff5e58\u884c\u76ee\uff1a id = reportrange \u304c\u8868\u793a\u3055\u308c\u305f\u6642\u306b\u52d5\u4f5c\u3059\u308b\u30a4\u30d9\u30f3\u30c8\u3002Ajax\u3067\u52d5\u304b\u3059\u5834\u5408\u306e\u521d\u671f\u5024POST\u306b\u4f7f\u3046\u3002<\/li>\n<li>59\u884c\u76ee\uff5e61\u884c\u76ee\uff1a\u62bd\u51fa\u7528\u30ab\u30ec\u30f3\u30c0\u30fc\u304c\u9589\u3058\u308b\u6642\u306b\u52d5\u4f5c\u3002\u3053\u3053\u306b\u4f55\u304b\u66f8\u304f\u4e8b\u306f\u3042\u307e\u308a\u306a\u3044\u3068\u601d\u3046\u3002<\/li>\n<li>62\u884c\u76ee\uff5e64\u884c\u76ee\uff1a\u78ba\u5b9a\u30dc\u30bf\u30f3\u3092\u62bc\u3055\u308c\u305f\u6642\u306b\u52d5\u4f5c\u3059\u308b\u30a4\u30d9\u30f3\u30c8\u3002\u5024\u306e\u9001\u4fe1\u306f\u57fa\u672c\u7684\u306b\u30b3\u30b3\u3067\u884c\u3046\u4e8b\u306b\u306a\u308b\u306f\u305a\u3002<\/li>\n<li>68\u884c\u76ee\uff5e73\u884c\u76ee\uff1a\u30ab\u30ec\u30f3\u30c0\u30fc\u306e\u65e5\u4ed8\u30af\u30ea\u30c3\u30af\u3067\u52d5\u4f5c\u3059\u308b\u7b87\u6240\u3002\u3053\u3053\u3082\u57fa\u672c\u7684\u306b\u66f8\u304b\u306a\u3046\u3068\u601d\u3046\u3002<\/li>\n<li>74\u884c\u76ee\uff5e76\u884c\u76ee\uff1a\u30af\u30ea\u30a2\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u305f\u6642\u306b\u52d5\u4f5c\u3059\u308b\u30a4\u30d9\u30f3\u30c8\u3002\u5024\u306b\u521d\u671f\u5024\u3092\u9001\u308b\u306a\u3069\u3059\u308c\u3070OK\u3002<\/li>\n<\/ul>\n<\/div>\n<p>\u30b5\u30d6\u30dc\u30bf\u30f3\u306e\u3010Yesterday\/Last 7 Days\u3011\u3068\u304b\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u308262\u884c\u76ee\uff5e64\u884c\u76ee\u304c\u3061\u3083\u3093\u3068\u52d5\u304d\u307e\u3059\u3002<br \/>\n\u306a\u306e\u3067\u3001\u305d\u308c\u5c02\u7528\u306e\u8a18\u8f09\u7b87\u6240\u306f\u5b58\u5728\u3057\u306a\u3044\u306e\u3067\u6c17\u306b\u3057\u306a\u304f\u3066\u5927\u4e08\u592b\u3067\u3059\u3002<\/p>\n<h3>\u88dc\u8db3\u89e3\u8aac\uff1amoment()<\/h3>\n<p>\u3053\u306e\u95a2\u6570\u306f\u65e5\u4ed8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002moment()\u3067\u672c\u65e5\u306e\u53d6\u5f97\u3002<br \/>\n\u65e5\u4ed8\u306e\u6e1b\u7b97\u306b\u306f\u3010subtract\u3011\u52a0\u7b97\u306b\u306f\u3010add\u3011\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<div class=\"paperBox\">\n<ul>\n<li>1\u65e5\u524d\uff1amoment().subtract(1, 'days')<\/li>\n<li>1\u304b\u6708\u524d\uff1amoment().subtract(1, 'months')<\/li>\n<\/ul>\n<\/div>\n<h3>\u307e\u3068\u3081<\/h3>\n<p>\u3069\u3046\u3067\u3082\u3044\u3044\u4e8b\u3060\u3051\u3069\u4f53\u7cfb\u7684\u306b\u306f\u300e\u3010Bootstrap\u3011\u304b\u3063\u3053\u3044\u3044\u30c6\u30f3\u30d7\u30ec Gentelella \u3092\u898b\u3064\u3051\u305f\u306e\u3067\u89e3\u6790\u2462\u300f\u3063\u3066\u30bf\u30a4\u30c8\u30eb\u306e\u65b9\u304c\u826f\u304b\u3063\u305f\u304b\u306a\u3068\u3002<br \/>\n\u3067\u3082\u300edaterangepicker\u300f\u3063\u3066Gentelella\u306b\u4f7f\u308f\u308c\u3066\u308b\u3060\u3051\u3058\u3083\u306a\u3044\u304b\u3089\u8abf\u3079\u308b\u306b\u306f\u3053\u3063\u3061\u306e\u65b9\u304c\u826f\u3044\u306e\u304b\u3002<\/p>\n<p>\u307e\u3041\u4f55\u3068\u304b\u4f7f\u3044\u3053\u306a\u305b\u305d\u3046\u3067\u826f\u304b\u3063\u305f\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bootstrap\uff1a\u30ab\u30c3\u30b3\u3044\u3044\u30ab\u30ec\u30f3\u30c0\u30fc\u300edaterangepicker\u300f\u306e\u53d6\u6271\u3044\u3092\u8abf\u3079\u305f \u3053\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u62c5\u5f53\u533a\u5206\u306f\u65e5\u4ed8\u306e\u7bc4\u56f2\u6307\u5b9a\u3067\u3059\u3002 \u4f8b\u3048\u3070\u3001\u58f2\u4e0a\u306e\u671f\u9593\u96c6\u8a08\u3068\u304b\u300e\u3069\u3053\u304b\u3089\u3069\u3053\u306e\u96c6\u8a08\u3092\u3059\u308b\u306e\u304b\u300f\u3092\u6307\u793a\u3059\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2281,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[36],"tags":[845,870,54,365,871,53,247],"class_list":["post-2067","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript-memorandum","tag-bootstrap4","tag-daterangepicker","tag-html","tag-javascript","tag-871","tag-53","tag-247"],"veu_head_title_object":{"title":"","add_site_title":""},"jetpack_publicize_connections":[],"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2020\/12\/bootstrap.gif","_links":{"self":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/2067","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/comments?post=2067"}],"version-history":[{"count":0,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/2067\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media\/2281"}],"wp:attachment":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media?parent=2067"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/categories?post=2067"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/tags?post=2067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}