1
0

ajax aoc panel (main site)

This commit is contained in:
2020-01-06 21:58:09 +01:00
parent c12b217b37
commit a6539cf081
11 changed files with 99 additions and 17 deletions

View 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;
}