FontFlex is a user-friendly an

FontFlex - DEV

FontFlex is a versatile framework for effortless management and customization of font sizes in buttons and text areas. It empowers developers to create visually consistent and aesthetically pleasing user interfaces.

Usage Recommended Add .gitmodules file, on same level of your repo where .git directory is located, if You have not done already. Open your prefered terminal in repo directory. Use git to add submodule: git submodule add https://github.com/jasjs1/FontFlex.git <path> Update submodule if needed.

Example:

git submodule add https://github.com/jasjs1/FontFlex.git src/vendor/fontflex

it will put automatically in .../repo/src/vendor/fontflex

Important Notices 1. Folder Path

Do not change any of the link, or script folder paths. This can cause the FontFlex to not be functional, unless you change the folder paths.

<script src="/scripts/createFormatting.js"></script> <link rel="stylesheet" href="/FontFlexComponents/styles/formatting.css">

If you do change any folder paths ensure that you change the folder path in this file: 'buttons.html'. Change these lines:

<script src="/scripts/createFormatting.js"></script> <link rel="stylesheet" href="/styles/formatting.css"> 2. Text area ID

Ensure that you change this line to the textarea that you want FontFlex to be workingo on.

const textarea = document.getElementById('test-textarea');

Change 'test-textarea' to the ID of the textarea (or other elements) that you want to have FontFlex to be working on.

版权声明:

1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。
2、网站不提供资料下载,如需下载请到原作者页面进行下载。