Grammalecte  Check-in [327355a98f]

Overview
Comment:[fx] openURL in main panel
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | fx | webext2
Files: files | file ages | folders
SHA3-256: 327355a98ffcea4b4be4b5054df330302d4bee76799e36bebfea2ebebf9e5ef2
User & Date: olr on 2017-08-30 10:31:11
Other Links: branch diff | manifest | tags
Context
2017-08-30
12:55
[fx] open conjugueur with wrapper buttons + code revamping check-in: f02079aa95 user: olr tags: fx, webext2
10:31
[fx] openURL in main panel check-in: 327355a98f user: olr tags: fx, webext2
2017-08-29
16:09
[fx] move openURL to parent object check-in: dce23987ab user: olr tags: fx, webext2
Changes

Modified gc_lang/fr/webext/panel/main.css from [66079c1d8f] to [8da5f9dfef].

44
45
46
47
48
49
50


51
52
53
54
55
56

57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
.cyan {         background-color: hsl(180, 50%, 50%); color: hsl(0, 0%, 96%); }
.cyan:hover {   background-color: hsl(180, 60%, 40%); color: hsl(0, 0%, 100%); }
.green {        background-color: hsl(120, 50%, 40%); color: hsl(120, 10%, 96%); }
.green:hover {  background-color: hsl(120, 60%, 30%); color: hsl(120, 10%, 96%); }
.blue {         background-color: hsl(210, 50%, 50%); color: hsl(210, 10%, 96%); }
.blue:hover {   background-color: hsl(210, 60%, 40%); color: hsl(210, 10%, 96%); }




/* links */

a:link, a:visited {
    color: hsl(210, 70%, 40%);
    text-decoration: none;

}
a:hover, a:active {
    text-shadow: 0 0 2px hsl(210, 80%, 60%);
}

a.extlink:hover:after {
    content: " >";
}


/* Main classes */

