mirror of https://github.com/espruino/BangleApps
Update custom.html
parent
1a6c1acce5
commit
e206bd4e1c
|
@ -1,7 +1,6 @@
|
|||
<html>
|
||||
<head>
|
||||
//<link href='fullcalendar/main.css' rel='stylesheet' />
|
||||
//<link rel="stylesheet" href="../../css/spectre.min.css">
|
||||
<link rel="stylesheet" href="../../css/spectre.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<p>Create your events on the current week. Keep in note that your events repeat weekly.</p>
|
||||
|
@ -11,50 +10,8 @@
|
|||
<script src="../../core/lib/customize.js"></script>
|
||||
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
var calendarEl = document.getElementById('calendar');
|
||||
var calendar = new FullCalendar.Calendar(calendarEl, {
|
||||
initialView: 'timeGridWeek',
|
||||
headerToolbar: {
|
||||
left: '',
|
||||
center: 'title',
|
||||
right: 'timeGridWeek,listWeek'
|
||||
},
|
||||
navLinks: true, // can click day/week names to navigate views
|
||||
editable: true,
|
||||
selectable: true,
|
||||
selectMirror: true,
|
||||
nowIndicator: true,
|
||||
editable: true,
|
||||
height: 600,
|
||||
select: function(arg) {
|
||||
var title = prompt('Event Title:');
|
||||
if (title) {
|
||||
calendar.addEvent({
|
||||
title: title,
|
||||
start: arg.start,
|
||||
end: arg.end,
|
||||
allDay: arg.allDay
|
||||
})
|
||||
}
|
||||
calendar.unselect()
|
||||
},
|
||||
eventClick: function(arg) {
|
||||
if (confirm('Are you sure you want to delete this event?')) {
|
||||
arg.event.remove()
|
||||
}
|
||||
},
|
||||
});
|
||||
calendar.render();
|
||||
});
|
||||
|
||||
var calendarEvents = calendar.getEvents();
|
||||
let schedule = []
|
||||
|
||||
// When the 'upload' button is clicked...
|
||||
document.getElementById("upload").addEventListener("click", function () {
|
||||
// get the text to add
|
||||
var text = document.getElementById("mytext").value;
|
||||
// build the app's text using a templated String
|
||||
var app = `
|
||||
require("Font8x12").add(Graphics);
|
||||
|
|
Loading…
Reference in New Issue