| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 | /*Name: 			UI Elements / Modals - ExamplesWritten by: 	Okler Themes - (http://www.okler.net)Theme Version: 	2.0.0*/(function($) {	'use strict';	/*	Basic	*/	$('.modal-basic').magnificPopup({		type: 'inline',		preloader: false,		modal: true	});	/*	Sizes	*/	$('.modal-sizes').magnificPopup({		type: 'inline',		preloader: false,		modal: true	});	/*	Modal with CSS animation	*/	$('.modal-with-zoom-anim').magnificPopup({		type: 'inline',		fixedContentPos: false,		fixedBgPos: true,		overflowY: 'auto',		closeBtnInside: true,		preloader: false,				midClick: true,		removalDelay: 300,		mainClass: 'my-mfp-zoom-in',		modal: true	});	$('.modal-with-move-anim').magnificPopup({		type: 'inline',		fixedContentPos: false,		fixedBgPos: true,		overflowY: 'auto',		closeBtnInside: true,		preloader: false,				midClick: true,		removalDelay: 300,		mainClass: 'my-mfp-slide-bottom',		modal: true	});	/*	Modal Dismiss	*/	$(document).on('click', '.modal-dismiss', function (e) {		e.preventDefault();		$.magnificPopup.close();	});	/*	Modal Confirm	*/	$(document).on('click', '.modal-confirm', function (e) {		e.preventDefault();		$.magnificPopup.close();		new PNotify({			title: 'Success!',			text: 'Modal Confirm Message.',			type: 'success'		});	});	/*	Form	*/	$('.modal-with-form').magnificPopup({		type: 'inline',		preloader: false,		focus: '#name',		modal: true,		// When elemened is focused, some mobile browsers in some cases zoom in		// It looks not nice, so we disable it:		callbacks: {			beforeOpen: function() {				if($(window).width() < 700) {					this.st.focus = false;				} else {					this.st.focus = '#name';				}			}		}	});	/*	Ajax	*/	$('.simple-ajax-modal').magnificPopup({		type: 'ajax',		modal: true	});}).apply(this, [jQuery]);
 |