Overview
| Comment: | [fx] Don't auto load CSS - Ajuste time for autoheigth |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | fx | shadowdom |
| Files: | files | file ages | folders |
| SHA3-256: |
b652ab4e9d3c02d80f825100f169ef23 |
| User & Date: | IllusionPerdu on 2018-10-19 23:18:44 |
| Other Links: | branch diff | manifest | tags |
Context
|
2018-10-20
| ||
| 10:42 | [fx] More elegant solution for adding styles check-in: 933990893e user: IllusionPerdu tags: fx, shadowdom | |
|
2018-10-19
| ||
| 23:18 | [fx] Don't auto load CSS - Ajuste time for autoheigth check-in: b652ab4e9d user: IllusionPerdu tags: fx, shadowdom | |
| 16:36 | [fx] Fix auto-ajust height of TextFormateur check-in: cea1ffe126 user: IllusionPerdu tags: fx, shadowdom | |
Changes
Modified gc_lang/fr/webext/content_scripts/init.js from [677d02ceb6] to [f45d12f413].
| ︙ | |||
135 136 137 138 139 140 141 | 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | - + - + |
this.lMenu.length = 0; // to clear an array
this.listenRightClick();
this.createMenus();
},
createTFPanel: function () {
if (this.oTFPanel === null) {
|
| ︙ | |||
228 229 230 231 232 233 234 235 236 237 238 239 240 241 | 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 | + + + + |
xGrammalectePort.onMessage.addListener(function (oMessage) {
let {sActionDone, result, dInfo, bEnd, bError} = oMessage;
let sText = "";
switch (sActionDone) {
case "init":
oGrammalecte.sExtensionUrl = oMessage.sUrl;
// Start
oGrammalecte.listenRightClick();
oGrammalecte.createMenus();
oGrammalecte.observePage();
break;
case "parseAndSpellcheck":
if (!bEnd) {
oGrammalecte.oGCPanel.addParagraphResult(result);
} else {
oGrammalecte.oGCPanel.stopWaitIcon();
}
|
| ︙ | |||
325 326 327 328 329 330 331 | 329 330 331 332 333 334 335 | - - - - - - - - |
case "rescanPage":
oGrammalecte.rescanPage();
break;
default:
console.log("[Content script] Unknown command: " + sActionDone);
}
});
|
Modified gc_lang/fr/webext/content_scripts/menu.css from [b015cf663a] to [0e552e9d81].
| ︙ | |||
44 45 46 47 48 49 50 | 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | - - - - - |
}
}
/*
Menu
*/
|
| ︙ |
Modified gc_lang/fr/webext/content_scripts/menu.js from [0e7a0e2ea5] to [c804b43d48].
| ︙ | |||
8 9 10 11 12 13 14 | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 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 | - - + + - + - + + + + + + + |
class GrammalecteMenu {
constructor (nMenu, xNode) {
this.xNode = xNode;
this.sMenuId = "grammalecte_menu" + nMenu;
|
| ︙ |
Modified gc_lang/fr/webext/content_scripts/message_box.js from [570e256791] to [85fc74a091].
| ︙ | |||
70 71 72 73 74 75 76 77 78 79 80 81 82 83 | 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | + + + + + + + + |
);
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.head.appendChild(
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";
}
|
| ︙ |
Modified gc_lang/fr/webext/content_scripts/panel.js from [c76d6fb8d0] to [d7c31535a7].
| ︙ | |||
109 110 111 112 113 114 115 116 117 118 119 120 121 122 | 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | + + + + + + + + + + + + + + |
);
this.oShadow.appendChild(
oGrammalecte.createNode("link", {rel: "stylesheet", type: "text/css", media: "all", href: oGrammalecte.sExtensionUrl + "content_scripts/panel_tf.css"})
);
this.oShadow.appendChild(this.xPanel);
document.body.appendChild(this.oShadowPanel);
} else {
if (!document.getElementById("grammalecte_csspanel")){
document.head.appendChild(
oGrammalecte.createNode("link", {id: "grammalecte_csspanel", rel: "stylesheet", type: "text/css", media: "all", href: oGrammalecte.sExtensionUrl + "content_scripts/panel.css"})
);
document.head.appendChild(
oGrammalecte.createNode("link", {rel: "stylesheet", type: "text/css", media: "all", href: oGrammalecte.sExtensionUrl + "content_scripts/panel_gc.css"})
);
document.head.appendChild(
oGrammalecte.createNode("link", {rel: "stylesheet", type: "text/css", media: "all", href: oGrammalecte.sExtensionUrl + "content_scripts/panel_lxg.css"})
);
document.head.appendChild(
oGrammalecte.createNode("link", {rel: "stylesheet", type: "text/css", media: "all", href: oGrammalecte.sExtensionUrl + "content_scripts/panel_tf.css"})
);
}
document.body.appendChild(this.xPanel);
}
}
show () {
this.xPanel.style.display = "block";
}
|
| ︙ |
Modified gc_lang/fr/webext/content_scripts/panel_tf.css from [4f1042a727] to [be63cf139a].
| ︙ | |||
109 110 111 112 113 114 115 116 117 118 119 120 121 122 | 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | + |
color: hsl(210, 0%, 100%);
}
div#grammalecte_tf_reset:hover {
background-color: hsl(210, 50%, 40%);
}
progress#grammalecte_tf_progressbar {
width: 360px;
height: 29px;
}
span#grammalecte_tf_time_res {
width: 60px;
padding: 5px 10px;
}
div#grammalecte_tf_apply {
background-color: hsl(120, 50%, 50%);
|
| ︙ |
Modified gc_lang/fr/webext/manifest.json from [e5bad7cd5c] to [1e877b8ece].
| ︙ | |||
44 45 46 47 48 49 50 | 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 72 73 74 75 | - - - - - - - - - - - - - - - |
{
"matches": ["<all_urls>"],
"exclude_matches": [
"*://*.wikisource.org/*",
"*://*.wikipedia.org/*",
"*://*.wiktionary.org/*"
],
|
| ︙ |