101 lines
1.7 KiB
JavaScript
101 lines
1.7 KiB
JavaScript
/**
|
|
* création d'emploi du temps avec des zones découpées en catégorie
|
|
* cela permet de parcourir tous les aspects de la méthodologie PARA sur différents créneaux
|
|
* @type {{duration: string, start: string, content: null}}
|
|
*/
|
|
|
|
const timespan_base = {
|
|
start: "8",
|
|
duration: "60", // minutes
|
|
content: null
|
|
}
|
|
const days = [{
|
|
label: "lundi"
|
|
}, {
|
|
label: "mardi"
|
|
}, {
|
|
label: "mercredi"
|
|
}, {
|
|
label: "jeudi"
|
|
}, {
|
|
label: "vendredi"
|
|
}, {
|
|
label: "samedi"
|
|
}, {
|
|
label: "dimanche"
|
|
},
|
|
]
|
|
// préremplir avec des créneaux réservés
|
|
|
|
const hours_spans = [
|
|
{
|
|
start: "8",
|
|
duration: "60", // minutes
|
|
label: "matin",
|
|
color: "white"
|
|
},
|
|
{
|
|
start: "12",
|
|
duration: "60", // minutes
|
|
label: "midi bouffe",
|
|
color: "white"
|
|
},
|
|
{
|
|
start: "16",
|
|
duration: "30", // minutes
|
|
label: "goûter",
|
|
color: "white"
|
|
},
|
|
{
|
|
start: "19",
|
|
duration: "30", // minutes
|
|
label: "bouffe soir",
|
|
color: "white"
|
|
},
|
|
{
|
|
start: "19",
|
|
duration: "30", // minutes
|
|
label: "préparation dodo",
|
|
color: "white"
|
|
},
|
|
|
|
]
|
|
|
|
const ressources = [
|
|
{
|
|
label: "social sorting"
|
|
},
|
|
{
|
|
label: "gestion de l'information"
|
|
},
|
|
{
|
|
label: "lecture"
|
|
}, {
|
|
|
|
label: "architecture"
|
|
}, {
|
|
label: "climat"
|
|
}, {
|
|
label: "nucléaire"
|
|
}, {
|
|
label: "dessins"
|
|
}, {
|
|
label: "partage de documents"
|
|
}, {
|
|
label: "recherche et éducation"
|
|
},
|
|
{
|
|
label: "emploi du temps"
|
|
},
|
|
]
|
|
|
|
|
|
function displayDays() {
|
|
|
|
days.forEach((elem, index) => {
|
|
|
|
console.log('*' , elem.label)
|
|
})
|
|
}
|
|
|
|
displayDays(); |