diff --git a/www/commands/html_panel-aoc-calendar.php b/www/commands/html_panel-aoc-calendar.php new file mode 100644 index 0000000..fd42fcc --- /dev/null +++ b/www/commands/html_panel-aoc-calendar.php @@ -0,0 +1,16 @@ + intval($_GET['year']), + 'nav' => boolval($_GET['nav']), + 'linkheader' => boolval($_GET['linkheader']), + 'ajax' => boolval($_GET['ajax']), + 'frame' => false, + 'frameid' => strval($_GET['frameid']), +]; +require (__DIR__ . '/../fragments/panel_aoc_calendar.php'); diff --git a/www/data/css/styles.css b/www/data/css/styles.css index 197e1be..61cd5e7 100644 --- a/www/data/css/styles.css +++ b/www/data/css/styles.css @@ -1180,6 +1180,12 @@ html, body { font-weight: bold; } +.aoc_calendar_header_title a { + color: #000000; + font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif; + text-decoration: none; +} + .aoc_calendar_header_link.aoc_prev { flex-grow: 0; padding-left: 0.5em; diff --git a/www/data/css/styles.min.css b/www/data/css/styles.min.css index 8f534c1..e2e9758 100644 --- a/www/data/css/styles.min.css +++ b/www/data/css/styles.min.css @@ -227,6 +227,7 @@ html,body{margin:0;padding:0;height:100%} .aoc_calendar_header{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:.5em;background:#888} .aoc_calendar_header_link{display:flex;color:#000;text-decoration:none} .aoc_calendar_header_title{flex-grow:0;display:flex;color:#000;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:bold} +.aoc_calendar_header_title a{color:#000;font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;text-decoration:none} .aoc_calendar_header_link.aoc_prev{flex-grow:0;padding-left:.5em} .aoc_calendar_header_link.aoc_next{flex-grow:0;padding-right:.5em} .aoc_calendar_header_link.aoc_link_hidden{visibility:hidden} diff --git a/www/data/css/styles_blogview_aoc.scss b/www/data/css/styles_blogview_aoc.scss index 1f980df..0e3ae40 100644 --- a/www/data/css/styles_blogview_aoc.scss +++ b/www/data/css/styles_blogview_aoc.scss @@ -36,6 +36,12 @@ font-weight: bold; } +.aoc_calendar_header_title a { + color: $LAYER2_HEADER_FG; + font-family: $FONT_HEADER; + text-decoration: none; +} + .aoc_calendar_header_link.aoc_prev { flex-grow: 0; padding-left: 0.5em; diff --git a/www/data/javascript/aoc_panel_interactive.js b/www/data/javascript/aoc_panel_interactive.js new file mode 100644 index 0000000..3c90593 --- /dev/null +++ b/www/data/javascript/aoc_panel_interactive.js @@ -0,0 +1,12 @@ +function changeAOCPanel(year, shownav, linkheader, ajax, frameid) +{ + let xhr = new XMLHttpRequest(); + xhr.open('GET', '/api/html::panel_aoc_calendar?year='+year+'&nav='+shownav+'&linkheader='+linkheader+'&ajax='+ajax+'&frameid='+frameid); + xhr.onload = function() + { + if (xhr.status === 200) document.getElementById(frameid).innerHTML = xhr.responseText; + }; + xhr.send(); + + return true; +} \ No newline at end of file diff --git a/www/fragments/blogview_aoc_list.php b/www/fragments/blogview_aoc_list.php index 81c9a0e..4af7a92 100644 --- a/www/fragments/blogview_aoc_list.php +++ b/www/fragments/blogview_aoc_list.php @@ -26,7 +26,7 @@ $year = $post['extras']['aoc:year']; $year, 'nav'=>true]; + $PARAM_AOCCALENDAR = ['year' => $year, 'nav'=>true, 'linkheader'=>false, 'ajax'=>false]; require (__DIR__ . '/../fragments/panel_aoc_calendar.php') ?> diff --git a/www/fragments/panel_aoc.php b/www/fragments/panel_aoc.php index c8eae59..ce70235 100644 --- a/www/fragments/panel_aoc.php +++ b/www/fragments/panel_aoc.php @@ -1,20 +1,20 @@