JAVASCRIPT

JTB_MD includes several js plugins and options to make your design much more powerful and stable.

Dependencies

Even the JTB_MD does not need any 3rd party plugins; it is important to include jQuery while initializing the jtb_md.js. Since we wrote some of our scripts in jQuery; this part is crucial for evading minimal or fatal problems. To include it, you can use the following code or go to jQuery website and include your desired one.

		Copy
		<script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
	

Plugins

The library itself has several plugins which allow their users to create more interactive designs. The following table shows the plugins that we have actively included to JTB_MD.

Plugin for File name
jtbAlerts alert.js
jtbCards card.js
jtbCollapse collapse.js
jtbDropdown dropdown.js
jtbInput input.js
jtbLightBox lightbox.js
jtbModal modal.js
jtbNavbar navbar.js
jtbProgress progress.js
jtbToast toast.js
jtbTooltip tooltip.js

Disallowing

It is possible to disallow the plugins (specific or all) via jtb_md.js file. There is a specific variable which called plugins includes all active plugins (which will be included on page loading). If you remove or comment out the desired plugin from this array; JTB_MD won't initialize the specific plugin...

			/*----- Comment out or delete the unwanted plugins in this variable in jtb_md.js -----*/
var plugins = [
	'alert.js',     //jtbAlert Plugin
    'card.js',      //jtbCard Plugin
    'collapse.js',  //jtbCollapse Plugin
    .
    .
]
		

Versions

For each plugin, you can reach the plugin version you are currently inluding via following:

			$.fn.[pluginName].defaults._vers // -> '0.0.1'