- $("#menu .register").click(function(){ pages.afficherPage("register"); });
- $("#menu .about").click(function(){ pages.afficherPage("about"); });
-
- // TODO : simplifier et pouvoir créer des liens par exemple : <span class="lien" href="conditions">Conditions d'utilisation</span>
- $("#footer .conditions").click(function(){ pages.afficherPage("conditions_utilisation"); });
+ $("#menu .register").click(function(){ pages.displayPage("register"); });
+ $("#menu .about").click(function(){ pages.displayPage("about"); });
+
+ // TODO: simplification : such link[1] should be created and automatically open the right page without
+ // explicitly add a page.
+ // [1] : <a class="pageLink" href="termes_of_use">Terms of use</a>
+ $("#footer .termsOfUse").click(function(){ pages.displayPage("terms_of_use"); });
+
+ pages.addPage(new euphorik.PageMinichat(client, formater, util, communication), true);
+ pages.addPage(new euphorik.PageAdmin(client, formater, util, communication));
+ pages.addPage(new euphorik.PageProfile(client, formater, util));
+ pages.addPage(new euphorik.PageRegister(client, formater, util));
+ pages.addPage(new euphorik.PageAbout(client, formater, util, communication));
+ pages.addPage("terms_of_use");