%META:TOPICINFO{author="ProjectContributor" date="1605551505" format="1.1" version="1"}%
%META:TOPICPARENT{name="JSCalendarContrib"}%
---+ %TOPIC%

Inline include of [[JSCalendarContrib]] HTML for use in forms.

---++ Initializes the library

(called only once)

<verbatim class="tml">
%STARTINCLUDE%%STARTSECTION{"loadCalendar"}%%ADDTOZONE{
  "head"
  id="JSCalendarContrib/calendar-%style{default="large"}%"
  text="<link rel='stylesheet' type='text/css' media='all' href='%PUBURLPATH%/%SYSTEMWEB%/JSCalendarContrib/calendar-%style{default="large"}%.css' />
<style>.calendar {z-index:2000;}</style>"
}%%TMPL:P{
  "LIBJS"
  id="JSCalendarContrib/calendar"
  requires="JQUERYPLUGIN::FOSWIKI"
}%%TMPL:P{
  "LIBJS"
  id="JSCalendarContrib/lang/calendar-%IF{
    "defined lang and $lang!=''"
    then="%lang%"
    else="en"
  }%"
  requires="JSCalendarContrib/calendar"
}%%TMPL:P{
  "LIBJS"
  id="JSCalendarContrib/calendar-setup"
  requires="JSCalendarContrib/lang/calendar-%IF{
    "defined lang and $lang!=''"
    then="%lang%"
    else="en"
  }%"
}%%TMPL:P{
  "LIBJS"
  id="JSCalendarContrib/foswiki"
  requires="JSCalendarContrib/calendar-setup"
}%%ENDSECTION{"loadCalendar"}%%STOPINCLUDE%
</verbatim>
