Update custom.html

pull/925/head
Ronin0000 2021-11-20 16:08:00 -08:00 committed by GitHub
parent 1a6c1acce5
commit e206bd4e1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 44 deletions

View File

@ -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);