html {
    box-sizing: border-box;
    width: 400px;







>
>



|


>

|



<
<
<







44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64



65
66
67
68
69
70
71
.cyan {         background-color: hsl(180, 50%, 50%); color: hsl(0, 0%, 96%); }
.cyan:hover {   background-color: hsl(180, 60%, 40%); color: hsl(0, 0%, 100%); }
.green {        background-color: hsl(120, 50%, 40%); color: hsl(120, 10%, 96%); }
.green:hover {  background-color: hsl(120, 60%, 30%); color: hsl(120, 10%, 96%); }
.blue {         background-color: hsl(210, 50%, 50%); color: hsl(210, 10%, 96%); }
.blue:hover {   background-color: hsl(210, 60%, 40%); color: hsl(210, 10%, 96%); }

.border { border: 1px solid hsl(210, 20%, 80%); }


/* links */

.link {
    color: hsl(210, 70%, 40%);
    text-decoration: none;
    cursor: pointer;
}
.link:hover {
    text-shadow: 0 0 2px hsl(210, 80%, 60%);
}






/* Main classes */

html {
    box-sizing: border-box;
    width: 400px;

Modified gc_lang/fr/webext/panel/main.html from [e85dfabd88] to [9bcb099834].

30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
        <section id="home_page" class="page">

          <div id="mainlogo">
            <div class="center"><img src="../img/logo120_text.png" alt="Grammalecte"></div>
            <p class="underline center">
              Version ${version}
            </p>
            <p class="center">
              <a id="website" class="simplelink" href="#" onclick="return false;">Site web</a>
            </p>
            <p class="notice center">
              Grammalecte est un correcteur grammatical open&nbsp;source sous <a href="https://www.gnu.org/licenses/gpl.html">licence GPL 3</a>
            </p>
          </div>
          
          <div id="thanks">
            <p class="center" data-l10n-id="thanks1">Grammalecte remercie</p>
            <p class="center">
              <a id="mainsponsor" href="#" onclick="return false;">
                <img src="../img/LaMouette.png" alt="La Mouette" style="border: 1px solid hsl(210, 20%, 80%);" />
              </a>
            </p>
            <p class="center">
              <a id="mainsponsor2" href="#" onclick="return false;">
                <img src="../img/Algoo_logo.png" alt="Algoo" style="border: 1px solid hsl(210, 20%, 80%);" />
              </a>
            </p>
            <p class="center">
              <a id="othersponsors" class="link" href="https://www.dicollecte.org/?thanks" onclick="return false;">
                et tous ceux qui l’ont soutenu
              </a>
            </p>
          </div>
        </section> <!-- #home_page -->

        <section id="help_page" class="page">
          <h1>AIDE</h1>
          <div id="help_section">







<
|
<

|





|
<
<
<
<
|
<
<
<
<
<
|
|
<







30
31
32
33
34
35
36

37

38
39
40
41
42
43
44
45




46





47
48

49
50
51
52
53
54
55
        <section id="home_page" class="page">

          <div id="mainlogo">
            <div class="center"><img src="../img/logo120_text.png" alt="Grammalecte"></div>
            <p class="underline center">
              Version ${version}
            </p>

            <p id="link_website" class="link center" data-url="http://grammalecte.net">Site web</p>

            <p class="notice center">
              Grammalecte est un correcteur grammatical open&nbsp;source sous <span id="link_gpl" class="link" data-url="https://www.gnu.org/licenses/gpl.html">licence GPL 3</span>
            </p>
          </div>
          
          <div id="thanks">
            <p class="center" data-l10n-id="thanks1">Grammalecte remercie</p>
            <p class="center"><img id="link_sponsor1" class="link border" src="../img/LaMouette.png" alt="La Mouette" data-url="http://www.lamouette.org/?from=grammalecte-fx" /></p>




            <p class="center"><img id="link_sponsor2" class="link border" src="../img/Algoo_logo.png" alt="Algoo" data-url="https://www.algoo.fr/?from=grammalecte-fx" /></p>





            <p id="link_othersponsors" class="link center" data-url="http://grammalecte.net/?thanks">
              et tous ceux qui l’ont soutenu

            </p>
          </div>
        </section> <!-- #home_page -->

        <section id="help_page" class="page">
          <h1>AIDE</h1>
          <div id="help_section">
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
          </div>
        </section> <!-- #sc_options_page -->

        <section id="test_page" class="page">
          <div id="test_cmd">
            <h1>ZONE DE TEST</h1>
            <p>Section de contrôle pour le développement du logiciel…</p>
            <div><a href="https://www.dicollecte.org/test.html" target="_blank">Page de test</a></div>
            <textarea id="text_to_test" rows="10"></textarea>
            <div id="fulltests_button" class="button blue">Tests complets</div> <div id="text_to_test_button" class="button green fright">Analyser</div>
          </div>
          <pre id="tests_result"></pre>
        </section> <!-- #test_page -->

      </div> <!-- #page -->







|







96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
          </div>
        </section> <!-- #sc_options_page -->

        <section id="test_page" class="page">
          <div id="test_cmd">
            <h1>ZONE DE TEST</h1>
            <p>Section de contrôle pour le développement du logiciel…</p>
            <p id="link_testpage" class="link" data-url="https://www.dicollecte.org/test.html">Page de test</p>
            <textarea id="text_to_test" rows="10"></textarea>
            <div id="fulltests_button" class="button blue">Tests complets</div> <div id="text_to_test_button" class="button green fright">Analyser</div>
          </div>
          <pre id="tests_result"></pre>
        </section> <!-- #test_page -->

      </div> <!-- #page -->

Modified gc_lang/fr/webext/panel/main.js from [dc636eef89] to [cfdce4f016].

41
42
43
44
45
46
47



48
49
50
51
52
53
54
            else if (xElem.id.startsWith("option_")) {
                browser.runtime.sendMessage({
                    sCommand: "setOption",
                    dParam: {sOptName: xElem.dataset.option, bValue: xElem.checked},
                    dInfo: {}
                });
            }



        } else if (xElem.className.startsWith("select")) {
            showPage(xElem.dataset.page);
        }/* else if (xElem.tagName === "A") {
            openURL(xElem.getAttribute("href"));
        }*/
    },
    false







>
>
>







41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
            else if (xElem.id.startsWith("option_")) {
                browser.runtime.sendMessage({
                    sCommand: "setOption",
                    dParam: {sOptName: xElem.dataset.option, bValue: xElem.checked},
                    dInfo: {}
                });
            }
            else if (xElem.id.startsWith("link_")) {
                browser.tabs.create({url: xElem.dataset.url});
            }
        } else if (xElem.className.startsWith("select")) {
            showPage(xElem.dataset.page);
        }/* else if (xElem.tagName === "A") {
            openURL(xElem.getAttribute("href"));
        }*/
    },
    false