ADDED gc_lang/fr/webext/img/logo150_text.png Index: gc_lang/fr/webext/img/logo150_text.png ================================================================== --- gc_lang/fr/webext/img/logo150_text.png +++ gc_lang/fr/webext/img/logo150_text.png cannot compute difference between binary files Index: gc_lang/fr/webext/panel/main.css ================================================================== --- gc_lang/fr/webext/panel/main.css +++ gc_lang/fr/webext/panel/main.css @@ -159,10 +159,21 @@ #home_page #thanks { padding: 20px 0 0 0; border-top: 1px solid hsl(210, 20%, 88%); font-size: 14px; } + +#conj_button { + margin: 0 auto; + width: 100px; + padding: 2px 10px; + background-color: hsl(210, 50%, 50%); + color: hsl(210, 10%, 96%); + cursor: pointer; + font-size: 14px; + border-radius: 3px; +} /* Help */ #ui_options_page { Index: gc_lang/fr/webext/panel/main.html ================================================================== --- gc_lang/fr/webext/panel/main.html +++ gc_lang/fr/webext/panel/main.html @@ -28,18 +28,19 @@

Grammalecte remercie

La Mouette

Index: gc_lang/fr/webext/panel/main.js ================================================================== --- gc_lang/fr/webext/panel/main.js +++ gc_lang/fr/webext/panel/main.js @@ -56,10 +56,13 @@ else if (xElem.id.startsWith("ui_option_")) { storeUIOptions(); } else if (xElem.id.startsWith("link_")) { browser.tabs.create({url: xElem.dataset.url}); + } + else if (xElem.id == "conj_button") { + openConjugueurTab(); } } else if (xElem.className.startsWith("select")) { showPage(xElem.dataset.page); }/* else if (xElem.tagName === "A") { openURL(xElem.getAttribute("href")); @@ -137,10 +140,23 @@ function showTestResult (sText) { document.getElementById("tests_result").textContent = sText; } + +function openConjugueurTab () { + if (bChrome) { + browser.tabs.create({ + url: browser.extension.getURL("panel/conjugueur.html") + }); + return; + } + let xConjTab = browser.tabs.create({ + url: browser.extension.getURL("panel/conjugueur.html") + }); + xConjTab.then(onCreated, onError); +} /* UI options */