ajax aoc panel (main site)
This commit is contained in:
@@ -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;
|
||||
|
||||
1
www/data/css/styles.min.css
vendored
1
www/data/css/styles.min.css
vendored
@@ -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}
|
||||
|
||||
@@ -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;
|
||||
|
||||
12
www/data/javascript/aoc_panel_interactive.js
Normal file
12
www/data/javascript/aoc_panel_interactive.js
Normal file
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user