polish, full dict license attribution, touchmove test

This commit is contained in:
wareya committed 2017-12-13 04:38:41 -05:00
1 parent a21695954e
commit 71e0e9cbc3
4 files changed
+19 -13

No files matched your search

+4 -2
View File
@@ -786,7 +786,8 @@ async function update_icon(enabled)
"16": "img/enabled16.png",
"32": "img/enabled32.png",
"512": "img/enabled512.png"
}},)
}},);
browser.browserAction.setTitle({title:"Nazeka (enabled)"});
}
else
{
@@ -794,7 +795,8 @@ async function update_icon(enabled)
"16": "img/action16.png",
"32": "img/action32.png",
"512": "img/action512.png"
}},)
}},);
browser.browserAction.setTitle({title:"Nazeka (disabled)"});
}
}
+1 -1
View File
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "nazeka",
"version": "0.0pre1",
"version": "0.0pre2",
"author": "Wareya",
"homepage_url": "https://github.com/wareya/nazeka",
"description": "A rikai replacement.",
+9 -8
View File
@@ -10,14 +10,15 @@
<div class=panel>
<form name=optform>
<div class="panel-section panel-section-formElements browser-style">
<input id="enabled" type="checkbox" name=enabled class=panel-formElements-item/><label for=enabled class=panel-formElements-item>Enabled</label>
<input id="compact" type="checkbox" name=compact class=panel-formElements-item/><label for=compact class=panel-formElements-item>Compact</label>
<input id="showoriginal" type="checkbox" name=showoriginal class=panel-formElements-item/><label for=showoriginal class=panel-formElements-item>Show original text</label>
<input id="superborder" type="checkbox" name=superborder class=panel-formElements-item/><label for=superborder class=panel-formElements-item>Super border</label>
<input id="fixedwidth" type="checkbox" name=fixedwidth class=panel-formElements-item/><label for=fixedwidth class=panel-formElements-item>Fixed width</label>
<input id="fixedwidthpositioning" type="checkbox" name=fixedwidthpositioning class=panel-formElements-item/><label for=fixedwidthpositioning class=panel-formElements-item>Position as though fixed width</label>
<input id="length" type="number" min="6" max="100" value="25" name=length class=panel-formElements-item/><label for=length class=panel-formElements-item>Search length (characters) (default 25, sane values are from 25 to 50)</label>
<p>This extension uses JMdict, which is licensed under the <a href="https://creativecommons.org/licenses/by-sa/3.0/">CC BY-SA 3.0</a> license. This extension is otherwise licensed under the <a href="https://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.</p>
<input id="enabled" type="checkbox" name=enabled class=panel-formElements-item/><label for=enabled class=panel-formElements-item>Enabled</label><br>
<input id="compact" type="checkbox" name=compact class=panel-formElements-item/><label for=compact class=panel-formElements-item>Compact</label><br>
<input id="showoriginal" type="checkbox" name=showoriginal class=panel-formElements-item/><label for=showoriginal class=panel-formElements-item>Show original text</label><br>
<input id="superborder" type="checkbox" name=superborder class=panel-formElements-item/><label for=superborder class=panel-formElements-item>Super border</label><br>
<input id="fixedwidth" type="checkbox" name=fixedwidth class=panel-formElements-item/><label for=fixedwidth class=panel-formElements-item>Fixed width</label><br>
<input id="fixedwidthpositioning" type="checkbox" name=fixedwidthpositioning class=panel-formElements-item/><label for=fixedwidthpositioning class=panel-formElements-item>Position as though fixed width</label><br>
<input id="length" type="number" min="6" max="100" value="25" name=length class=panel-formElements-item/><label for=length class=panel-formElements-item>Search length (characters) (default 25, sane values are from 25 to 50)</label><br>
<p>This extension uses JMdict, which is Copyright (C) 2017 The Electronic Dictionary Research and Development Group and licensed under the <a href="https://creativecommons.org/licenses/by-sa/3.0/">CC BY-SA 3.0</a> license.</p>
<p>This extension is otherwise licensed under the <a href="https://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.</p>
</div>
</form>
</div>
+5 -2
View File
@@ -639,7 +639,7 @@ let throttle = 8;
let seach_x_offset = -3;
window.addEventListener("mousemove", (event)=>
function update(event)
{
if(!settings.enabled) return;
@@ -796,6 +796,9 @@ window.addEventListener("mousemove", (event)=>
// console.log(offset);
lookup_cancel();
}
});
}
window.addEventListener("mousemove", update);
window.addEventListener("touchmove", update);