| 3,6 → 3,7 |
| var mouseX = null; |
| var mouseY = null; |
| var active = false; |
| var set = 'p, span, td, pre, div'; |
| |
| function getUrlBaseService() { |
| // provient de dictionnaire.config.js |
| 52,7 → 53,7 |
| if(motsAyantDefinition == null) { |
| getMotsADefinitions(); |
| } else { |
| ajouterDefinitions(motsAyantDefinition); |
| $(set).remplacerDefinitions(motsAyantDefinition); |
| } |
| }); |
| $('body').append(html); |
| 100,7 → 101,7 |
| url: getUrlBaseService()+'mots/', |
| success: function(data) { |
| motsAyantDefinition = data; |
| ajouterDefinitions(motsAyantDefinition); |
| $(set).remplacerDefinitions(motsAyantDefinition); |
| }, |
| dataType: "JSON", |
| global: false |
| 109,11 → 110,6 |
| ajouterListenerDefinitions(); |
| } |
| |
| function ajouterDefinitions(motsAvecDefinitions) { |
| set = 'p, span, td, pre, div'; |
| $(set).remplacerDefinitions(motsAvecDefinitions); |
| } |
| |
| function formaterTemplateMotADefinition(motOriginal) { |
| motSimplifie = supprimerAccents(motOriginal); |
| definitionHtml = '<span rel="'+motSimplifie+'" class="definition_term">' |