summaryrefslogtreecommitdiffstats
path: root/pages/popup
diff options
context:
space:
mode:
authorSimonBrazell <simon@brazell.com.au>2020-03-21 20:34:32 +1100
committerSimonBrazell <simon@brazell.com.au>2020-03-21 20:34:32 +1100
commitabb1115b58ea2c48031eeef20a983b4e7fed918f (patch)
treeb3380fdb6df02e36e24f492d3592f4572e6ff9e6 /pages/popup
parent75e4b6a69cbb94c6394ec7e0b53039e3fd648f7d (diff)
downloadprivacy-redirect-abb1115b58ea2c48031eeef20a983b4e7fed918f.tar.gz
privacy-redirect-abb1115b58ea2c48031eeef20a983b4e7fed918f.tar.bz2
privacy-redirect-abb1115b58ea2c48031eeef20a983b4e7fed918f.zip
Address issues #21, #22, #23, #24, #25 & #26v1.1.16
Diffstat (limited to 'pages/popup')
-rw-r--r--pages/popup/open.svg5
-rw-r--r--pages/popup/popup.html9
-rw-r--r--pages/popup/popup.js4
3 files changed, 17 insertions, 1 deletions
diff --git a/pages/popup/open.svg b/pages/popup/open.svg
new file mode 100644
index 0000000..04f56c1
--- /dev/null
+++ b/pages/popup/open.svg
@@ -0,0 +1,5 @@
+<svg xmlns='http://www.w3.org/2000/svg' width='512' height='512' viewBox='0 0 512 512'>
+ <path d='M384,224V408a40,40,0,0,1-40,40H104a40,40,0,0,1-40-40V168a40,40,0,0,1,40-40H271.48' style='fill:none;stroke:#FFF;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px'/>
+ <polyline points='336 64 448 64 448 176' style='fill:none;stroke:#FFF;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px'/>
+ <line x1='224' y1='288' x2='440' y2='72' style='fill:none;stroke:#FFF;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px'/>
+</svg> \ No newline at end of file
diff --git a/pages/popup/popup.html b/pages/popup/popup.html
index 40cf3e7..2f05f87 100644
--- a/pages/popup/popup.html
+++ b/pages/popup/popup.html
@@ -8,7 +8,7 @@
<link href="../styles.css" rel="stylesheet">
</head>
-<body>
+<body class="popup">
<header>
<div class="logo-container">
<img src="../../images/logo.png" alt="Privacy Redirect logo">
@@ -90,6 +90,13 @@
</datalist>
</section>
+ <footer>
+ <a class="button" id="more-options">
+ <span>More Options&nbsp;</span>
+ <img height="18px" src="open.svg" alt="more-options" />
+ </a>
+ </footer>
+
<script src="./popup.js"></script>
</body>
diff --git a/pages/popup/popup.js b/pages/popup/popup.js
index 9b30c03..172a66e 100644
--- a/pages/popup/popup.js
+++ b/pages/popup/popup.js
@@ -103,3 +103,7 @@ disableBibliogram.addEventListener('change', event => {
disableOsm.addEventListener('change', event => {
browser.storage.sync.set({ disableOsm: !event.target.checked });
});
+
+document.querySelector('#more-options').addEventListener('click', () => {
+ browser.runtime.openOptionsPage();
+});