Accueil > Supports pédagogiques > TP et projets > Micro projet Conception et BD/Web > Exemple de code pour Joust
// Now set up the menu with a whole lot of addEntry and addChild function calls
var level1ID = -1;
var level2ID = -1;
var level3ID = -1;
var level4ID = -1;
level1ID = theMenu.addEntry(-1, "Folder", "LA DEMARCHE GLOBALE", "../ACTIVITES/demarche.html", "../ACTIVITES/demarche.html");
//Set the initial state of the folder to "open"
theMenu.entry[level1ID].isopen = true;
level2ID = theMenu.addChild(level1ID, "Folder", "IDENTIFICATION", "../ACTIVITES/identif.html", "../ACTIVITES/identif.html");
theMenu.entry[level2ID].isopen = false;
level3ID = theMenu.addChild(level2ID, "Document", "Suivre le client", "../ACTIVITES/tache00.html", "../ACTIVITES/tache00.html");
level3ID = theMenu.addChild(level2ID, "Document", "Suivre les publications", "../ACTIVITES/tache01.html", "../ACTIVITES/tache01.html");
level3ID = theMenu.addChild(level2ID, "Document", "Formaliser le besoin", "../ACTIVITES/tache02.html", "../ACTIVITES/tache02.html");
level3ID = theMenu.addChild(level2ID, "Document", "Faire un compte-rendu", "../ACTIVITES/tache03.html", "../ACTIVITES/tache03.html");
level3ID = theMenu.addChild(level2ID, "Document", "Initialiser le Dossier Affaire", "../ACTIVITES/tache04.html", "../ACTIVITES/tache04.html");
level2ID = theMenu.addChild(level1ID, "Folder", "QUALIFICATION", "../ACTIVITES/qualif.html", "../ACTIVITES/qualif.html");
theMenu.entry[level2ID].isopen = false;
level3ID = theMenu.addChild(level2ID, "Document", "Qualifier l'affaire", "../ACTIVITES/tache10.html", "../ACTIVITES/tache10.html");
level3ID = theMenu.addChild(level2ID, "Document", "Constituer le Comité de décision", "../ACTIVITES/tache11.html", "../ACTIVITES/tache11.html");
level3ID = theMenu.addChild(level2ID, "Document", "Connaître l'environnement du client", "../ACTIVITES/tache12.html", "../ACTIVITES/tache12.html");
level3ID = theMenu.addChild(level2ID, "Document", "Réaliser l'analyse concurrentielle", "../ACTIVITES/tache13.html", "../ACTIVITES/tache13.html");
level3ID = theMenu.addChild(level2ID, "Document", "Demander le GO/NOGO", "../ACTIVITES/tache14.html", "../ACTIVITES/tache14.html");
level3ID = theMenu.addChild(level2ID, "Document", "Etablir la stratégie de réponse", "../ACTIVITES/tache15.html", "../ACTIVITES/tache15.html");
level2ID = theMenu.addChild(level1ID, "Folder", "CONCEPTION", "../ACTIVITES/concept.html", "../ACTIVITES/concept.html");
theMenu.entry[level2ID].isopen = true;
level3ID = theMenu.addChild(level2ID, "Document", "Analyse des besoins", "../ACTIVITES/analyse.html", "../ACTIVITES/analyse.html");
theMenu.entry[level3ID].isopen = false;
level4ID = theMenu.addChild(level3ID, "Document", "Analyser le cahier des charges", "../ACTIVITES/tache210.html", "../ACTIVITES/tache210.html");
level4ID = theMenu.addChild(level3ID, "Document", "Tenir la RLO", "../ACTIVITES/tache211.html", "../ACTIVITES/tache211.html");
level3ID = theMenu.addChild(level2ID, "Document", "Recherche de la solution", "../ACTIVITES/rechsolution.html", "../ACTIVITES/rechsolution.html");
theMenu.entry[level3ID].isopen = false;
level4ID = theMenu.addChild(level3ID, "Document", "Valider l'analyse concurrentielle", "../ACTIVITES/tache220.html", "../ACTIVITES/tache220.html");
level4ID = theMenu.addChild(level3ID, "Document", "Choisir la solution", "../ACTIVITES/tache221.html", "../ACTIVITES/tache221.html");
level4ID = theMenu.addChild(level3ID, "Document", "Contractualiser avec les partenariats", "../ACTIVITES/tache222.html", "../ACTIVITES/tache222.html");
level4ID = theMenu.addChild(level3ID, "Document", "Constituer le sommaire de la réponse", "../ACTIVITES/tache223.html", "../ACTIVITES/tache223.html");
level4ID = theMenu.addChild(level3ID, "Document", "Elaborer la matrice de réponse", "../ACTIVITES/tache224.html", "../ACTIVITES/tache224.html");
level3ID = theMenu.addChild(level2ID, "Document", "Rédaction de la proposition", "../ACTIVITES/redaction.html", "../ACTIVITES/redaction.html");
theMenu.entry[level3ID].isopen = false;
level4ID = theMenu.addChild(level3ID, "Document", "Etablir le devis", "../ACTIVITES/tache230.html", "../ACTIVITES/tache230.html");
level4ID = theMenu.addChild(level3ID, "Document", "Etablir un planning de réalisation", "../ACTIVITES/tache231.html", "../ACTIVITES/tache231.html");
level4ID = theMenu.addChild(level3ID, "Document", "Analyser les risques majeurs", "../ACTIVITES/tache232.html", "../ACTIVITES/tache232.html");
level4ID = theMenu.addChild(level3ID, "Document", "Etablir le sommaire du PAQ", "../ACTIVITES/tache233.html", "../ACTIVITES/tache233.html");
level4ID = theMenu.addChild(level3ID, "Document", "Rédiger la proposition", "../ACTIVITES/tache234.html", "../ACTIVITES/tache234.html");
level4ID = theMenu.addChild(level3ID, "Document", "Valider la proposition", "../ACTIVITES/tache235.html", "../ACTIVITES/tache235.html");
level4ID = theMenu.addChild(level3ID, "Document", "Rédiger la Synthèse de Direction", "../ACTIVITES/tache236.html", "../ACTIVITES/tache236.html");
level4ID = theMenu.addChild(level3ID, "Document", "Tenir la RBO", "../ACTIVITES/tache237.html", "../ACTIVITES/tache237.html");
level2ID = theMenu.addChild(level1ID, "Folder", "NEGOCIATION", "../ACTIVITES/negoc.html", "../ACTIVITES/negoc.html");
theMenu.entry[level2ID].isopen = true;
level3ID = theMenu.addChild(level2ID, "Document", "Défense de la proposition", "../ACTIVITES/defense.html", "../ACTIVITES/defense.html");
theMenu.entry[level3ID].isopen = false;
level4ID = theMenu.addChild(level3ID, "Document", "Réaliser l'analyse post-soumission", "../ACTIVITES/tache310.html", "../ACTIVITES/tache310.html");
level4ID = theMenu.addChild(level3ID, "Document", "Accompagner le client", "../ACTIVITES/tache311.html", "../ACTIVITES/tache311.html");
level4ID = theMenu.addChild(level3ID, "Document", "Soutenir la proposition", "../ACTIVITES/tache312.html", "../ACTIVITES/tache312.html");
level4ID = theMenu.addChild(level3ID, "Document", "Préparer la présentation orale", "../ACTIVITES/tache313.html", "../ACTIVITES/tache313.html");
level3ID = theMenu.addChild(level2ID, "Document", "Rédaction des contrats", "../ACTIVITES/redacontra.html", "../ACTIVITES/redacontra.html");
theMenu.entry[level3ID].isopen = false;
level4ID = theMenu.addChild(level3ID, "Document", "Rédiger le contrat-client", "../ACTIVITES/tache320.html", "../ACTIVITES/tache320.html");
level4ID = theMenu.addChild(level3ID, "Document", "Rédiger les contrats-partenaires", "../ACTIVITES/tache321.html", "../ACTIVITES/tache321.html");
level4ID = theMenu.addChild(level3ID, "Document", "Rédiger le PAQ", "../ACTIVITES/tache322.html", "../ACTIVITES/tache322.html");
level4ID = theMenu.addChild(level3ID, "Document", "Informer l'équipe de réalisation", "../ACTIVITES/tache323.html", "../ACTIVITES/tache323.html");
level4ID = theMenu.addChild(level3ID, "Document", "Tenir la RBC", "../ACTIVITES/tache324.html", "../ACTIVITES/tache324.html");
level2ID = theMenu.addChild(level1ID, "Folder", "BILAN", "../ACTIVITES/bilan.html", "../ACTIVITES/bilan.html");
theMenu.entry[level2ID].isopen = false;
level3ID = theMenu.addChild(level2ID, "Document", "Réaliser le Bilan d'affaire", "../ACTIVITES/tache40.html", "../ACTIVITES/tache40.html");
level3ID = theMenu.addChild(level2ID, "Document", "Etablir un plan d'actions", "../ACTIVITES/tache41.html", "../ACTIVITES/tache41.html");
level3ID = theMenu.addChild(level2ID, "Document", "Capitaliser l'expérience", "../ACTIVITES/tache42.html", "../ACTIVITES/tache42.html");
level3ID = theMenu.addChild(level2ID, "Document", "Suivre le plan d'actions", "../ACTIVITES/tache43.html", "../ACTIVITES/tache43.html");
level2ID = theMenu.addChild(level1ID, "Folder", "REALISATION", "../ACTIVITES/realisation.html", "../ACTIVITES/realisation.html");
theMenu.entry[level2ID].isopen = false;
level3ID = theMenu.addChild(level2ID, "Document", "Passer à la réalisation", "../ACTIVITES/tache50.html", "../ACTIVITES/tache50.html");
level3ID = theMenu.addChild(level2ID, "Document", "Tenir la RLP", "../ACTIVITES/tache51.html", "../ACTIVITES/tache51.html");
level3ID = theMenu.addChild(level2ID, "Document", "Effectuer les Recettes et le PV", "../ACTIVITES/tache52.html", "../ACTIVITES/tache52.html");
level3ID = theMenu.addChild(level2ID, "Document", "Assurer le suivi commercial", "../ACTIVITES/tache53.html", "../ACTIVITES/tache53.html");