From 59989cd78c60b4c8d089b3bed070b11eb62622b6 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 24 Apr 2016 16:18:47 -0700 Subject: [PATCH] File management --- ext/bg/js/templates.js | 8 ++++++-- ext/fg/css/{popup.css => frame.css} | 0 ext/fg/js/frame.js | 19 +++++++++++++++++++ ext/manifest.json | 2 +- util/tmpl/footer.html | 1 + util/tmpl/header.html | 2 +- 6 files changed, 28 insertions(+), 4 deletions(-) rename ext/fg/css/{popup.css => frame.css} (100%) create mode 100644 ext/fg/js/frame.js 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 " \n\n"; + var helper; + + return " \n \n\n"; },"useData":true}); templates['header.html'] = template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { var helper; return "\n\n \n \n \n \n \n \n"; + + "/css/frame.css\">\n \n \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 similarity index 100% rename from ext/fg/css/popup.css rename to 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 + * Author: Alex Yatskov + * + * 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 . + */ + + 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 @@ + 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 @@ - +