summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/bg/js/templates.js8
-rw-r--r--ext/fg/css/frame.css (renamed from ext/fg/css/popup.css)0
-rw-r--r--ext/fg/js/frame.js19
-rw-r--r--ext/manifest.json2
-rw-r--r--util/tmpl/footer.html1
-rw-r--r--util/tmpl/header.html2
6 files changed, 28 insertions, 4 deletions
diff --git a/ext/bg/js/templates.js b/ext/bg/js/templates.js
index 6c424225..f6c6025a 100644
--- a/ext/bg/js/templates.js
+++ b/ext/bg/js/templates.js
@@ -1,14 +1,18 @@
(function() {
var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
templates['footer.html'] = template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
- return " </body>\n</html>\n";
+ var helper;
+
+ return " <script src=\""
+ + container.escapeExpression(((helper = (helper = helpers.root || (depth0 != null ? depth0.root : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : {},{"name":"root","hash":{},"data":data}) : helper)))
+ + "/js/frame.js\"></script>\n </body>\n</html>\n";
},"useData":true});
templates['header.html'] = template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
var helper;
return "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\">\n <title></title>\n <link rel=\"stylesheet\" href=\""
+ container.escapeExpression(((helper = (helper = helpers.root || (depth0 != null ? depth0.root : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : {},{"name":"root","hash":{},"data":data}) : helper)))
- + "/css/popup.css\">\n </head>\n <body>\n";
+ + "/css/frame.css\">\n </head>\n <body>\n";
},"useData":true});
templates['kanji.html'] = template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
var helper, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
diff --git a/ext/fg/css/popup.css b/ext/fg/css/frame.css
index 893f4e4a..893f4e4a 100644
--- a/ext/fg/css/popup.css
+++ b/ext/fg/css/frame.css
diff --git a/ext/fg/js/frame.js b/ext/fg/js/frame.js
new file mode 100644
index 00000000..868f07ce
--- /dev/null
+++ b/ext/fg/js/frame.js
@@ -0,0 +1,19 @@
+/*
+ * Copyright (C) 2016 Alex Yatskov <alex@foosoft.net>
+ * Author: Alex Yatskov <alex@foosoft.net>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+
diff --git a/ext/manifest.json b/ext/manifest.json
index b454fd97..e766c140 100644
--- a/ext/manifest.json
+++ b/ext/manifest.json
@@ -20,7 +20,7 @@
"background": {"page": "bg/background.html"},
"options_page": "bg/options.html",
"permissions": ["storage"],
- "web_accessible_resources": ["fg/css/popup.css"],
+ "web_accessible_resources": ["fg/css/frame.css", "fg/css/frame.js"],
"content_scripts": [{
"matches": ["*://*/*"],
diff --git a/util/tmpl/footer.html b/util/tmpl/footer.html
index 2ab5c0d1..3840600f 100644
--- a/util/tmpl/footer.html
+++ b/util/tmpl/footer.html
@@ -1,2 +1,3 @@
+ <script src="{{root}}/js/frame.js"></script>
</body>
</html>
diff --git a/util/tmpl/header.html b/util/tmpl/header.html
index cb9ec67c..6245099f 100644
--- a/util/tmpl/header.html
+++ b/util/tmpl/header.html
@@ -3,6 +3,6 @@
<head>
<meta charset="UTF-8">
<title></title>
- <link rel="stylesheet" href="{{root}}/css/popup.css">
+ <link rel="stylesheet" href="{{root}}/css/frame.css">
</head>
<body>