From 13322cdf7d388ba5cc1b6f81f192157fba88e8fb Mon Sep 17 00:00:00 2001 From: Shaun Tabone Date: Tue, 10 Oct 2017 20:43:43 +0200 Subject: [PATCH] Added new options page Added IT layout New options page --- background.js | 4 +- buttons/Thumbs.db | Bin 2560 -> 0 bytes icons/Thumbs.db | Bin 9216 -> 0 bytes keyboard.html | 22 +-- keyboard_it.html | 96 ++++++++++++ manifest.json | 2 +- options.html | 381 +++++++++++++-------------------------------- options/script.js | 138 ++++++++++++++++ options/styles.css | 261 +++++++++++++++++++++++++++++++ script.js | 2 +- 10 files changed, 620 insertions(+), 286 deletions(-) delete mode 100644 buttons/Thumbs.db delete mode 100644 icons/Thumbs.db create mode 100644 keyboard_it.html create mode 100644 options/script.js create mode 100644 options/styles.css diff --git a/background.js b/background.js index 0994085..4555196 100644 --- a/background.js +++ b/background.js @@ -94,7 +94,9 @@ chrome.extension.onRequest.addListener(function(request, sender, sendResponse) { chrome.tabs.sendRequest(tab.id, "openUrlBar"); sendResponse({data: "ok" }); }); - } + } else if (request.method == "createTab") { + chrome.tabs.create({ url: request.url }); + } else { sendResponse({}); } diff --git a/buttons/Thumbs.db b/buttons/Thumbs.db deleted file mode 100644 index 7d5a63cfe7db21461ddbddc35bba9326b241ee61..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2560 zcmca`Uhu)fjZzO8(10BSGsD0CoD6J8;*3Bx2!nwD0|OI~0pkDr|NlQkkbwcn90fxt z1pWfu3W`4%9zsqZbt)A?Ac!F!2um0g7+e|hfOHWERh%?3c5AT}ESZ8ZeCA&J2p=qiv5E&#M2?tfzKX8{^^AD4k- zh=c5f0aCSt;tUjapf~}Q0jxk8ROYio`7m=w>ERgy62N!{#r;DdzVo7+gFCOK^6*X1 z8=V1u?z~)5TtH!7PY;(MAPrI~!2wDf56W$S04c`eAa^H*b?0PW0y!+{j=qiz3>*8o z|0IGEQMadyV~B_M+bP~$2NZZ*dATK+RUywbnP$@p_5hBBj`7a~?k~9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f1vHK#QgLKsV?+8L?j9Q} z>-kuvl_`eggf{rZji<-)2L}f#w{PFZxaequOw3}z9&wwW+up8TO~tP^;8d5K3aM@d zR*7InZ5fxr@59E%=ge>hI=bVeB7bO%+PvQm4-a((;e?3_l{3aqpFX83QeDP%%Biof z-vh4fWrGa_^hyzX(gPa68_vBK8@p;RNJANe4HId;Ql#Bo^MvIys~Ky1lfH?G$ID&V#j0AeKum8mVVgxt-^XEr$zn{OPnxl=h=z1%iWVJ$MNkj9_!3pA+ z{qYZm5e;jm$7H%vqQ|w) zvx&zi0S&qNz7tLd!C3n_yGOgN>&L@l`dxVIOoBt*)?-x&$~;aEj@!Z_BHn>FZ+@oV zTZj$~4XsjTdzC+vRf6K+n4zYoHeFX_xsT40b^glSy(ihR3fvKw9S)jmgAd5%b>!#T zM~~i40QZ++=Mw4wt~xzE?Q$-zr_Cl;QIt+vw|wgIaX?^JlTSwxIL9}1bI12FGdFLu ztTs5d$;4*SDA6gCs=D6X)bv6+cZ-4Odfv?Y1^a78MhF_h^8y*WYi4yBq=FL^xpakx1g7m)pPpz-Xs=HUZV=Cq-7m-Jzd@N&CSh2UxvXk zEm!5tV6$Q+71Q&3@$s*!s`}V?M29wT)qbIhi7TzK_VoP1u@~6Be0Mg=jo9HczKnq< zakw1*(-rKmx7>k!#`~D>fI^|BhirG(I>M=m{9lOB1kOxO*82MRq*r%7p$Mv~s{6VW zxt1;7wX)q+HPE4V&D8XSPs$e|`gpjfr$?LlWk$yNi$rd#w@*|n{$rY73j xa;74e*p`m)Mx+z diff --git a/keyboard.html b/keyboard.html index b4b3211..0d86a6b 100644 --- a/keyboard.html +++ b/keyboard.html @@ -33,7 +33,7 @@ 5 6 - - ( + ) @@ -42,7 +42,7 @@ - +
2 3 +)(
@@ -51,7 +51,7 @@ - +
. * $EnterEnter
@@ -82,7 +82,7 @@ ) ( / - + ^ 1 2 3 @@ -97,23 +97,23 @@ @ " * - + ~ 4 5 6 - + ? ! ' - } + _ < > - - - 7 + ` + 7 8 9 @@ -127,7 +127,7 @@ # , + - + % 0 . @@ -135,4 +135,4 @@ - + \ No newline at end of file diff --git a/keyboard_it.html b/keyboard_it.html new file mode 100644 index 0000000..64ef1a4 --- /dev/null +++ b/keyboard_it.html @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + + + + + + + + + + + +
qwertyuiopBackspace
+ + + + + + + + + + + + + + + + +
asdfghjkl'Enter
+ + + + + + + + + + + + + + + + + + +
zxcvbnm,.?@URL
+ + + + + + + + +
&123
diff --git a/manifest.json b/manifest.json index 04bd59e..c2b3701 100644 --- a/manifest.json +++ b/manifest.json @@ -24,7 +24,7 @@ "keyboard_en.html", "keyboard_ru.html", "style.css", - "options.js", + "options/*", "toggle.html", "toggle.js", "icons/*", diff --git a/options.html b/options.html index 2f05515..7bfa35f 100644 --- a/options.html +++ b/options.html @@ -1,281 +1,118 @@ - - -Virtual Keyboard Settings - - + + + Virtual Keyboard Settings + + -
- -
-

Keyboard Layout

- - - - - - - - - - - -
Available Layouts:Chosen Layouts:
- - -
- -
- -
-
-

Behaviour

- - - - -
- -
- - +

Virtual Keyboard Settings

+
+ +
+

Keyboard Layout

+ + + + + + + + + + + +
Available Layouts:Chosen Layouts:
+ + + +
+ +
+ +
+
+

Behaviour

+ + + + +
+ +
+ + +
+

User Interface (UI)

+ + + + + +
+