12 lines
416 B
JavaScript
12 lines
416 B
JavaScript
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;
|
|
} |