1 2moment.locale('id'); 3 4 5document.addEventListener('DOMContentLoaded', function () { 6 var calendarEl = document.getElementById('calendar'); 7 8 var calendar = new FullCalendar.Calendar(calendarEl, { 9 plugins: ['list', 'googleCalendar'], 10 timeZone: 'UTC +7', 11 locale: 'id', 12 defaultView: 'listWeek', 13 views: { 14 listDay: {buttonText: 'Harian'}, 15 listWeek: {buttonText: 'Mingguan'}, 16 listMonth: {buttonText: 'Bulanan'} 17 }, 18 19 header: { 20 left: 'title', 21 center: '', 22 right: 'listDay,listWeek,listMonth' 23 }, 24 googleCalendarApiKey: 'AIzaSyCWWOJsucDlGUziKvsNAnZySgju5_yC6ak', 25 eventSources: [ 26 { 27 googleCalendarId: '[email protected]' 28 }, 29 { 30 googleCalendarId: '[email protected]', 31 className: 'nice-event' 32 }, 33 { 34 googleCalendarId: '[email protected]', 35 className: 'nice-event' 36 }, 37 ] 38 }); 39 40 calendar.render(); 41}); 42 43var $ = jQuery; 44$(function () { 45 $('#gcf-custom-jadwal-terdekat').gCalFlow({ 46 calid: '[email protected]', 47 maxitem: 3, 48 mode: 'upcoming', 49 no_items_html: "<h4>Tidak ada Jadwal Acara Terdekat</h4>", 50 daterange_formatter: function (start_date, end_date, allday_p) { 51 function pad(n) { 52 return n < 10 ? "0" + n : n; 53 } 54 var getmonth = pad(end_date.getMonth() + 1) 55 var namaBulan = moment(getmonth, 'MM').format('MMM'); 56 var startday = start_date.getDate(); 57 var endday = end_date.getUTCDate(); 58 if (startday === endday) { 59 return pad(startday) + " <br> " + namaBulan; 60 } else { 61 return pad(startday) + "-" + pad(endday) + " " + namaBulan; 62 } 63 64 } 65 66 }); 67} 68); 69 70
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.