-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try out Tempus Dominus datetimepicker on assignments
- Loading branch information
Showing
3 changed files
with
63 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// see https://getdatepicker.com | ||
console.log('trying to import datetimepicker'); | ||
$('#assignment-picker').tempusDominus({ | ||
display: { | ||
sideBySide: true | ||
}, | ||
localization: { | ||
startOfTheWeek: 1, | ||
format: 'yyyy-MM-dd HH:mm', | ||
hourCycle: 'h23' | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,31 @@ | |
integrity="sha256-rADF2WO6GbkNb5O9gqHdjQ/XhrfnXDtPdHdRe5KQmek=" | ||
crossorigin="anonymous"> | ||
</script> | ||
|
||
<!-- Font awesome is not required provided you change the icon options --> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/js/solid.min.js"></script> | ||
|
||
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/js/fontawesome.min.js"></script> | ||
<!-- end FA --> | ||
|
||
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" crossorigin="anonymous"> | ||
</script> | ||
<script src="https://cdn.jsdelivr.net/npm/@eonasdan/[email protected]/dist/js/tempus-dominus.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@eonasdan/[email protected]/dist/js/jQuery-provider.js"></script> | ||
|
||
<link rel="stylesheet" | ||
href="https://cdn.jsdelivr.net/npm/@eonasdan/[email protected]/dist/css/tempus-dominus.css" | ||
/> | ||
|
||
|
||
<%# Datetimepicker (Tempus Dominus) %> | ||
<!-- Popperjs (needed for Tempus Dominus) --> | ||
<%# <script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" crossorigin="anonymous"></script> | ||
<!-- Tempus Dominus JavaScript --> | ||
<script src="https://cdn.jsdelivr.net/npm/@eonasdan/[email protected]/dist/js/tempus-dominus.min.js" crossorigin="anonymous"></script> | ||
<!-- Tempus Dominus Styles --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@eonasdan/[email protected]/dist/css/tempus-dominus.min.css" crossorigin="anonymous"> %> | ||
|
||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/sanitize-html.min.js" integrity="sha256-+Tha6wUu+wzAOUzilJ7AmF4OXc3CsY1aMsWopnCVwb4=" crossorigin="anonymous"></script> | ||
<script defer | ||
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js" | ||
|
@@ -59,6 +84,8 @@ | |
</script> | ||
<![endif]--> | ||
|
||
|
||
|
||
<meta name="viewport" | ||
content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
|
||
|