Skip to content

Commit 0f43652

Browse files
committed
Version 1.4.0 Released.
Fixed: The dispatcher issue on the input change event has been fixed: ([#11](#11)) Fixed: The current text selection issue has been fixed: ([#19](#19)) Added: The `max` and `maxlength` attribute controls have been added: ([#17](#17)) Added: The `options` parameter has been added to the `Run()` function to set the initialize options. => `KioskBoard.Run(selector, options);` Changed: The `selector` parameter has been changed to `selectorOrElement` that also can use an element instead of the query selector. => `KioskBoard.Run(selectorOrElement);` Changed: The `Merge()` function has been deprecated. Changed: Code Review.
1 parent 0bf0aab commit 0f43652

18 files changed

+408
-234
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
@1.4.0
2+
* **Fixed:** The dispatcher issue on the input change event has been fixed: ([#11](https://github.com/furcan/KioskBoard/issues/11))
3+
* **Fixed:** The current text selection issue has been fixed: ([#19](https://github.com/furcan/KioskBoard/issues/19))
4+
* **Added:** The `max` and `maxlength` attribute controls have been added: ([#17](https://github.com/furcan/KioskBoard/issues/17))
5+
* **Added:** The `options` parameter has been added to the `Run()` function to set the initialize options. => `KioskBoard.Run(selector, options);`
6+
* **Changed:** The `selector` parameter has been changed to `selectorOrElement` that also can use an element instead of the query selector. => `KioskBoard.Run(selectorOrElement);`
7+
* **Changed:** The `Merge()` function has been deprecated.
8+
* **Changed:** Code Review.
9+
10+
-----
11+
112
@1.3.3
213
* **Fixed:** `AllowMobileKeyboard` option was not working properly on iOS devices. ([#7](https://github.com/furcan/KioskBoard/issues/7))
314

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 KioskBoard - Virtual Keyboard
3+
Copyright (c) 2020 - 2021 KioskBoard: Virtual Keyboard
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

README.md

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ A pure JavaScript library for using the Virtual Keyboard.
1919
---------
2020

2121
### Current Version
22-
1.3.3 [*](https://github.com/furcan/KioskBoard/blob/master/CHANGELOG.md)
22+
1.4.0 [*](https://github.com/furcan/KioskBoard/blob/master/CHANGELOG.md)
2323

2424
---------
2525

@@ -56,15 +56,15 @@ import KioskBoard from "kioskboard";
5656
##### CSS and JS
5757

5858
```html
59-
<link rel="stylesheet" href="dist/kioskboard-1.3.3.min.css" />
59+
<link rel="stylesheet" href="dist/kioskboard-1.4.0.min.css" />
6060

61-
<script src="dist/kioskboard-1.3.3.min.js"></script>
61+
<script src="dist/kioskboard-1.4.0.min.js"></script>
6262
```
6363

6464
##### Or only JS (All in One - Internal CSS)
6565

6666
```html
67-
<script src="dist/kioskboard-aio-1.3.3.min.js"></script>
67+
<script src="dist/kioskboard-aio-1.4.0.min.js"></script>
6868
```
6969

7070
---------
@@ -96,7 +96,8 @@ KioskBoard Virtual Keyboard can be used with the `input` or `textarea` elements.
9696

9797
---------
9898

99-
##### JS => (Initialize & Run)
99+
##### JS => (Step1: Initialize)
100+
100101
```js
101102
// Initialize KioskBoard (default/all options)
102103

@@ -171,24 +172,38 @@ KioskBoard.Init({
171172
// Scrolls the document to the top of the input/textarea element. The default value is "true" as before. Prevented when "false"
172173
autoScroll: true,
173174
});
175+
```
176+
177+
##### JS => (Step2: Run)
174178

179+
```js
180+
// Select the input or the textarea element(s) to run the KioskBoard
175181

176-
// Run KioskBoard
177-
// Select any input or textarea element(s) to run KioskBoard
178182
KioskBoard.Run('.virtual-keyboard');
179183
```
184+
##### OR
185+
186+
##### JS => (Run with Init - v1.4.0 and the next versions)
187+
188+
```js
189+
// Select the input or the textarea element(s) to run the KioskBoard
190+
191+
KioskBoard.Run('.virtual-keyboard', {
192+
// ...init options
193+
});
194+
```
180195

181196
---------
182197

183198
### Merge
184-
`KioskBoard.Merge({});` function can be used to extend the Initialize function via using a specific action or event.
199+
`KioskBoard.Merge({});` function has been deprecated. (v1.4.0 and the next versions)
185200

186201
```js
187202
// The Merge function extends the initialize function for a specific action or event.
188-
KioskBoard.Merge({
189-
theme: 'dark',
190-
});
191203

204+
// KioskBoard.Merge({
205+
// theme: 'dark',
206+
// });
192207
```
193208

194209
---------

dist/kioskboard-1.3.3.min.js

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/kioskboard-1.4.0.min.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.css

Lines changed: 61 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* KioskBoard - Virtual Keyboard ('https://github.com/furcan/KioskBoard')
33
* Version: 1.0.0
44
* Author: Furkan MT ('https://github.com/furcan')
5-
* Copyright 2020 KioskBoard - Virtual Keyboard, MIT Licence ('https://opensource.org/licenses/MIT')*
5+
* Copyright 2021 KioskBoard - Virtual Keyboard, MIT Licence ('https://opensource.org/licenses/MIT')*
66
*/
77

88
/* Reset on */
@@ -620,8 +620,10 @@ section#KeyboardTypes .keyboard-types .types .demo {
620620
width: 100%;
621621
}
622622

623-
section#KeyboardThemes .keyboard-themes .themes .demo .virtual-keyboard-demo,
624-
section#KeyboardTypes .keyboard-types .types .demo .virtual-keyboard-demo {
623+
section#KeyboardThemes .keyboard-themes .themes .demo input,
624+
section#KeyboardThemes .keyboard-themes .themes .demo textarea,
625+
section#KeyboardTypes .keyboard-types .types .demo input,
626+
section#KeyboardTypes .keyboard-types .types .demo textarea {
625627
transition: all 0.2s ease-in-out;
626628
float: left;
627629
width: 100%;
@@ -636,18 +638,23 @@ section#KeyboardTypes .keyboard-types .types .demo .virtual-keyboard-demo {
636638
background: rgba(255, 255, 255, 0.5);
637639
}
638640

639-
section#KeyboardThemes .keyboard-themes .themes .demo .virtual-keyboard-demo:focus {
641+
section#KeyboardThemes .keyboard-themes .themes .demo input:focus,
642+
section#KeyboardThemes .keyboard-themes .themes .demo textarea:focus {
640643
background: #fff;
641644
}
642645

643-
section#KeyboardThemes .keyboard-themes .themes .demo .virtual-keyboard-demo::-webkit-input-placeholder,
644-
section#KeyboardTypes .keyboard-types .types .demo .virtual-keyboard-demo::-webkit-input-placeholder {
646+
section#KeyboardThemes .keyboard-themes .themes .demo input::-webkit-input-placeholder,
647+
section#KeyboardThemes .keyboard-themes .themes .demo textarea::-webkit-input-placeholder,
648+
section#KeyboardTypes .keyboard-types .types .demo input::-webkit-input-placeholder,
649+
section#KeyboardTypes .keyboard-types .types .demo textarea::-webkit-input-placeholder {
645650
transition: all 0.2s ease-in-out;
646651
color: #b8b8b8;
647652
}
648653

649-
section#KeyboardThemes .keyboard-themes .themes .demo .virtual-keyboard-demo::-moz-placeholder,
650-
section#KeyboardTypes .keyboard-types .types .demo .virtual-keyboard-demo::-moz-placeholder {
654+
section#KeyboardThemes .keyboard-themes .themes .demo input::-moz-placeholder,
655+
section#KeyboardThemes .keyboard-themes .themes .demo textarea::-moz-placeholder,
656+
section#KeyboardTypes .keyboard-types .types .demo input::-moz-placeholder,
657+
section#KeyboardTypes .keyboard-types .types .demo textarea::-moz-placeholder {
651658
transition: all 0.2s ease-in-out;
652659
color: #b8b8b8;
653660
}
@@ -686,6 +693,19 @@ footer#Footer a.github i {
686693
/* Footer off */
687694

688695
/* Code on */
696+
.code-or {
697+
font-size: 15px;
698+
line-height: 25px;
699+
margin: 0 0 25px;
700+
float: left;
701+
width: 100%;
702+
}
703+
704+
.code-deprecated {
705+
opacity: 0.3;
706+
cursor: not-allowed;
707+
}
708+
689709
code {
690710
text-align: left;
691711
font-family: "Inconsolata", monospace;
@@ -1006,3 +1026,36 @@ code span.the-button {
10061026
}
10071027
}
10081028
/* Responsive off */
1029+
1030+
/* Furcan on */
1031+
section#Furcan {
1032+
width: 100%;
1033+
}
1034+
1035+
input.furcan {
1036+
width: 100%;
1037+
height: 90px;
1038+
font-size: 1.25rem;
1039+
font-weight: 600;
1040+
border: none;
1041+
padding: 0 20px;
1042+
border-radius: 0;
1043+
background: #5decaa;
1044+
color: #1e1e1e;
1045+
}
1046+
1047+
input.furcan::placeholder {
1048+
font-weight: 300;
1049+
color: rgba(0, 0, 0, 0.2);
1050+
}
1051+
1052+
input.furcan:-ms-input-placeholder {
1053+
font-weight: 300;
1054+
color: rgba(0, 0, 0, 0.2);
1055+
}
1056+
1057+
input.furcan::-ms-input-placeholder {
1058+
font-weight: 300;
1059+
color: rgba(0, 0, 0, 0.2);
1060+
}
1061+
/* Furcan off */

0 commit comments

Comments
 (0)