The SSH host key has changed on 8 April, 2022 to this one: SHA256:573uTBSeh74kvOo0HJXi5ijdzRm8me27suzNEDlGyrQ

Add rulers to holidays

sqla-i18n-post
Gergely Polonkai 7 years ago
parent d56036f36d
commit cf440ec976
  1. 5
      minari/css/minari.css
  2. 4
      minari/index.html
  3. 16
      minari/js/minari.js

@ -71,3 +71,8 @@ td {
.date-popover {
text-align: center;
}
.holiday .small {
font-size: 75%;
font-weight: normal;
}

@ -114,6 +114,10 @@
$('div.month').each(function() {
genMonthTable(this);
});
$('div .holiday').each(function() {
updateHoliday(this);
});
</script>
</body>
</html>

@ -542,3 +542,19 @@ function getMoonPhase(date) {
return phase;
}
function updateHoliday(div) {
id = $(div).attr('id');
holiday_name = $(div).html();
ruler = entities[holiday_name].entity;
element = entities[holiday_name].element;
if (element != undefined) {
ruler += ', ' + element;
}
ruler = $('<p>').addClass('small').html(ruler);
$(div).append(ruler);
}

Loading…
Cancel
Save