Browse Source

minor update

pull/141/head
abhidj0090 4 years ago
parent
commit
61d39dfcd0
2 changed files with 3 additions and 2 deletions
  1. 1
    1
      assets/js/script.js
  2. 2
    1
      layouts/events/single.html

+ 1
- 1
assets/js/script.js View File

@@ -145,7 +145,7 @@ function downloadEvent(){
var location = $('#location').val();
var begin = $('#start-date').val();
var end = $('#end-date').val();
var filename = 'event.ics';
var filename = $('filename').val();
var cal = ics();
cal.addEvent(subject, description, location, begin, end);
//cal.addEvent(subject, description, location, begin, end); // yes, you can have multiple events :-)

+ 2
- 1
layouts/events/single.html View File

@@ -18,10 +18,11 @@
{{ .Content }}
</div>
<input type="hidden" id="subject" value="{{.Title }}"/>
<input type="hidden" id="description" value="{{.Content }}"/>
<input type="hidden" id="description" value="{{ .Params.calendar_description? .Params.calendar_description:.Content }}"/>
<input type="hidden" id="location" value="Kolkata, IN"/>
<input type="hidden" id="start-date" value="{{.Params.event_start_date }}"/>
<input type="hidden" id="end-date" value="{{.Params.event_end_date }}"/>
<input type="hidden" id="filename" value="{{ .Params.calendar_filename? .Params.calendar_filename:.Title }}"/>
<button class="clndr btn btn-main" onclick="downloadEvent()">
<i class="ti-calendar"></i>Block Calender</button>
{{ if site.Params.post_share }}

Loading…
Cancel
Save