A simple numeric keyboard for amazfit band 7, GTS 4, GTS 4 mini and GTS 3.
- Download the utils folder at the same level as the page folder.
- The constructor accept one parameter: the coordinate "y" of the keyboard this is for example if you want to display something before the keyboard you can.
- You can use the file example.js(put in the page folder) to see the keyboard in action
- Add this line to the page you want to display the keyboard:
import { keyboard_band7 } from '../utils/keyboard' //add or remove ../ depends of your page folder location
- Create an instance:
const keyboard = new keyboard_band7()
- Get text:
keyboard.text_value
- For GTS 4 and gts 3:
import { keyboard_gts3_4 } from '../utils/keyboard'
- For GTS 4 mini:
import { keyboard_gts4_mini } from '../utils/keyboard'
This is my first project using javascript so maybe there are ways to improve the quality of the code.
Let me know if you have any ideas or recommendations to improve.