Widget:Calendar

From DFM Wiki
Revision as of 11:07, 18 February 2021 by EricThrift (talk | contribs) (Created page with "<div id="calendar_widget"></div> <script> window.addEventListener('load', function() { console.log('Loading calendar') var xhttp = new XMLHttpRequest(); xhttp.onreadys...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<script> window.addEventListener('load', function() {

   console.log('Loading calendar')
 var xhttp = new XMLHttpRequest();
 xhttp.onreadystatechange = function() {
   if (this.readyState == 4 && this.status == 200) {
    document.getElementById("calendar_widget").innerHTML = this.responseText;
   }
 };
 xhttp.open("GET", "/cgi-bin/calendar", true);
 xhttp.send();

}) </script>