diff options
Diffstat (limited to '2016_mirror_browser')
17 files changed, 0 insertions, 166 deletions
diff --git a/2016_mirror_browser/chrome/icon-16.png b/2016_mirror_browser/chrome/icon-16.png Binary files differindex 79df038..260b9af 100644 --- a/2016_mirror_browser/chrome/icon-16.png +++ b/2016_mirror_browser/chrome/icon-16.png diff --git a/2016_mirror_browser/chrome/icon-32.png b/2016_mirror_browser/chrome/icon-32.png Binary files differindex 4e7aa3a..e7ffe66 100644 --- a/2016_mirror_browser/chrome/icon-32.png +++ b/2016_mirror_browser/chrome/icon-32.png diff --git a/2016_mirror_browser/chrome/icon-64.png b/2016_mirror_browser/chrome/icon-64.png Binary files differindex 32577f2..ca5ea5b 100644 --- a/2016_mirror_browser/chrome/icon-64.png +++ b/2016_mirror_browser/chrome/icon-64.png diff --git a/2016_mirror_browser/chrome/icon.png b/2016_mirror_browser/chrome/icon.png Binary files differindex 413653a..2267a4d 100644 --- a/2016_mirror_browser/chrome/icon.png +++ b/2016_mirror_browser/chrome/icon.png diff --git a/2016_mirror_browser/firefox-old/README.md b/2016_mirror_browser/firefox-old/README.md deleted file mode 100644 index e6c91e3..0000000 --- a/2016_mirror_browser/firefox-old/README.md +++ /dev/null @@ -1,2 +0,0 @@ -#mirror -This mirror flips your online activity! diff --git a/2016_mirror_browser/firefox-old/data/icon-16.png b/2016_mirror_browser/firefox-old/data/icon-16.png Binary files differdeleted file mode 100644 index 79df038..0000000 --- a/2016_mirror_browser/firefox-old/data/icon-16.png +++ /dev/null diff --git a/2016_mirror_browser/firefox-old/data/icon-32.png b/2016_mirror_browser/firefox-old/data/icon-32.png Binary files differdeleted file mode 100644 index 4e7aa3a..0000000 --- a/2016_mirror_browser/firefox-old/data/icon-32.png +++ /dev/null diff --git a/2016_mirror_browser/firefox-old/data/icon-64.png b/2016_mirror_browser/firefox-old/data/icon-64.png Binary files differdeleted file mode 100644 index 32577f2..0000000 --- a/2016_mirror_browser/firefox-old/data/icon-64.png +++ /dev/null diff --git a/2016_mirror_browser/firefox-old/data/icon.png b/2016_mirror_browser/firefox-old/data/icon.png Binary files differdeleted file mode 100644 index 32577f2..0000000 --- a/2016_mirror_browser/firefox-old/data/icon.png +++ /dev/null diff --git a/2016_mirror_browser/firefox-old/data/onoff.js b/2016_mirror_browser/firefox-old/data/onoff.js deleted file mode 100644 index 945e090..0000000 --- a/2016_mirror_browser/firefox-old/data/onoff.js +++ /dev/null @@ -1,21 +0,0 @@ -var lron = document.getElementById("lron"); -var lroff = document.getElementById("lroff"); -var udon = document.getElementById("udon"); -var udoff = document.getElementById("udoff"); - -lron.addEventListener('click', function(event) { - self.port.emit("lrmirror", "on"); -}, true); - -lroff.addEventListener('click', function() { - self.port.emit("lrmirror", "off"); -}, true); - -udon.addEventListener('click', function(event) { - self.port.emit("udmirror", "on"); -}, true); - -udoff.addEventListener('click', function() { - self.port.emit("udmirror", "off"); -}, true); - diff --git a/2016_mirror_browser/firefox-old/data/panel.html b/2016_mirror_browser/firefox-old/data/panel.html deleted file mode 100644 index e904c90..0000000 --- a/2016_mirror_browser/firefox-old/data/panel.html +++ /dev/null @@ -1,53 +0,0 @@ -<head> - <style> - body { - font-family: "Segoe UI", "Lucida Grande", Tahoma, sans-serif; - font-size: 100%; - background: white; - } - .extra-font{ - font-family: Times New Roman; - } - #button { - text-align: center; - margin-top: 15px; - margin-bottom: 5px; - } - #start { - position: absolute: - top: 50%; - } - #wrapper{ - border: 5px solid black; - padding: 10px; - } - #title{ - text-align: center; - } - #title h2{ - margin-top: 1px; - } - #settings{ - text-align: center; - } - </style> -</head> -<body> - <div id="wrapper"> - <div id="title"> - <h2>Mirror</h2> - </div> - <div id="settings"> - <div id="button"> - <p>↔ - <button type="button" id="lron">On</button> - <button type="button" id="lroff">Off</button> - </p> - <p>↕ - <button type="button" id="udon">On</button> - <button type="button" id="udoff">Off</button> - </p> - </div> - </div> - </div> -</body> diff --git a/2016_mirror_browser/firefox-old/index.js b/2016_mirror_browser/firefox-old/index.js deleted file mode 100644 index 6c143c7..0000000 --- a/2016_mirror_browser/firefox-old/index.js +++ /dev/null @@ -1,73 +0,0 @@ -var { ToggleButton } = require('sdk/ui/button/toggle'); -var panels = require("sdk/panel"); -var self = require("sdk/self").data; -var pageMod = require("sdk/page-mod"); -var state = false; - -var button = ToggleButton({ - id: "my-button", - label: "mirror", - icon: { - "16": "./icon-16.png", - "32": "./icon-32.png", - "64": "./icon-64.png" - }, - onChange: handleChange -}); - -var panel = panels.Panel({ - width: 500, - height: 180, - contentURL: self.url("panel.html"), - contentScriptFile: self.url("onoff.js"), - onHide: handleHide -}); - -function handleChange(state) { - if (state.checked) { - panel.show({ - position: button - }); - } -} - -function handleHide() { - button.state('window', {checked: false}); -} - -panel.port.on("lrmirror", function (text) { - if(text == "on"){ - state = true; - pageMod.PageMod({ - include: "*", - attachTo: ["existing", "top"], - contentScript: 'document.getElementsByTagName("body")[0].style = "transform: rotateY(180deg)"' - }); - } else if (text == "off"){ - state == false; - pageMod.PageMod({ - include: "*", - attachTo: ["existing", "top"], - contentScript: 'document.getElementsByTagName("body")[0].style = "transform: rotateY(0deg)"' - }); - } -}); - -panel.port.on("udmirror", function (text) { - if(text == "on"){ - state = true; - pageMod.PageMod({ - include: "*", - attachTo: ["existing", "top"], - contentScript: 'document.getElementsByTagName("body")[0].style = "transform: rotateX(180deg)"' - }); - } else if (text == "off"){ - state == false; - pageMod.PageMod({ - include: "*", - attachTo: ["existing", "top"], - contentScript: 'document.getElementsByTagName("body")[0].style = "transform: rotateX(0deg)"' - }); - } -}); - diff --git a/2016_mirror_browser/firefox-old/package.json b/2016_mirror_browser/firefox-old/package.json deleted file mode 100644 index 5cdbbbf..0000000 --- a/2016_mirror_browser/firefox-old/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "title": "mirror", - "name": "mirror", - "version": "0.0.1", - "icon": "resource://mirror/data/icon-32.png", - "homepage": "http://joak.nospace.at", - "description": "This mirror flips horizontally your online activity!", - "main": "index.js", - "author": "joak", - "engines": { - "firefox": ">=38.0a1" - }, - "license": "GPL", - "keywords": [ - "jetpack" - ] -} diff --git a/2016_mirror_browser/firefox/icon-16.png b/2016_mirror_browser/firefox/icon-16.png Binary files differindex 79df038..260b9af 100644 --- a/2016_mirror_browser/firefox/icon-16.png +++ b/2016_mirror_browser/firefox/icon-16.png diff --git a/2016_mirror_browser/firefox/icon-32.png b/2016_mirror_browser/firefox/icon-32.png Binary files differindex 4e7aa3a..e7ffe66 100644 --- a/2016_mirror_browser/firefox/icon-32.png +++ b/2016_mirror_browser/firefox/icon-32.png diff --git a/2016_mirror_browser/firefox/icon-64.png b/2016_mirror_browser/firefox/icon-64.png Binary files differindex 32577f2..ca5ea5b 100644 --- a/2016_mirror_browser/firefox/icon-64.png +++ b/2016_mirror_browser/firefox/icon-64.png diff --git a/2016_mirror_browser/firefox/icon.png b/2016_mirror_browser/firefox/icon.png Binary files differindex 413653a..2267a4d 100644 --- a/2016_mirror_browser/firefox/icon.png +++ b/2016_mirror_browser/firefox/icon.png |