diff --git a/ts/finDuJeuPanel.ts b/ts/finDuJeuPanel.ts
new file mode 100644
index 0000000..28900ff
--- /dev/null
+++ b/ts/finDuJeuPanel.ts
@@ -0,0 +1,26 @@
+import PanelManager from "./panelManager";
+
+export default class FinDuJeuPanel {
+ private readonly _panelManager: PanelManager;
+
+ public constructor(panelManager: PanelManager) {
+ this._panelManager = panelManager;
+ }
+
+ public afficher(): void {
+ let titre = "Fermeture de SUTOM";
+ let contenu =
+ "
" +
+ "Suite à une demande de la part de France Télévisions de ne plus utiliser le mot « SUTOM », j'ai décidé de fermer le jeu.
" +
+ "Le dernier mot sera vendredi 25 mars.
" +
+ "Merci à toutes les personnes qui ont joué.
" +
+ "Vous pouvez retrouver plus d'information concernant cette fermeture sur mon compte twitter, et le thread associé.
" +
+ "
" +
+ "Jonathan" +
+ "
";
+
+ this._panelManager.setContenu(titre, contenu);
+ this._panelManager.setClasses(["regles-panel"]);
+ this._panelManager.afficherPanel();
+ }
+}
diff --git a/ts/gestionnaire.ts b/ts/gestionnaire.ts
index e8e6485..8f0e008 100644
--- a/ts/gestionnaire.ts
+++ b/ts/gestionnaire.ts
@@ -15,6 +15,7 @@ import ConfigurationPanel from "./configurationPanel";
import AudioPanel from "./audioPanel";
import ThemeManager from "./themeManager";
import InstanceConfiguration from "./instanceConfiguration";
+import FinDuJeuPanel from "./finDuJeuPanel";
export default class Gestionnaire {
private _grille: Grille | null = null;
@@ -62,6 +63,8 @@ export default class Gestionnaire {
this._resultats = new Array>();
this._audioPanel = new AudioPanel(this._config);
this._panelManager = new PanelManager();
+ let finDuJeuPanel = new FinDuJeuPanel(this._panelManager);
+ finDuJeuPanel.afficher();
this._themeManager = new ThemeManager(this._config);
this._reglesPanel = new ReglesPanel(this._panelManager);
this._finDePartiePanel = new FinDePartiePanel(this._datePartieEnCours, this._panelManager);
@@ -260,6 +263,6 @@ export default class Gestionnaire {
private afficherReglesSiNecessaire(): void {
if (this._config.afficherRegles !== undefined && !this._config.afficherRegles) return;
- this._reglesPanel.afficher();
+ // this._reglesPanel.afficher();
}
}