JSFiddle - React, Tailwind, and code Playground

by Alexander Yankovoy

JavaScript

jQuery.noConflict();

jQuery(document).ready(function() {
	jQuery('.btn-warning, .ui-icon-closethick').click(function() {
		jQuery.cookie('back_call', '1', {
			expires: 1,
			path: '/'
		});
	});

	function showmodal() {
		if(jQuery.cookie('back_call') != 1) {
			/*jQuery("#call_back2").modal('show');*/
			jQuery( "#dialog" ).dialog( "open" )
		}
	}
	setTimeout(showmodal, 5000);


});




jQuery(function() {
	jQuery( "#dialog" ).dialog({
		autoOpen: false,
		show: {
			effect: "blind",
			duration: 1000
		},
		hide: {
			effect: "explode",
			duration: 1000
		},
		position: {
			my: "right top",
			at: "right bottom"
		}
	});

	jQuery( ".opener" ).click(function() {
		jQuery( "#dialog" ).dialog( "open" );
	});
});