This commit is contained in:
iziram 2023-06-02 15:53:02 +02:00
parent 6bc5994ccf
commit 8ea811b45b
4 changed files with 8 additions and 2 deletions

View File

@ -69,6 +69,7 @@ function setupCheckBox(parent = document) {
* - Date
*/
function validateSelectors() {
debugger;
const action = () => {
const group_ids = getGroupIds();
@ -1141,6 +1142,7 @@ function actualizeEtud(etudid) {
* Génération de toutes les lignes étudiant
*/
function generateAllEtudRow() {
debugger;
if (isSingleEtud()) {
try {
actualizeEtud(etudid);
@ -1569,6 +1571,7 @@ function resetSelection() {
* Ajout des évents sur les boutons du modal
*/
window.onload = () => {
debugger;
modal = document.getElementById("myModal");
closeBtn = document.querySelector(".close");
timeline = document.getElementById("timeline");

View File

@ -12,6 +12,7 @@
* @returns {HTMLElement} l'élément correspondant à la mini timeline
*/
function createMiniTimeline(assiduitesArray) {
debugger;
const array = [...assiduitesArray];
const dateiso = document.getElementById("tl_date").value;
const timeline = document.createElement("div");
@ -129,6 +130,7 @@
* @param {Assiduité} assiduite l'assiduité représentée par l'élément
*/
function setupAssiduiteBuble(el, assiduite) {
debugger;
if (!assiduite) return;
el.addEventListener("mouseenter", (event) => {
const bubble = document.querySelector(".assiduite-bubble");
@ -174,6 +176,7 @@
}
function setMiniTick(timelineDate, dayStart, dayDuration) {
debugger;
const endDate = timelineDate.clone().set({ 'hour': 13, 'minute': 0 });
const duration = moment.duration(endDate.diff(dayStart)).asMinutes();
const widthPercentage = (duration / dayDuration) * 100;

View File

@ -71,7 +71,7 @@
<script>
const etudid = {{ sco.etud.id }};
const nonWorkDays = [{{ nonworkdays| safe }}];
debugger;
setupDate(() => {
if (updateDate()) {
actualizeEtud(etudid);

View File

@ -71,7 +71,7 @@
<script>
const nonWorkDays = [{{ nonworkdays| safe }}];
debugger;
updateDate();
setupDate();
setupTimeLine();