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 @@ - - - - Calendar of the Minari - - - - - - - - - - - - - - -
-
...
- -
Hëður
-
-
-
-
-
-
Rideyy
-
-
-
-
-
-
Morkh
-
-
-
-
-
-
Khmerd
-
-
-
-
-
-
Chamog
- -
- - - diff --git a/content/minari/js/minari.js b/content/minari/js/minari.js deleted file mode 100644 index be25484..0000000 --- a/content/minari/js/minari.js +++ /dev/null @@ -1,563 +0,0 @@ -var dayNames = new Array( - 'Mirdu', - 'Hëmi', - 'Drak', - 'Þodon', - 'Charm', - 'Ro’unn' -); - -var monthNames = new Array( - 'Mëbel', - 'Dirann', - 'Ma’uþ', - 'Gerub', - 'Þrei', - 'Dimoc', - 'Xentor', - 'Mëðïr', - 'Draþ', - 'Quaden', - 'Ridïmel', - 'Rodom' -); - -var entities = { - "Hëður": { - "entity": "Garquon", - "element": "Meren" - }, - "Mëbel": { - "entity": "Þoraðrin", - "element": "Aðun" - }, - "Dirann": { - "entity": "Detërien", - "element": "Merðen" - }, - "Ma’uþ": { - "entity": "Elin", - "element": "Fronn" - }, - "Rideyy": { - "entity": "Hëriel", - "element": "Enðir" - }, - "Gerub": { - "entity": "Iliþon", - "element": "Miþon" - }, - "Þrei": { - "entity": "Amenar", - "element": undefined - }, - "Dimoc": { - "entity": "Iminiru", - "element": "Sëdur" - }, - "Morkh": { - "entity": "Luminar", - "element": "Holar" - }, - "Xentor": { - "entity": "Motimor", - "element": "Rort" - }, - "Mëðïr": { - "entity": "Mirian", - "element": "Ilšir" - }, - "Draþ": { - "entity": "Heloor", - "element": undefined - }, - "Khmerd": { - "entity": "Zuþeron", - "element": "Gord" - }, - "Quaden": { - "entity": "Umonar", - "element": "Ulquon" - }, - "Ridïmel": { - "entity": "Feiriamen", - "element": "Reina" - }, - "Rodom": { - "entity": "Nozoru", - "element": "Zima" - }, - "Chamog": { - "entity": "Ketirai", - "element": "Loar" - } -}; - -var newMoonBaseDate = new Date(2005, 4, 8, 3, 48); - -Date.prototype.isLeap = function() { - return new Date(this.getFullYear(), 1, 29).getDate() == 29; -} - -Date.prototype.getJulian = function() { - return Math.floor((this / 86400000) - (this.getTimezoneOffset()/1440) + 2440587.5); -} - -/* - * Add the getDOY() method to Date; it returns the day of year. - */ -Date.prototype.getDOY = function() { - var onejan = new Date(this.getFullYear(), 0, 1); - - return Math.ceil((this - onejan) / 86400000); -} - -Date.prototype.getMinariDate = function() { - var year, thisYear; - - var today = new Date(this); - today.setHours(0); - today.setMinutes(0); - today.setSeconds(0); - today.setMilliseconds(0); - today.setDate(today.getDate() + 11); - - var minariLeap = today.isLeap(); - var doy = this.getDOY(); - var minariYear = today.getFullYear() - 1873; - var minariMonth = 0; - var minariDay = 0; - var minariDOY = 0; - var minariWeekday = 0; - var minariSpecialDay = -1; - - switch (doy) { - case 0: - minariMonth = 0; - minariDay = 0; - minariSpecialDay = 0; - - break; - case 91: - minariMonth = 0; - minariDay = 0; - minariSpecialDay = 1; - - break - case 182: - minariMonth = 0; - minariDay = 0; - minariSpecialDay = 2; - - break; - case 183: - if (minariLeap) { - minariMonth = 0; - minariDay = 0; - minariSpecialDay = 3; - } - - break; - - case 273: - if (!minariLeap) { - minariMonth = 0; - minariDay = 0; - minariSpecialDay = 4; - } - - break; - - case 274: - if (minariLeap) { - minariMonth = 0; - minariDay = 0; - minariSpecialDay = 4; - } - - break; - - case 364: - if (!minariLeap) { - minariMonth = 0; - minariDay = 0; - minariSpecialDay = 5; - } - - break; - - case 365: - if (minariLeap) { - minariMonth = 0; - minariDay = 0; - minariSpecialDay = 5; - } - - break; - } - - if (minariSpecialDay == -1) { - var decr = 0; - minariDOY = doy; - - if (minariDOY > 0) decr++; - if (minariDOY > 91) decr++; - if (minariDOY > 182) decr++; - - if ((minariDOY > 183) && minariLeap) decr++; - if ((minariDOY > 273) && !minariLeap) decr++; - if ((minariDOY > 274) && minariLeap) decr++; - - minariDOY -= decr - 1; - minariMonth = Math.ceil(minariDOY / 30); - minariDay = minariDOY % 30; - - if (minariDay == 0) minariDay = 30; - - minariWeekday = minariDay % 6; - } - - return { - year: minariYear, - month: minariMonth, - day: minariDay, - special: minariSpecialDay - } -} - -function setYear(newYear) { - // If newYear is not set, go to current year - if (newYear == undefined) { - var today = new Date(); - today.setDate(today.getDate() + 11); - newYear = Number(today.getFullYear() - 1873); - } - - year = newYear; - - document.title = year + ' – ' + base_title; - $('#year').html(year); - - $(todayId).removeClass('today'); - - if (year == thisYear) { - thisDay = new Date(); - thisDay.setDate(thisDay.getDate() + 11); - checkLeap = new Date(thisDay.getFullYear(), 2, 29); - isLeap = (checkLeap.getDate() == 29); - thisDay.setFullYear(thisDay.getFullYear() - 1873); - month = 0; - dayNum = thisDay.getDOY(); - - switch (dayNum) { - case 0: - day = 1; - break; - case 91: - day = 2; - break; - case 182: - day = 3; - break; - case 183: - if (isLeap) { - day = 3; - break; - } - case 273: - if (!isLeap) { - break; - } - case 274: - if (isLeap) { - day = 4; - break; - } - case 364: - if (!isLeap) { - day = 5; - break; - } - case 365: - if (isLeap) { - day = 5; - break; - } - default: - if (isLeap) { - if (dayNum > 274) { - dayNum -= 3; - } else if (dayNum > 183) { - dayNum -= 2; - } else if (dayNum > 182) { - dayNum -= 1; - } - } else { - if (dayNum > 273) { - dayNum -= 2; - } else if (dayNum > 182) { - dayNum -= 1; - } - } - - if (dayNum > 91) { - dayNum -= 1; - } - - if (dayNum > 0) { - dayNum -= 1; - } - - month = Math.ceil(dayNum / 30); - day = dayNum - ((month - 1) * 30) + 1; - - break; - } - - todayId = '#day-' + month + '-' + day; - - if (year == thisYear) { - $(todayId).addClass('today'); - } - } -} - -function genMonthTable(div) { - var month_table = $('') - .addClass('month') - .addClass('col-xs-12') - .addClass('col-lg-3'); - var month_header = $(''); - - month_num = $(div).attr('data-month'); - month_name = monthNames[month_num - 1]; - month_header - .append( - $('') - .addClass('monthname') - .append( - $('') - .addClass('monthrulers') - .append( - $('') - .addClass('daynames'); - - for (i = 0; i < 6; i++) { - daylist.append($(''); - - for (week = 0; week < 5; week++) { - row = $(''); - - for (day = 0; day < 6; day++) { - real_day = week * 6 + day + 1; - row.append( - $('
') - .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); -}