プロフィールトップに最近のシコ草を移動
This commit is contained in:
15
resources/assets/js/user/profile.js
vendored
Normal file
15
resources/assets/js/user/profile.js
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import CalHeatMap from 'cal-heatmap';
|
||||
|
||||
if (document.getElementById('cal-heatmap')) {
|
||||
new CalHeatMap().init({
|
||||
itemSelector: '#cal-heatmap',
|
||||
domain: 'month',
|
||||
subDomain: 'day',
|
||||
domainLabelFormat: '%Y/%m',
|
||||
weekStartOnMonday: false,
|
||||
start: new Date().setMonth(new Date().getMonth() - 9),
|
||||
range: 10,
|
||||
data: JSON.parse(document.getElementById('count-by-day').textContent),
|
||||
legend: [1, 2, 3, 4]
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user