| 
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
7778
79
80
81
82
83
84
85
86
87
88
89
90 | 
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
 | 
-
+
-
-
-
-
+
-
-
+
-
-
-
-
+
-
 | 
        let xButton = oGrammalecte.createNode("div", {className: "grammalecte_close_button", textContent: "×", title: "Fermer la fenêtre"});
        xButton.onclick = function () { this.hide(); }.bind(this);  // better than writing “let that = this;” before the function?
        return xButton;
    }
    insertIntoPage () {
        if (this.bShadow){
            this.oShadowoGrammalecte.createStyle("content_scripts/panel.css", null, this.oShadow);.appendChild(oGrammalecte.createStyle("content_scripts/message_box.css", null, this.oShadow);                oGrammalecte.createNode("link", {rel: "stylesheet", type: "text/css", media: "all", href: oGrammalecte.sExtensionUrl + "content_scripts/panel.css"})            );            this.oShadow.appendChild(    oGrammalecte.createNode("link", {rel: "stylesheet", type: "text/css", media: "all", href: oGrammalecte.sExtensionUrl + "content_scripts/message_box.css"})this.oShadow.appendChild(this.xMessageBox);
            document.body.appendChild(this.oShadowPanel);
        } else {
            if (!document.getElementById("grammalecte_cssmsg")){            );                document.headoGrammalecte.createStyle("content_scripts/panel.css", null, document.head);.appendChild(oGrammalecte.createStyle("content_scripts/message_box.css", "grammalecte_cssmsg", document.head);                    oGrammalecte.createNode("link", {rel: "stylesheet", type: "text/css", media: "all", href: oGrammalecte.sExtensionUrl + "content_scripts/panel.css"})                );                document.head.appendChild(    oGrammalecte.createNode("link", {id: "grammalecte_cssmsg", rel: "stylesheet", type: "text/css", media: "all", href: oGrammalecte.sExtensionUrl + "content_scripts/message_box.css"})}
            document.body.appendChild(this.xMessageBox);
        }
    }
    show () {
        this.xMessageBox.style.display = "block";                ); |