Difference between revisions of "Widget:Calendar"
From DFM Wiki
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...") |
EricThrift (talk | contribs) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <div id="calendar_widget"></div> | + | <noinclude>This is a basic widget to include the DFM calendar. It relies on ajax to retrieve calendar data from https://driedfishmatters.org/cgi-bin/calendar.</noinclude> |
+ | <includeonly><div id="calendar_widget"></div> | ||
<script> | <script> | ||
window.addEventListener('load', function() { | window.addEventListener('load', function() { | ||
Line 9: | Line 10: | ||
} | } | ||
}; | }; | ||
− | xhttp.open("GET", " | + | xhttp.open("GET", "/calendar.html", true); |
xhttp.send(); | xhttp.send(); | ||
}) | }) | ||
</script> | </script> | ||
+ | </includeonly> |
Latest revision as of 15:53, 18 February 2021
This is a basic widget to include the DFM calendar. It relies on ajax to retrieve calendar data from https://driedfishmatters.org/cgi-bin/calendar.