Skip to content

Instantly share code, notes, and snippets.

View miahsuwork's full-sized avatar

MiaHsu miahsuwork

View GitHub Profile
{
"particles": {
"number": {
"value": 8,
"density": {
"enable": true,
"value_area": 800
}
},
"color": {
$('input[name="dates"]').daterangepicker({
"locale": {
"format": "YYYY年MM月DD日",
"separator": " - ",
"applyLabel": "確認",
"cancelLabel": "取消",
"customRangeLabel": "自訂義範圍",
"daysOfWeek": [
"日",
"一",
$('input[name="dates"]').daterangepicker({
ranges: {
'今天': [moment(), moment()],
'昨天': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
'前 7 天': [moment().subtract(6, 'days'), moment()],
'前 30 天': [moment().subtract(29, 'days'), moment()],
'這個月': [moment().startOf('month'), moment().endOf('month')],
'上個月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')]
},
"locale": {