diff --git a/content/minari/css/minari.css b/content/minari/css/minari.css deleted file mode 100644 index e971664..0000000 --- a/content/minari/css/minari.css +++ /dev/null @@ -1,78 +0,0 @@ -.year { - font-weight: bold; - text-align: center; - font-size: 200%; - cursor: pointer; -} - -.holiday { - text-align: center; - font-size: 150%; - font-weight: bold; - margin: .5em 0; -} - -table.month { - float: left; - border: 2px solid black; - margin-right: 1em; - margin-bottom: 1em; - border-collapse: collapse; - position: relative; -} - -.clear { - float: none; - clear: both; -} - -.month-row { - margin-left: auto; - margin-right: auto; - position: relative; -} - -td { - text-align: center; - padding: .1em; - white-space: nowrap; - border: 1px solid black; -} - -.monthname td { - font-weight: bold; - border: 1px solid black; -} - -.daynames { - border-bottom: 2px solid black; -} - -.daynames td { - font-weight: bold; - border: 1px solid black; - width: 16.66%; -} - -.prevYear { - float: left; - cursor: pointer; -} - -.nextYear { - float: right; - cursor: pointer; -} - -.today { - background-color: #a5ffff; -} - -.date-popover { - text-align: center; -} - -.holiday .small { - font-size: 75%; - font-weight: normal; -} diff --git a/content/minari/fonts/glyphicons-halflings-regular.eot b/content/minari/fonts/glyphicons-halflings-regular.eot deleted file mode 100644 index b93a495..0000000 Binary files a/content/minari/fonts/glyphicons-halflings-regular.eot and /dev/null differ diff --git a/content/minari/fonts/glyphicons-halflings-regular.svg b/content/minari/fonts/glyphicons-halflings-regular.svg deleted file mode 100644 index 94fb549..0000000 --- a/content/minari/fonts/glyphicons-halflings-regular.svg +++ /dev/null @@ -1,288 +0,0 @@ - - - \ No newline at end of file diff --git a/content/minari/fonts/glyphicons-halflings-regular.ttf b/content/minari/fonts/glyphicons-halflings-regular.ttf deleted file mode 100644 index 1413fc6..0000000 Binary files a/content/minari/fonts/glyphicons-halflings-regular.ttf and /dev/null differ diff --git a/content/minari/fonts/glyphicons-halflings-regular.woff b/content/minari/fonts/glyphicons-halflings-regular.woff deleted file mode 100644 index 9e61285..0000000 Binary files a/content/minari/fonts/glyphicons-halflings-regular.woff and /dev/null differ diff --git a/content/minari/fonts/glyphicons-halflings-regular.woff2 b/content/minari/fonts/glyphicons-halflings-regular.woff2 deleted file mode 100644 index 64539b5..0000000 Binary files a/content/minari/fonts/glyphicons-halflings-regular.woff2 and /dev/null differ diff --git a/content/minari/images/0.png b/content/minari/images/0.png deleted file mode 100644 index ca66056..0000000 Binary files a/content/minari/images/0.png and /dev/null differ diff --git a/content/minari/images/1.png b/content/minari/images/1.png deleted file mode 100644 index b04b7d3..0000000 Binary files a/content/minari/images/1.png and /dev/null differ diff --git a/content/minari/images/10.png b/content/minari/images/10.png deleted file mode 100644 index 75af837..0000000 Binary files a/content/minari/images/10.png and /dev/null differ diff --git a/content/minari/images/11.png b/content/minari/images/11.png deleted file mode 100644 index 5d62cff..0000000 Binary files a/content/minari/images/11.png and /dev/null differ diff --git a/content/minari/images/12.png b/content/minari/images/12.png deleted file mode 100644 index cb8bb51..0000000 Binary files a/content/minari/images/12.png and /dev/null differ diff --git a/content/minari/images/13.png b/content/minari/images/13.png deleted file mode 100644 index c75e877..0000000 Binary files a/content/minari/images/13.png and /dev/null differ diff --git a/content/minari/images/14.png b/content/minari/images/14.png deleted file mode 100644 index c75e877..0000000 Binary files a/content/minari/images/14.png and /dev/null differ diff --git a/content/minari/images/15.png b/content/minari/images/15.png deleted file mode 100644 index f8249d1..0000000 Binary files a/content/minari/images/15.png and /dev/null differ diff --git a/content/minari/images/16.png b/content/minari/images/16.png deleted file mode 100644 index b73cfc1..0000000 Binary files a/content/minari/images/16.png and /dev/null differ diff --git a/content/minari/images/17.png b/content/minari/images/17.png deleted file mode 100644 index 77e44ee..0000000 Binary files a/content/minari/images/17.png and /dev/null differ diff --git a/content/minari/images/18.png b/content/minari/images/18.png deleted file mode 100644 index 8e4f866..0000000 Binary files a/content/minari/images/18.png and /dev/null differ diff --git a/content/minari/images/19.png b/content/minari/images/19.png deleted file mode 100644 index 92b24e9..0000000 Binary files a/content/minari/images/19.png and /dev/null differ diff --git a/content/minari/images/2.png b/content/minari/images/2.png deleted file mode 100644 index bbf9ca4..0000000 Binary files a/content/minari/images/2.png and /dev/null differ diff --git a/content/minari/images/20.png b/content/minari/images/20.png deleted file mode 100644 index 8f6d2f8..0000000 Binary files a/content/minari/images/20.png and /dev/null differ diff --git a/content/minari/images/21.png b/content/minari/images/21.png deleted file mode 100644 index d347f2c..0000000 Binary files a/content/minari/images/21.png and /dev/null differ diff --git a/content/minari/images/22.png b/content/minari/images/22.png deleted file mode 100644 index 41aae50..0000000 Binary files a/content/minari/images/22.png and /dev/null differ diff --git a/content/minari/images/23.png b/content/minari/images/23.png deleted file mode 100644 index b8e02b4..0000000 Binary files a/content/minari/images/23.png and /dev/null differ diff --git a/content/minari/images/24.png b/content/minari/images/24.png deleted file mode 100644 index 58c190b..0000000 Binary files a/content/minari/images/24.png and /dev/null differ diff --git a/content/minari/images/25.png b/content/minari/images/25.png deleted file mode 100644 index 22a7506..0000000 Binary files a/content/minari/images/25.png and /dev/null differ diff --git a/content/minari/images/26.png b/content/minari/images/26.png deleted file mode 100644 index f4f2b83..0000000 Binary files a/content/minari/images/26.png and /dev/null differ diff --git a/content/minari/images/27.png b/content/minari/images/27.png deleted file mode 100644 index 63c0cd5..0000000 Binary files a/content/minari/images/27.png and /dev/null differ diff --git a/content/minari/images/3.png b/content/minari/images/3.png deleted file mode 100644 index a448bd8..0000000 Binary files a/content/minari/images/3.png and /dev/null differ diff --git a/content/minari/images/4.png b/content/minari/images/4.png deleted file mode 100644 index df1c12e..0000000 Binary files a/content/minari/images/4.png and /dev/null differ diff --git a/content/minari/images/5.png b/content/minari/images/5.png deleted file mode 100644 index 61c555e..0000000 Binary files a/content/minari/images/5.png and /dev/null differ diff --git a/content/minari/images/6.png b/content/minari/images/6.png deleted file mode 100644 index a116559..0000000 Binary files a/content/minari/images/6.png and /dev/null differ diff --git a/content/minari/images/7.png b/content/minari/images/7.png deleted file mode 100644 index caecd36..0000000 Binary files a/content/minari/images/7.png and /dev/null differ diff --git a/content/minari/images/8.png b/content/minari/images/8.png deleted file mode 100644 index 339a032..0000000 Binary files a/content/minari/images/8.png and /dev/null differ diff --git a/content/minari/images/9.png b/content/minari/images/9.png deleted file mode 100644 index 57332cc..0000000 Binary files a/content/minari/images/9.png and /dev/null differ diff --git a/content/minari/index.html b/content/minari/index.html deleted file mode 100644 index 1892771..0000000 --- a/content/minari/index.html +++ /dev/null @@ -1,125 +0,0 @@ - - -
-') - .html(month_name))); - - ruler = entities[month_name].entity; - element = entities[month_name].element; - - if (element != undefined) { - ruler += ', ' + element; - } - - month_header - .append( - $(' | |||||
') - .html(ruler))); - - daylist = $(' | |||||
').html(dayNames[i])); - } - - month_header.append(daylist); - month_table.append(month_header); - - month_body = $(' | |||||
')
- .attr('id', 'day-' + month_num + '-' + real_day)
- .attr('data-month', month_num)
- .attr('data-day', real_day)
- .addClass('day')
- .html(real_day));
- }
-
- month_body.append(row);
- }
-
- month_table.append(month_body);
- $(div).html(month_table);
-}
-
-function getPopoverContent() {
- list = $(this).attr('id').split('-');
- date = getDateByMinari(year, Number(list[1]), Number(list[2]));
- toolTip = $(' ')
- .addClass('date-popover')
- .html(date.toLocaleDateString('hu-HU') + ((date.leapMorkh) ? ' (Két napos ünnep)' : '')); - - moonPhasePic = getMoonPhase(date); - img = $('').attr('src', 'images/' + moonPhasePic + '.png'); - toolTip.append($(' ')).append(img); - - return toolTip; -} - -function getDateByMinari(year, month, day) { - // set date to the first day of the correct Gregorian year) - var date = new Date(year + 1873, 0, 1); - // …now substract 11 days to get the Gregorian date of the current Minari - // year’s first day. date now points to the current Minari year’s - // first day (Hëdur) - date.setDate(date.getDate() - 11); - - // Now let’s check if this Gregorian year is a leap year. We use the same - // leap year rules as the Gregorian calendar - var leapYear = (new Date(year + 1873, 1, 29).getDate() == 29); - - // Temporary set leapMorkh to false. We will set it to true later, if needed - var leapMorkh = false; - - // The day of year we are pointing at - var dayNum = 0; - - if (month == 0) { - switch (day) { - case 1: - dayNum = 1; - - break; - - case 2: - dayNum = 92; - - break; - - case 3: - dayNum = 183; - - if (leapYear) { - leapMorkh = true; - } - - break; - - case 4: - dayNum = (leapYear) ? 275 : 274; - - break; - - case 5: - dayNum = (leapYear) ? 366 : 365; - - break; - } - } else { - // Initial value of dayNum. We will increase it soon, depending of the - // holidays past this year - dayNum = (month - 1) * 30 + day; - - switch (month) { - case 1: - case 2: - case 3: - // We have only Hëdur passed, let’s add 1 - dayNum += 1; - - break; - case 4: - case 5: - case 6: - // We have Hëdur and Rideyy passed, let’s add 2 - dayNum += 2; - - break; - case 7: - case 8: - case 9: - // We have Hëdur, Rideyy and Morkh passed, let’s add 3. If this - // is a leap year, Morkh is two days long, so let’s add 4 - // instead. - dayNum += (leapYear) ? 4 : 3; - - break; - case 10: - case 11: - case 12: - // We have Hëdur, Rideyy, Morkh and Khmerd passed, let’s add 4. - // If this is a leap year, Morkh is two days long, so let’s add - // 5 instead. - dayNum += (leapYear) ? 5 : 4; - - break; - } - } - - date.setDate(date.getDate() + dayNum - 1); - date.leapMorkh = leapMorkh; - - return date; -} - -function getDayTooltip(month, day) { -} - -function yearClick(e) { - e.stopPropagation(); - inputActive = true; - $('.year').html(''); - $('#yearBox').focus(); - $('#yearBox').click(function(e) { - e.stopPropagation(); - }); - - $('#yearBox').keydown(function(e) { - if (e.which == 13) { - e.preventDefault(); - - if (!isNaN($('#yearBox').val())) { - newYear = Number($('#yearBox').val()) - $('.year').html('...'); - setYear(newYear); - $('#year').click(yearClick); - } - } - - if (e.which == 27) { - inputActive = false; - $('.year').html('' + year + ''); - $('#year').click(yearClick); - } - }); -} - -function getMoonPhase(date) { - synodic = 29.53058867; - phasePercent = ((date.getJulian() - newMoonBaseDate.getJulian()) % synodic) / synodic; - - if (phasePercent < 0) { - phasePercent += 1.0; - } - - phase = Math.floor(28 * phasePercent); - - if (phase == 28) { - phase = 0; - } - - 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 = $(' ').addClass('small').html(ruler); - - $(div).append(ruler); -} |