diff --git a/Makefile b/Makefile index 272c202..fb79718 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ install: uninstall cp background.js /usr/share/webext/i2psetproxy.js@eyedeekay.github.io cp proxy.js /usr/share/webext/i2psetproxy.js@eyedeekay.github.io cp info.js /usr/share/webext/i2psetproxy.js@eyedeekay.github.io + cp content.js /usr/share/webext/i2psetproxy.js@eyedeekay.github.io cp info.css /usr/share/webext/i2psetproxy.js@eyedeekay.github.io cp window.html /usr/share/webext/i2psetproxy.js@eyedeekay.github.io cp manifest.json /usr/share/webext/i2psetproxy.js@eyedeekay.github.io/ diff --git a/README.md b/README.md index b817cbf..f2f0ed0 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Features * [done] **Change** the color of the browser window to indicate that i2p is in use * [done-ish] **Reset** the HTTP Proxy tunnel to generate a new destination on-demand * it does this by working in conjunction with this [standalone HTTP proxy](https://github.com/eyedeekay/httptunnel), currently disabled* - * [soon] **Provide** help in a variety of languages. + * [ready] **Provide** help in a variety of languages. Usage with standalone HTTP Proxy -------------------------------- diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 1fbdf04..cdc99bb 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -27,6 +27,10 @@ "message": "You are now free to browse the eepWeb! Your browser is now configured to browse anonymously on the I2P network. As you browse, your traffic will be routed through other network nodes to disguise it's origin, both from the server and from the nodes themselves.", "description": "Help Message" }, + "helpMessage": { + "message": "Get additional help", + "description": "Help Message" + }, "newsMessage": { "message": "Visit the I2P News to learn the latest about i2p.", "description": "Help Message" diff --git a/info.js b/info.js index ceb8360..72ba0f9 100644 --- a/info.js +++ b/info.js @@ -3,14 +3,23 @@ document.addEventListener("click", (e) => { return browser.windows.getCurrent(); } - if (e.target.id === "window-create-panel") { + if (e.target.id === "window-create-help-panel") { let createData = { type: "panel", incognito: true, }; let creating = browser.windows.create(createData); creating.then(() => { - console.log("The panel has been created"); + console.log("The help panel has been created"); + }); + } else if (e.target.id === "window-create-news-panel") { + let createData = { + type: "panel", + incognito: true, + }; + let creating = browser.windows.create(createData); + creating.then(() => { + console.log("The news panel has been created"); }); } else if (e.target.id === "generate-fresh-tunnel") { function RefreshIdentity(){ @@ -36,9 +45,3 @@ document.addEventListener("click", (e) => { e.preventDefault(); }); - -//var newsMessage = document.getElementById('window-create-help-panel'); -//newsMessage.textContent = browser.i18n.getMessage("newsMessage"); - -//var resetLinkID = document.getElementById('controlHostText'); -//resetLinkId.textContent = controlhosttext; diff --git a/window.html b/window.html index 6e18261..a2568d4 100644 --- a/window.html +++ b/window.html @@ -21,9 +21,11 @@ themselves. - -
+
+ + + Open the Help
Visit the I2P News