🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

mt-popup is a jQuery popup plugin for creating fully responsive modal windows that dynamically adapt the screen width on window resize.

Modal

Documentation

mt-popup-plugin

A jquery plugin to show responsive dialog

Insatllation


Include the jquery and the mt-popup-plugin js files as shown below:

<script type="text/javascript" src="jquery-3.3.1.min.js"></script> <script type="text/javascript" src="mt-popup-plugin.js"></script>

Usage

Add the below a tag to the page and content to be shown in the popup in the data-title attribute.

<a href="javascript:void(0)" class="modal-popup" data-title="Lorem IpsumLorem IpsumLorem">123</a>

Then add the below script to the page.

<script type="text/javascript"> 	$(function(){ 		$( "a" ).showLinkLocation({ 			color: "#556b2f", //initializes the anchor tag to this color.       class: "white", // apply a class to the anchor element.       header: 'Modal Header', // Header content to be shown, leave this as empty if you do not want an header. 		}); 	}) </script>

You May Also Like