Sha256: 4dc477ffd0547707080de36cbf6358a834309b685e9f1d6f2e9648f1694a3fac
Contents?: true
Size: 1.93 KB
Versions: 1
Compression:
Stored size: 1.93 KB
Contents
{% capture modal_content %} <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="myModalLabel">{{ site.data.settings.rsvp.yes_modal_title }}</h4> </div> <div class="modal-body"> <div class="section-padding"> <p>{{ site.data.settings.rsvp.yes_modal_body }}</p> <p>{{ site.data.settings.rsvp.sms_followup_text }}</p> <div id="add-to-cal"></div> </div> </div> {% endcapture %} {% include js.html src='assets/js/ouical.min.js' %} {% assign main_event = site.data.events | where: "main_event", true | first %} {%- capture eventTitle -%} {{ site.data.couple.spouse1.short_name }}'s and {{ site.data.couple.spouse2.short_name }}'s Wedding {%- endcapture -%} <script> // const ouical = require('/assets/js/ouical.js'); $(document).ready(function () { const myCalendar = createCalendar({ options: { class: '', // You can pass an ID. If you don't, one will be generated for you id: '' }, data: { // Event title title: "{{ eventTitle | escape }}", // Event start date start: new Date(Number("{{ main_event.date | date: '%s' }}") * 1000), // Event duration (IN MINUTES) // duration: 4 * 60, // You can also choose to set an end time // If an end time is set, this will take precedence over duration end: new Date(Number("{{ main_event.endDate | date: '%s' }}") * 1000), // Event Address address: '{{ main_event.location.address }} {{ main_event.location.city }}, {{ main_event.location.state }} {{ main_event.location.zip }}', // Event Description description: "{{ main_event.calendar_description}} \n\nWebsite: {{site.url}}" } }); $('#add-to-cal').html(myCalendar); }); </script> {% include modals/modal.html content=modal_content name='RSVP Yes' modal_id='rsvp-yes-modal' %}
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-theme-easy-wedding-0.1.6 | _includes/modals/rsvp_yes.html |