calendar.html 1.6 KB
Newer Older
Anna Wilson's avatar
Anna Wilson committed
1
---
Anna Wilson's avatar
Anna Wilson committed
2
title: Events in Drachenwald
3 4
redirect_from:
  - /events/
Anna Wilson's avatar
Anna Wilson committed
5
---
Anna Wilson's avatar
Anna Wilson committed
6

Anna Wilson's avatar
Anna Wilson committed
7
{% if jekyll.environment == "production" %}
Anna Wilson's avatar
Anna Wilson committed
8 9 10 11 12
<div  id="calendar"
      legend="true"
      links="local"
      bidlinks="true"
></div>
Anna Wilson's avatar
Anna Wilson committed
13
<script type="text/javascript" src="https://scripts.drachenwald.sca.org/calendar/v3.0/calendar.js"></script>
Anna Wilson's avatar
Anna Wilson committed
14
{% elsif jekyll.environment == "staging" %}
Anna Wilson's avatar
Anna Wilson committed
15 16 17 18 19
<div  id="calendar"
      legend="true"
      links="local"
      bidlinks="true"
></div>
Anna Wilson's avatar
Anna Wilson committed
20 21
<script type="text/javascript" src="https://sca-drachenwald.gitlab.io/events-calendar/calendar.js"></script>
{% elsif jekyll.environment == "development" %}
Anna Wilson's avatar
Anna Wilson committed
22 23 24 25 26
<div  id="calendar"
      legend="true"
      links="local"
      bidlinks="true"
></div>
Anna Wilson's avatar
Anna Wilson committed
27
<script type="text/javascript" src="http://127.0.0.1:8080/calendar.js"></script>
Anna Wilson's avatar
Anna Wilson committed
28 29 30 31 32 33 34 35 36 37 38 39 40
{% endif %}

<div id="internetexplorer"></div>

<script>
  if ( ( !!window.MSInputMethodContext && !!document.documentMode) ) {
    document.getElementById("internetexplorer").innerHTML = "<p>To give our users the functionality they need, we're unable to display the calendar in Internet Explorer. Please use another browser, or your phone. If you have feedback, please email <a href='mailto:[email protected]'>[email protected]</a>.</p>";
  }

  if ( userAgent.indexOf('MSIE') > 0 ) {
    document.getElementById("internetexplorer").innerHTML = "<p>To give our users the functionality they need, we're unable to display the calendar in Internet Explorer. Please use another browser, or your phone. If you have feedback, please email <a href='mailto:[email protected]'>[email protected]</a>.</p>";
  }

boonenf's avatar
boonenf committed
41
</script>