wip
This commit is contained in:
parent
3ca28a9374
commit
a202817b98
@ -35,8 +35,9 @@
|
|||||||
<script src="/bg/js/api.js"></script>
|
<script src="/bg/js/api.js"></script>
|
||||||
<script src="/bg/js/dictionary.js"></script>
|
<script src="/bg/js/dictionary.js"></script>
|
||||||
<script src="/bg/js/options.js"></script>
|
<script src="/bg/js/options.js"></script>
|
||||||
<script src="/bg/js/popup.js"></script>
|
|
||||||
<script src="/mixed/js/japanese.js"></script>
|
<script src="/mixed/js/japanese.js"></script>
|
||||||
<script src="/mixed/js/request.js"></script>
|
<script src="/mixed/js/request.js"></script>
|
||||||
|
|
||||||
|
<script src="/bg/js/popup.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
window.yomichan_frame = new class extends Display {
|
window.yomichan_frame = new class extends Display {
|
||||||
constructor() {
|
constructor() {
|
||||||
super($('#spinner'), $('#content'));
|
super($('#spinner'), $('#definitions'));
|
||||||
$(window).on('message', this.onMessage.bind(this));
|
$(window).on('message', this.onMessage.bind(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
window.yomichan_frontend = new class {
|
class Frontend {
|
||||||
constructor() {
|
constructor() {
|
||||||
this.popup = new Popup();
|
this.popup = new Popup();
|
||||||
this.popupTimer = null;
|
this.popupTimer = null;
|
||||||
@ -121,7 +121,7 @@ window.yomichan_frontend = new class {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onResize() {
|
onResize() {
|
||||||
this.onSearchClear();
|
this.searchClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
onBgMessage(action, params, sender, callback) {
|
onBgMessage(action, params, sender, callback) {
|
||||||
@ -255,6 +255,7 @@ window.yomichan_frontend = new class {
|
|||||||
|
|
||||||
this.lastTextSource = null;
|
this.lastTextSource = null;
|
||||||
}
|
}
|
||||||
}();
|
}
|
||||||
|
|
||||||
|
window.yomichan_frontend = new Frontend();
|
||||||
window.yomichan_frontend.prepare();
|
window.yomichan_frontend.prepare();
|
||||||
|
@ -42,7 +42,7 @@ hr {
|
|||||||
right: 5px;
|
right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#orphan {
|
#error-orphaned {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user