uiCtrl = function (dfn) { //------------- node this.ctnr = null; this.nod = null; this.idc = null; this.valeur = 0; //------------- mode this.mod = "unq"; this.stl = "cmnd"; this.thm = { nature: "", actif: ""}, this.itmR= null; //------------- event action this.apresAffichage = null; this.surClic = null ; //------------------ //------------------ parametres for (var k in dfn) { this[k]=dfn[k]; } if (this.ctnr && typeof(this.ctnr)=="string") { this.ctnr=document.querySelector(this.ctnr); } this.ouvrir(); }; //------------------------------------------------------------------- uiCtrl.prototype.ouvrir=function () { this.afficher(); if (this.apresAffichage) { this.apresAffichage(); } }; //------------------------------------------------------------------- uiCtrl.prototype.afficher=function () { this.nod = document.createElement("div"); this.nod.className = "ui-chk H Group"; var ici=this, htm=""; htm = "