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 files 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 Usage manual
jtbAlerts alert.js Alert manual
jtbCards card.js -
jtbCollapse collapse.js Collapse manual
jtbDropdown dropdown.js Dropdown manual
jtbInput input.js -
jtbModal modal.js Modal manual
jtbNavbar navbar.js -
jtbProgress progress.js -
jtbToast toast.js Toasts manual
jtbTooltip tooltip.js Tooltips manual

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 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'