X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2Feuphorik.js;h=4a9261ac9ec20bb392653f1db27bacf5fa42c1a7;hp=dfcefd4f7cd88380274ef199920357c9fb9057bb;hb=972919ab7f5651cd721eb6eec75f7150fdeaf347;hpb=6c0fcdfaefd072f8b0ee1d7d8f1ba2a2c1ede8ec diff --git a/js/euphorik.js b/js/euphorik.js index dfcefd4..4a9261a 100755 --- a/js/euphorik.js +++ b/js/euphorik.js @@ -15,8 +15,8 @@ // // You should have received a copy of the GNU General Public License // along with Euphorik. If not, see . - -/*jslint laxbreak:true */ + +/*jslint laxbreak:true */ // tout euphorik est contenu dans cet objet var euphorik = {}; @@ -26,8 +26,9 @@ $(document).ready( function() { var fragment = new Fragment(); var formateur = new euphorik.Formateur(); - var util = new euphorik.Util(formateur); - var client = new euphorik.Client(util); + var util = new euphorik.Util(formateur); + var communication = new Communication(); + var client = new euphorik.Client(util, communication); var pages = new euphorik.Pages(fragment); // connexion vers le serveur (utilise un cookie qui traine) @@ -56,9 +57,10 @@ $(document).ready( $("#menu .register").click(function(){ pages.afficherPage("register"); }); $("#menu .about").click(function(){ pages.afficherPage("about"); }); + // TODO : simplifier et pouvoir créer des liens par exemple : Conditions d'utilisation $("#footer .conditions").click(function(){ pages.afficherPage("conditions_utilisation"); }); - + pages.ajouterPage(new euphorik.PageMinichat(client, formateur, util), true); pages.ajouterPage(new euphorik.PageAdmin(client, formateur, util)); pages.ajouterPage(new euphorik.PageProfile(client, formateur, util));