### Install Tooltip.js with npm Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/form1099MISC-sdk/TBS_FORM1099MISC_FRONTEND/src/styles/js/README.md Use this command to install Tooltip.js using npm. ```bash npm install tooltip.js --save ``` -------------------------------- ### Install Tooltip.js with yarn Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/form1099MISC-sdk/TBS_FORM1099MISC_FRONTEND/src/styles/js/README.md Use this command to install Tooltip.js using yarn. ```bash yarn add tooltip.js ``` -------------------------------- ### Example Display Layout Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/form1099K-sdk/TBS_FORM1099K_FRONTEND/src/styles/css/icons-mdi/preview.html Flexbox-based layout for displaying icon examples, allowing for wrapping and specific alignment. ```css div.examples { display: flex; flex-wrap: wrap; margin: 0.5rem 1.25rem; } div.examples > div { display: flex; margin-right: 0.5rem; margin-bottom: 0.5rem; } div.examples > div > div:first-child { display: flex; padding: 0.5rem; border-radius: 0.25rem; box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.4); background: #FFF; z-index: 1; align-items: center; justify-content: center; } div.examples > div > div:first-child + div { display: flex; margin-left: -0.25rem; padding: 0.5rem 0.75rem 0.5rem 1rem; background: #222; border-radius: 0 0.25rem 0.25rem 0; } div.examples > div > div:first-child + div > code { color: #FFF; align-self: center; } div.examples > div > div.dark:first-child { background: #444; } div.examples i { display: flex; } div.examples-size > div > div:first-child { min-width: 3rem; } ``` -------------------------------- ### Install Popper.js with Bower Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/form1099MISC-sdk/TBS_FORM1099MISC_FRONTEND/src/styles/js/README.md Use this command to install Popper.js using Bower. ```bash bower install popper.js --save ``` -------------------------------- ### Install Popper.js with NuGet Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/form1099MISC-sdk/TBS_FORM1099MISC_FRONTEND/src/styles/js/README.md Use this command to install Popper.js using NuGet. ```powershell PM> Install-Package popper.js ``` -------------------------------- ### Install Popper.js with yarn Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/form1099MISC-sdk/TBS_FORM1099MISC_FRONTEND/src/styles/js/README.md Use this command to install Popper.js using yarn. ```bash yarn add popper.js ``` -------------------------------- ### Install Popper.js with npm Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/form1099MISC-sdk/TBS_FORM1099MISC_FRONTEND/src/styles/js/README.md Use this command to install Popper.js using npm. ```bash npm install popper.js --save ``` -------------------------------- ### Example Display Layout Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/tin-matching-recipients-sdk/TBS_TIN_MATCHING_RECIPIENTS_FRONTEND/src/styles/css/icons-mdi/preview.html Styles a flex container for displaying examples, allowing them to wrap and defining margins. ```css div.examples { display: flex; flex-wrap: wrap; margin: 0.5rem 1.25rem; } div.examples > div { display: flex; margin-right: 0.5rem; margin-bottom: 0.5rem; } div.examples > div > div:first-child { display: flex; padding: 0.5rem; border-radius: 0.25rem; box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.4); background: #FFF; z-index: 1; align-items: center; justify-content: center; } div.examples > div > div:first-child + div { display: flex; margin-left: -0.25rem; padding: 0.5rem 0.75rem 0.5rem 1rem; background: #222; border-radius: 0 0.25rem 0.25rem 0; } div.examples > div > div:first-child + div > code { color: #FFF; align-self: center; } div.examples > div > div.dark:first-child { background: #444; } div.examples i { display: flex; } div.examples-size > div > div:first-child { min-width: 3rem; } ``` -------------------------------- ### Install Tooltip.js with Bower Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/form1099MISC-sdk/TBS_FORM1099MISC_FRONTEND/src/styles/js/README.md Use this command to install Tooltip.js using Bower via unpkg.com CDN. Note that Bower is not officially supported and this method has limitations. ```bash bower install tooltip.js=https://unpkg.com/tooltip.js --save ``` -------------------------------- ### Start the Application Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/business-sdk/README.md Run the application by typing this command in both frontend and backend terminals. The Node.js application runs on localhost:3000 and the React JS application runs on localhost:3001. ```bash npm run start ``` -------------------------------- ### Copy NPM Install Command Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/business-sdk/TBS_BUSINESS_FRONTEND/src/styles/css/icons-mdi/preview.html Adds a click event listener to an element with the ID 'npm' to copy the npm installation command for '@mdi/font' to the clipboard. This is useful for providing easy installation instructions. ```javascript document.getElementById('npm').addEventListener('click', function () { copyText('npm install @mdi/font'); }); ``` -------------------------------- ### Install NPM Packages Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/business-sdk/README.md Install npm packages listed in the package.json file by running this command in both frontend and backend terminals. ```bash npm install ``` -------------------------------- ### CSS for Example Layout Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/business-sdk/TBS_BUSINESS_FRONTEND/src/styles/css/icons-mdi/preview.html Defines a flexbox layout for displaying icon examples, including styling for the icon itself and its associated code. ```CSS div.examples { display: flex; flex-wrap: wrap; margin: 0.5rem 1.25rem; } div.examples > div { display: flex; margin-right: 0.5rem; margin-bottom: 0.5rem; } div.examples > div > div:first-child { display: flex; padding: 0.5rem; border-radius: 0.25rem; box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.4); background: #FFF; z-index: 1; align-items: center; justify-content: center; } div.examples > div > div:first-child + div { display: flex; margin-left: -0.25rem; padding: 0.5rem 0.75rem 0.5rem 1rem; background: #222; border-radius: 0 0.25rem 0.25rem 0; } div.examples > div > div:first-child + div > code { color: #FFF; align-self: center; } div.examples > div > div.dark:first-child { background: #444; } div.examples i { display: flex; } div.examples-size > div > div:first-child { min-width: 3rem; } ``` -------------------------------- ### Start Development Server Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/form1099MISC-sdk/TBS_FORM1099MISC_FRONTEND/README.md Runs the React application in development mode. Opens the app at http://localhost:3000 and reloads on changes. Lint errors are shown in the console. ```bash npm start ``` -------------------------------- ### Get Server Time API Response Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/oauth-sdk/README.md Example response from the GetServerTime API, providing server date, time, and timezone. ```json { "StatusCode": 200, "StatusName": "Ok", "StatusMessage": "Successful API call", "ServerDate": "10/10/2023", "ServerTime": "06:05:48", "TimeZone": "UTC", "UnixTs": "1696917948", "Errors": null } ``` -------------------------------- ### Example Icon Usage Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/business-sdk/TBS_BUSINESS_FRONTEND/src/styles/css/icons-mdi/preview.html Demonstrates how to use icons within different HTML elements, including inline code and paragraphs. Shows icons with and without dark backgrounds. ```HTML
This is an example of an icon in a paragraph.
And here is the code for it:
mdi
This is a note about icons.
This icon is deprecated.
Some extra text.
This icon has a dark background.
``` -------------------------------- ### Sample JWT Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/oauth-sdk/README.md An example of a generated JSON Web Token (JWT) access token. ```text eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3 MiOiJ0ZXN0YXBpLnRheGJhbmRpdHMuY29tIiwiYXVkI joiYTU3NGI3NWYxOGIyNGZjMDlmOTAzOWZmYjVjYjA4ZjMiLCJp YXQiOjE1OTU5MjAxMjQsImV4cCI6MTU5NTkyNzMyNH0.BIg8764SOhOai9As 3uRSidrF1-B9CxL6D5z4OggcVbs ``` -------------------------------- ### Icon Display Example Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/form1099MISC-sdk/TBS_FORM1099MISC_FRONTEND/src/styles/css/icons-mdi/preview.html Provides a compact display of an icon and its name, suitable for integration into UI elements. The icon is displayed first, followed by its textual representation. ```htmlmdi-home
mdi-home
mdi-home
mdi-account-circle
```
--------------------------------
### Clone the TaxBandits Business SDK Repository
Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/business-sdk/README.md
Clone the project into your local machine by entering the following command in your terminal.
```bash
https://github.com/TaxBandits/tbs-nodejs-sdk.git
```
--------------------------------
### Basic Icon Usage
Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/form1099MISC-sdk/TBS_FORM1099MISC_FRONTEND/src/styles/css/icons-mdi/preview.html
Demonstrates how to display a Material Design Icon using an `` tag with the `mdi` class. This is the standard way to embed icons.
```html
```
--------------------------------
### Icon with Custom Size
Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/form1099NEC-sdk/TBS_FORM1099NEC_FRONTEND/src/styles/css/icons-mdi/preview.html
Illustrates how to set a custom size for an icon using a size class like 'mdi-24px'.
```html
```
--------------------------------
### Icon Styling and Copy
Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/form1099MISC-sdk/TBS_FORM1099MISC_FRONTEND/src/styles/css/icons-mdi/preview.html
Illustrates how to style icons within a list, including hover effects for the icon itself and its associated code representation. It also shows a mechanism for copying icon names.
```html
mdi-account
mdi-account-circle ` tag. This is helpful for users to easily copy the icon's class for implementation.
```HTML
```
--------------------------------
### Basic Icon
Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/form1099MISC-sdk/TBS_FORM1099MISC_FRONTEND/src/styles/css/icons-mdi/preview.html
Displays a standard Material Design Icon.
```html
```
--------------------------------
### Popper.js Callbacks (onCreate, onUpdate)
Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/business-sdk/TBS_BUSINESS_FRONTEND/src/styles/js/README.md
Utilize onCreate and onUpdate callbacks to execute custom logic after popper initialization or updates. The callback receives computed data for styling.
```javascript
const reference = document.querySelector('.my-button');
const popper = document.querySelector('.my-popper');
new Popper(reference, popper, {
onCreate: (data) => {
// data is an object containing all the informations computed
// by Popper.js and used to style the popper and its arrow
// The complete description is available in Popper.js documentation
},
onUpdate: (data) => {
// same as `onCreate` but called on subsequent updates
}
});
```
--------------------------------
### CSS for Icon Styling
Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/business-sdk/TBS_BUSINESS_FRONTEND/src/styles/css/icons-mdi/preview.html
Provides essential CSS rules for styling Material Design Icons, including basic resets and specific icon properties.
```CSS
i.mdi {
display: inline-block;
width: 32px;
height: 24px;
text-align: center;
vertical-align: middle;
cursor: pointer;
line-height: 24px;
}
i.mdi::before {
font-size: 24px;
}
```
--------------------------------
### CSS for Footer Styling
Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/business-sdk/TBS_BUSINESS_FRONTEND/src/styles/css/icons-mdi/preview.html
Basic styling for the page footer, including padding, color, and border.
```CSS
footer {
display: flex;
padding: 20px;
color: #666;
border-top: 1px solid #DDD;
background: #F1F1F1;
}
```
--------------------------------
### Header Styling with Version and Code
Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/tin-matching-recipients-sdk/TBS_TIN_MATCHING_RECIPIENTS_FRONTEND/src/styles/css/icons-mdi/preview.html
Styles the main header of the page, including the title, version number, and a code element that likely represents a version identifier or copyable code.
```css
h1 { padding: 20px 20px 16px 20px; font-size: 26px; line-height: 26px; font-weight: normal; color: #FFF; background-color: #2196F3; }
h1 svg { vertical-align: middle; width: 26px; height: 26px; margin: 0 6px 4px 0; }
h1 svg path { fill: #FFF; }
h1 .version { font-size: 14px; background: #FFF; padding: 4px 10px; float: right; border-radius: 2px; margin: -3px 0 0 0; color: #666; font-weight: bold; }
h1 .version::before { content: 'v'; }
h1 code { font-size: 20px; background: rgba(0, 0, 0, 0.5); padding: 4px 12px; border-radius: 3px; float: right; margin: -3px 10px 0 0; border: 1px solid transparent; cursor: pointer; }
h1 code:hover { border: 1px solid #FFF; }
h1 code svg { width: 24px; height: 24px; margin: -1px -4px 0 -2px }
```
--------------------------------
### Icon with Custom Class
Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/business-sdk/TBS_BUSINESS_FRONTEND/src/styles/css/icons-mdi/preview.html
Shows an icon with an additional class for specific styling, like a dark background. Useful for demonstrating icons in different contexts.
```HTML
```
--------------------------------
### Initialize Icons Display
Source: https://github.com/taxbandits/tbs-nodejs-sdk/blob/main/form1099K-sdk/TBS_FORM1099K_FRONTEND/src/styles/css/icons-mdi/preview.html
This JavaScript code initializes the display of Material Design Icons on the page. It iterates through a list of icons, categorizes them into new and deprecated, and appends them to their respective sections.
```javascript
var icons = JSON.parse('[
{
"name": "blank", "hex": "f68c"
}');
icons.forEach(function (icon) {
var item = getIconItem(icon, isNew(icon), isDeprecated(icon));
document.getElementById('icons').appendChild(item);
if (isNew(icon)) {
var newItem = getIconItem(icon, false, false);
document.getElementById('newIcons').appendChild(newItem);
newIconsCount++;
}
if (isDeprecated(icon)) {
var deprecatedItem = getIconItem(icon, false, false);
document.getElementById('deprecatedIcons').appendChild(deprecatedItem);
deprecatedIconsCount++;
}
iconsCount++;
});
var whereDeprecated = function (icon) {
return icon.deprecated === true;
};
if (!(icons.find(whereDeprecated))) {
document.getElementById('deprecated').style.display = 'none';
}
document.getElementById('iconsCount').innerText = iconsCount;
document.getElementById('newIconsCount').innerText = newIconsCount;
document.getElementById('deprecatedIconsCount').innerText = deprecatedIconsCount;
document.getElementById('npm').addEventListener('click', function () {
copyText('npm install @mdi/font');
});
})();
```