Skip to content

Commit

Permalink
Update schedule generation page for Bootstrap 5.
Browse files Browse the repository at this point in the history
  • Loading branch information
patfair committed May 9, 2024
1 parent eb44c80 commit 389664e
Show file tree
Hide file tree
Showing 9 changed files with 78 additions and 140 deletions.
4 changes: 0 additions & 4 deletions static/css/lib/bootstrap-datetimepicker.min.css

This file was deleted.

1 change: 1 addition & 0 deletions static/css/lib/tempus-dominus.min.css

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions static/js/cheesy-common.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// Copyright 2024 Team 254. All Rights Reserved.
// Author: pat@patfairbank.com (Patrick Fairbank)
//
// Common JavaScript constants and functions used across multiple pages.

const newDateTimePicker = function(id, defaultTime) {
new tempusDominus.TempusDominus(
document.getElementById(id),
{
defaultDate: defaultTime,
display: {
components: {
seconds: true,
},
icons: {
type: "icons",
time: "bi bi-clock",
date: "bi bi-calendar-week",
up: "bi bi-arrow-up",
down: "bi bi-arrow-down",
previous: "bi bi-chevron-left",
next: "bi bi-chevron-right",
today: "bi bi-calendar-check",
clear: "bi bi-trash",
close: "bi bi-x",
},
},
localization: {
format: "yyyy-MM-dd hh:mm:ss T",
},
}
);
};
Loading

0 comments on commit 389664e

Please sign in to comment.