Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
108 changed files
with
3,511 additions
and
2,107 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
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 was deleted.
Oops, something went wrong.
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,33 @@ | ||
import VanillaCalendar, { Options } from 'vanilla-calendar-pro'; | ||
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css'; | ||
|
||
const options: Options = { | ||
input: true, | ||
type: 'default', | ||
actions: { | ||
changeToInput(e, calendar, self) { | ||
if (!self.HTMLInputElement) return; | ||
if (self.selectedDates[0]) { | ||
self.HTMLInputElement.value = self.selectedDates[0] + " " + self.selectedTime; | ||
} else { | ||
self.HTMLInputElement.value = ''; | ||
} | ||
}, | ||
}, | ||
settings: { | ||
range: { | ||
disablePast: true, | ||
}, | ||
selection: { | ||
time: 24, | ||
}, | ||
visibility: { | ||
positionToInput: 'center', | ||
theme: 'light', | ||
}, | ||
}, | ||
}; | ||
|
||
const expires = document.getElementById('login_message_expires'); | ||
const calendar = new VanillaCalendar(expires, options); | ||
calendar.init(); |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import MicroModal from 'micromodal'; | ||
|
||
document.addEventListener('DOMContentLoaded', () => { | ||
MicroModal.show('report-modal'); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import ShowMore from 'show-more-read/dist/js/showMore.esm.js'; | ||
import Mark from 'mark.js'; | ||
|
||
const keyword = document.getElementById("keyword").value; | ||
let markInstance = null; | ||
|
||
document.addEventListener('DOMContentLoaded', function () { | ||
new ShowMore('.js-read-more', { | ||
onMoreLess: (type, object) => { | ||
markInstance.mark(keyword, { | ||
"diacritics": false | ||
}); | ||
}, | ||
regex: { | ||
image: { | ||
match: /<img([\w\W]+?)[/]?>/g, | ||
replace: '' | ||
}, | ||
blockquote: { | ||
match: /<blockquote>.*?<\/blockquote>/gi, | ||
replace: "" | ||
} | ||
|
||
}, | ||
config: { | ||
type: "text", | ||
btnClass: "o-show-more-btn", | ||
limit: 300, | ||
more: document.getElementById('read.more').value, | ||
less: document.getElementById('show.less').value, | ||
} | ||
}); | ||
|
||
markInstance = new Mark(".js-highlight"); | ||
markInstance.mark(keyword, { | ||
"diacritics": false | ||
}); | ||
}); |
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
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
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
Oops, something went wrong.